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()); } class MyApp extends StatelessWidget { const MyApp({super.key}); static const String _title = 'Smoking Cessation App'; @override Widget build(BuildContext context) { return const MaterialApp(title: _title, home: MyHomePage()); } }