|
|
@@ -5,12 +5,16 @@ import 'package:keyboard/widget/delegate_lifecycle_widget.dart';
|
|
|
import 'package:lottie/lottie.dart';
|
|
|
|
|
|
import '../../base/base_page.dart';
|
|
|
+import '../../di/get_it.dart';
|
|
|
import '../../resource/assets.gen.dart';
|
|
|
import '../../router/app_pages.dart';
|
|
|
import 'main_controller.dart';
|
|
|
|
|
|
class MainPage extends BasePage<MainController> {
|
|
|
- MainPage({super.key});
|
|
|
+ MainPage({super.key}) {
|
|
|
+ // 修复从键盘,跳转到app页面后,Tab卡死点不动
|
|
|
+ Get.lazyPut(() => getIt.get<MainController>());
|
|
|
+ }
|
|
|
|
|
|
static start({Map<String, dynamic>? arguments}) {
|
|
|
return Get.offAllNamed(RoutePath.mainTab, arguments: arguments);
|