24 lines
626 B
Dart
24 lines
626 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:smoke_cess_app/pages/main_page.dart';
|
|
import 'package:smoke_cess_app/service/notification_service.dart';
|
|
|
|
void main() {
|
|
// to ensure all the widgets are initialized.
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
|
|
// to initialize the notificationservice.
|
|
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 MaterialApp(title: _title, home: MyHomePage());
|
|
}
|
|
}
|