删除打包后带入的本地目录和切换图标功能
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:hgdj/assets_tool/images.dart';
|
||||
import 'package:hgdj/hj_page/pre_sale/pre_sale_provider.dart';
|
||||
import 'package:hgdj/hj_utils/api_service/vid_service.dart';
|
||||
import 'package:hgdj/hj_utils/light_model.dart';
|
||||
@@ -11,10 +9,8 @@ import 'package:hgdj/tools_base/global_store/store.dart';
|
||||
import 'package:hgdj/tools_base/loading/loading_helper.dart';
|
||||
import 'package:hgdj/tools_base/toast.dart';
|
||||
import 'package:hgdj/tools_base/widget/common_alert.dart';
|
||||
import 'package:hgdj/track_event_manager/device_service.dart';
|
||||
import 'package:pull_to_refresh/pull_to_refresh.dart';
|
||||
|
||||
import '../../config/config.dart';
|
||||
import '../../hj_model/user/user_info_model.dart';
|
||||
import '../main_page/provider/msg_provider.dart';
|
||||
import '../web_page/h5_page.dart';
|
||||
@@ -30,14 +26,6 @@ import 'mine_share/mine_share_page.dart';
|
||||
import 'more_question/mine_feedback_page.dart';
|
||||
import 'welfare/welfare_home_page.dart';
|
||||
|
||||
//图标
|
||||
class IconBean {
|
||||
String image;
|
||||
String name;
|
||||
|
||||
IconBean(this.image, this.name);
|
||||
}
|
||||
|
||||
class MineMainLogic extends GetxController with GetTickerProviderStateMixin {
|
||||
RefreshController? refreshCtr;
|
||||
|
||||
@@ -54,25 +42,6 @@ class MineMainLogic extends GetxController with GetTickerProviderStateMixin {
|
||||
"我的消息",
|
||||
];
|
||||
|
||||
List<IconBean> iconList = [
|
||||
IconBean('ic_launcher.webp'.commonImgPath, Config.appName),
|
||||
IconBean('icon_1.webp'.appImgPath, "爱音乐"),
|
||||
IconBean('icon_2.webp'.appImgPath, "爱阅读"),
|
||||
IconBean('icon_3.webp'.appImgPath, "支付宝"),
|
||||
IconBean('icon_4.webp'.appImgPath, "哔哩哔哩"),
|
||||
IconBean('icon_5.webp'.appImgPath, "饼干大作战"),
|
||||
IconBean('icon_6.webp'.appImgPath, "美食借鉴"),
|
||||
IconBean('icon_7.webp'.appImgPath, "我的世界"),
|
||||
IconBean('icon_8.webp'.appImgPath, "神选之战"),
|
||||
IconBean('icon_9.webp'.appImgPath, "随心无线"),
|
||||
IconBean('icon_10.webp'.appImgPath, "特轩小说"),
|
||||
IconBean('icon_11.webp'.appImgPath, "天天麻将"),
|
||||
IconBean('icon_12.webp'.appImgPath, "途游"),
|
||||
IconBean('icon_13.webp'.appImgPath, "微信"),
|
||||
IconBean('icon_14.webp'.appImgPath, "问道"),
|
||||
IconBean('icon_15.webp'.appImgPath, "英语图书角"),
|
||||
];
|
||||
|
||||
@override
|
||||
void onReady() async {
|
||||
super.onReady();
|
||||
@@ -198,9 +167,4 @@ class MineMainLogic extends GetxController with GetTickerProviderStateMixin {
|
||||
popGesture: true);
|
||||
}
|
||||
|
||||
changeIcon(int index) async {
|
||||
if (!await CommonAlert.show(content: '您确定要更换图标吗?')) return;
|
||||
const platform = MethodChannel(DeviceInfoService.requestChannel);
|
||||
platform.invokeMethod('changeIcon', {"iconIndex": index});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user