flutter使用getx实现国际化和自适应

📅 2026/7/27 5:12:44
flutter使用getx实现国际化和自适应
首先使用自适应库会和国际化出现问题flutter_screenutil: ^5.9.3解决方案就是 不能让自适应框架包裹 而是用这个包裹ScreenUtilInitGetMaterialApp( title: Application, initialRoute: AppPages.INITIAL, getPages: AppPages.routes, translations: Language(), locale: const Locale(zh, CN), fallbackLocale: const Locale(en, US), builder: (context, widget) { return ScreenUtilInit( designSize: const Size(1080, 2400), minTextAdapt: true, splitScreenMode: true, builder: (context, child) widget!, ); }, )