This is flutter sqlite local notification project. User can add task.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
985 B

2 years ago
  1. import 'package:flutter/material.dart';
  2. import 'package:get/get_navigation/src/root/get_material_app.dart';
  3. import 'package:get_storage/get_storage.dart';
  4. import 'package:sqflite_pust_local_notification/db/db_helper.dart';
  5. import 'package:sqflite_pust_local_notification/services/theme_service.dart';
  6. import 'package:sqflite_pust_local_notification/ui/my_home_screen.dart';
  7. import 'package:sqflite_pust_local_notification/utils/theme.dart';
  8. Future<void> main() async {
  9. WidgetsFlutterBinding.ensureInitialized();
  10. await DBHelper.initDb();
  11. await GetStorage.init();
  12. runApp(const MyApp());
  13. }
  14. class MyApp extends StatelessWidget {
  15. const MyApp({Key? key}) : super(key: key);
  16. // This widget is the root of your application.
  17. @override
  18. Widget build(BuildContext context) {
  19. return GetMaterialApp(
  20. title: 'Flutter Demo',
  21. theme: Themes.light,
  22. darkTheme: Themes.dark,
  23. themeMode: ThemeService().theme,
  24. home: const MyHomeScreen());
  25. }
  26. }