Index: lib/main.dart
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP
<+>import 'dart:io';\n\nimport 'package:flutter/material.dart';\nimport 'package:flutter_smart_dialog/flutter_smart_dialog.dart';\nimport 'package:form_builder_validators/form_builder_validators.dart';\nimport 'package:get/get.dart';\nimport 'package:public_lib/global/global.dart';\nimport 'package:public_lib/net/config/core_config.dart';\nimport 'package:public_lib/utils/language_util.dart';\nimport 'package:smps_flutter_pda/common/android_channel/android_channel_listener.dart';\nimport 'package:smps_flutter_pda/common/app_ui.dart';\nimport 'package:smps_flutter_pda/common/app_ui_config.dart';\nimport 'package:smps_flutter_pda/common/db/database_manager.dart';\nimport 'package:smps_flutter_pda/common/http/common_http_manager.dart';\nimport 'package:smps_flutter_pda/common/http/http.dart';\nimport 'package:smps_flutter_pda/common/route/app_pages.dart';\nimport 'package:flutter_localizations/flutter_localizations.dart';\nimport 'package:smps_flutter_pda/common/smps_core_config.dart';\nimport 'package:smps_flutter_pda/common/spms_application.dart';\nimport 'package:smps_flutter_pda/common/spms_navigator_observer.dart';\nimport 'package:smps_flutter_pda/common/ume_init.dart';\nimport 'package:smps_flutter_pda/page/login/login_page.dart';\nimport 'package:smps_flutter_pda/page/login/model/account_model.dart';\nimport 'package:smps_flutter_pda/page/login/model/login_model.dart';\nimport 'package:smps_flutter_pda/page/main/main_page.dart';\nimport 'package:smps_flutter_pda/res/translation_service.dart';\n\nimport 'common/imageloader/app_image_config.dart';\nimport 'package:public_lib/ui/imageloader/image_loader.dart';\nimport 'package:flutter_screenutil/flutter_screenutil.dart';\n\nvoid main() {\n  WidgetsFlutterBinding.ensureInitialized();\n  Global.init((){\n    Get.put(ApiService(CommonHttpManager()));\n    Get.put(AndroidChannelListener());\n  }).then((value) async{\n    await CommonHttpManager().initNetDio(CommonHttpManager().setDio());\n    await AppUI.init(AppUiConfig());\n    await ImageLoader.init(AppImageConfig());\n    // HttpManager.init(CommonHttpManager());\n    await DatabaseManager().openDatabase();\n    await SPMSApplication().init();\n    await checkLogin();\n  }).then((value){\n    HttpOverrides.global = MyHttpOverrides();//忽略证书验证的话，打开注释即可\n    if(CoreConfig.DEBUG||CoreConfig.kProfileMode){\n      // runApp(UMEInit.init(const MyApp()));\n      runApp(UMEInit.init(_buildApp()));\n    }else{\n      runApp(_buildApp());\n    }\n  });\n}\n\nclass MyHttpOverrides extends HttpOverrides{\n  @override\n  HttpClient createHttpClient(SecurityContext? context){\n    return super.createHttpClient(context)\n      ..badCertificateCallback = (X509Certificate cert, String host, int port)=> true;\n  }\n}\n//用登录信息来检查是否需要到登录页\nFuture<void> checkLogin()async{\n  LoginModel? loginModel = await DatabaseManager().isar?.loginModels.get(1);\n  if(loginModel!=null){\n    SPMSApplication().userInfo=loginModel;\n  }\n}\nWidget _buildApp(){\n  return ScreenUtilInit(\n    builder: () {\n      return GetMaterialApp(\n        title: 'SMPS',\n        theme: ThemeData(\n          primarySwatch: Colors.blue,\n        ),\n        // enableLog: CoreConfig.kProfileMode,\n        // initialRoute:SPMSApplication().isLogin?MainPage.routeName:LoginPage.routeName,\n        initialRoute:LoginPage.routeName,\n        getPages: AppPages.routes,\n        locale: LanguageUtil.initLanguage().toLocale(),\n        supportedLocales: Global.languages.map((e) => e.toLocale()).toList(),\n        localizationsDelegates: const [\n          GlobalMaterialLocalizations.delegate,\n          GlobalWidgetsLocalizations.delegate,\n          GlobalCupertinoLocalizations.delegate,\n          FormBuilderLocalizations.delegate,\n        ],\n        navigatorObservers: [\n          SPMSNavigatorObserver()\n        ],\n        translations: TranslationService(),\n        builder: FlutterSmartDialog.init(),\n      );\n    },\n    designSize: const Size(SPMSCoreConfig.WIDTH, SPMSCoreConfig.HEIGHT),\n  );\n}\n\n\n\n
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/lib/main.dart b/lib/main.dart
--- a/lib/main.dart	(revision db8d2e0014f8fb48b87a98acc0c96defb6bcf792)
+++ b/lib/main.dart	(date 1721789105060)
@@ -46,10 +46,11 @@
     HttpOverrides.global = MyHttpOverrides();//忽略证书验证的话，打开注释即可
     if(CoreConfig.DEBUG||CoreConfig.kProfileMode){
       // runApp(UMEInit.init(const MyApp()));
-      runApp(UMEInit.init(_buildApp()));
-    }else{
-      runApp(_buildApp());
-    }
+    //   runApp(UMEInit.init(_buildApp()));
+    // }else{
+
+    }
+    runApp(_buildApp());
   });
 }
 
@@ -98,5 +99,23 @@
   );
 }
 
+test(){
+  List<Student> students=[Student(),Student()];
+  //列出所有书名。
+  for(Student e in students){
+    for(Book book in e.books){
+      print(book.bookName);
+    }
+  }
+}
+
+class Student{
+  String name="";
+  List<Book> books=[];
+}
+class Book{
+  String bookName="";
+}
+
 
 
