From 68f4d21a4ae04b89eebaf2d24fb812ccc0b5e18f Mon Sep 17 00:00:00 2001 From: Aamir-iMac Date: Sun, 21 May 2023 16:58:56 +0300 Subject: [PATCH] Changes On iOS --- lib/main.dart | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) 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(