Save and sort sheets by last access time

This commit is contained in:
2025-09-13 20:11:22 +02:00
parent a0d6368f02
commit 89aa15b8b8
7 changed files with 141 additions and 70 deletions

View File

@@ -1,10 +1,15 @@
import 'dart:io';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:hive/hive.dart';
import 'package:logging/logging.dart';
import 'package:path_provider/path_provider.dart';
import 'package:pdfrx/pdfrx.dart';
import 'login_page.dart';
void main() {
Future<void> main() async {
Logger.root.level = Level.ALL; // defaults to Level.INFO
Logger.root.onRecord.listen((record) {
debugPrint('${record.level.name}: ${record.time}: ${record.message}');
@@ -13,7 +18,12 @@ void main() {
}
});
pdfrxFlutterInitialize(); // Needed for web
pdfrxFlutterInitialize(); // Needed especially for web
if (!kIsWeb) {
Directory dir = await getApplicationDocumentsDirectory();
Hive.init(dir.path); // Needed only if not web
}
runApp(const MyApp());
}