Save and sort sheets by last access time
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user