|
|
@@ -6,6 +6,7 @@ import 'package:electronic_assistant/resource/assets.gen.dart';
|
|
|
import 'package:electronic_assistant/resource/colors.gen.dart';
|
|
|
import 'package:electronic_assistant/resource/string.gen.dart';
|
|
|
import 'package:electronic_assistant/utils/expand.dart';
|
|
|
+import 'package:electronic_assistant/utils/ios_device_info.dart';
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
import 'package:flutter/material.dart';
|
|
|
import 'package:get/get.dart';
|
|
|
@@ -34,6 +35,14 @@ class MainController extends BaseController {
|
|
|
|
|
|
int get currentIndex => _currentIndex.value;
|
|
|
|
|
|
+ @override
|
|
|
+ void onReady() async {
|
|
|
+ // TODO: implement onReady
|
|
|
+ super.onReady();
|
|
|
+
|
|
|
+ // ios初始化设备信息
|
|
|
+ await IosDeviceInfo.iosInit();
|
|
|
+ }
|
|
|
|
|
|
void changeIndex(int index) {
|
|
|
_currentIndex.value = index;
|