notes/lib/main.dart

16 lines
432 B
Dart
Raw Normal View History

2022-10-29 18:06:20 +00:00
import 'package:flutter/foundation.dart';
2022-10-23 13:50:44 +00:00
import 'package:flutter/material.dart';
import 'package:sqflite/sqflite.dart';
2022-10-29 18:06:20 +00:00
import 'package:sqflite_common_ffi/sqflite_ffi.dart';
2022-10-23 13:50:44 +00:00
import 'app.dart';
2022-10-23 13:50:44 +00:00
void main() {
2022-10-29 18:06:20 +00:00
if (defaultTargetPlatform != TargetPlatform.android &&
defaultTargetPlatform != TargetPlatform.iOS) {
sqfliteFfiInit();
databaseFactory = databaseFactoryFfi;
2022-10-29 18:06:20 +00:00
}
runApp(const MaterialApp(home: App()));
2022-10-23 13:50:44 +00:00
}