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.
 
 
 
 
 
 

27 lines
738 B

// ignore_for_file: prefer_const_constructors
import 'package:itasmob/presentation/resources/routes_manager.dart';
import 'package:flutter/material.dart';
class MyApp extends StatefulWidget {
MyApp._internal(); // private named constructor
int appState = 0;
static final MyApp instance =
MyApp._internal(); // single instance -- singleton
factory MyApp() => instance; // factory for the class instance
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
initialRoute: Routes.splashRoute,
onGenerateRoute: RouteGenerator.getRoute,
);
}
}