diff --git a/lib/main.dart b/lib/main.dart index 08c5fad..daf5f2b 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -88,22 +88,9 @@ Future main() async { // flutter pub run easy_localization:generate --source-dir ./assets/langs -f keys -o locale_keys.g.dart // command to generate languages data from json -class MyApp extends StatefulWidget { +class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key); - @override - State createState() => _MyAppState(); -} - -class _MyAppState extends State with WidgetsBindingObserver { - @override - void initState() { - WidgetsBinding.instance.addObserver(this); - super.initState(); - } - - - @override Widget build(BuildContext context) { return Sizer(