init database on appstart
parent
265e174889
commit
c6075848cf
|
@ -1,8 +1,11 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:smoke_cess_app/pages/main_page.dart';
|
||||
import 'package:smoke_cess_app/service/database_service.dart';
|
||||
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
//init database
|
||||
DatabaseService.instance;
|
||||
runApp(const MyApp());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue