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.

26 lines
738 B

2 years ago
  1. // ignore_for_file: prefer_const_constructors
  2. import 'package:itasmob/presentation/resources/routes_manager.dart';
  3. import 'package:flutter/material.dart';
  4. class MyApp extends StatefulWidget {
  5. MyApp._internal(); // private named constructor
  6. int appState = 0;
  7. static final MyApp instance =
  8. MyApp._internal(); // single instance -- singleton
  9. factory MyApp() => instance; // factory for the class instance
  10. @override
  11. _MyAppState createState() => _MyAppState();
  12. }
  13. class _MyAppState extends State<MyApp> {
  14. @override
  15. Widget build(BuildContext context) {
  16. return MaterialApp(
  17. debugShowCheckedModeBanner: false,
  18. initialRoute: Routes.splashRoute,
  19. onGenerateRoute: RouteGenerator.getRoute,
  20. );
  21. }
  22. }