27 lines
745 B
Dart
27 lines
745 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:smoke_cess_app/pages/main_page.dart';
|
|
import 'package:smoke_cess_app/services/notification_service.dart';
|
|
import 'package:timezone/data/latest.dart' as tz;
|
|
import 'globals.dart' as globals;
|
|
|
|
void main() {
|
|
// to ensure all the widgets are initialized.
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
//init database
|
|
globals.databaseService;
|
|
tz.initializeTimeZones();
|
|
NotificationService().initNotification();
|
|
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());
|
|
}
|
|
}
|