init database on appstart

main
Julian Gegner 2023-02-25 18:55:03 +01:00
parent 265e174889
commit c6075848cf
1 changed files with 3 additions and 0 deletions

View File

@ -1,8 +1,11 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:smoke_cess_app/pages/main_page.dart'; import 'package:smoke_cess_app/pages/main_page.dart';
import 'package:smoke_cess_app/service/database_service.dart';
void main() async { void main() async {
WidgetsFlutterBinding.ensureInitialized(); WidgetsFlutterBinding.ensureInitialized();
//init database
DatabaseService.instance;
runApp(const MyApp()); runApp(const MyApp());
} }