From c6075848cf8fc2882a271db7771678357dbab1f9 Mon Sep 17 00:00:00 2001 From: Crondung <1922635@stud.hs-mannheim.de> Date: Sat, 25 Feb 2023 18:55:03 +0100 Subject: [PATCH] init database on appstart --- lib/main.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/main.dart b/lib/main.dart index bb80057..0b6b338 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -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()); }