Update
This commit is contained in:
@@ -8,6 +8,7 @@ import 'package:fluttertoast/fluttertoast.dart';
|
||||
import 'package:hyzp_ybqx/components/customDialogFaceReg.dart';
|
||||
import 'package:hyzp_ybqx/components/dioFun.dart';
|
||||
import 'package:image_picker/image_picker.dart';
|
||||
import 'package:permission_handler/permission_handler.dart';
|
||||
|
||||
import '../../components/commonFun.dart';
|
||||
import '../../services/EventBus.dart';
|
||||
@@ -300,6 +301,11 @@ class _LoginPageState extends State<FaceReg> {
|
||||
|
||||
//从相册选取图片
|
||||
Future _getImageGallery() async {
|
||||
if (Platform.isIOS && !await Permission.camera.isGranted) {
|
||||
Fluttertoast.showToast(msg: '请允许访问相册');
|
||||
return;
|
||||
}
|
||||
|
||||
final imagePicker = ImagePicker();
|
||||
_username = _controller.text;
|
||||
//final pickedFile = await imagePicker.getImage(source: ImageSource.gallery, maxWidth: 400);
|
||||
|
||||
@@ -202,11 +202,6 @@ class _Page4_MyMsicsNewState extends State<Page4_MyMsicsNew>
|
||||
leadColor: _deepBlueColor,
|
||||
onTapFun: OnTap_user_manager),
|
||||
//bNewVer:是否发现新版本
|
||||
_getListTile('版本更新',
|
||||
leadPath: 'assets/images/版本更新.png',
|
||||
leadColor: _greenColor,
|
||||
onTapFun: OnTap_MyUpdate,
|
||||
bBadge: bNewVer),
|
||||
_getListTile('待审提醒',
|
||||
leadPath: 'assets/images/语音提醒.png',
|
||||
leadColor: _deepGreyColor,
|
||||
@@ -226,12 +221,17 @@ class _Page4_MyMsicsNewState extends State<Page4_MyMsicsNew>
|
||||
// onTapFun: OnTap_UserAuthority),
|
||||
];
|
||||
if (Platform.isAndroid) {
|
||||
_listViewUser.insert(
|
||||
3,
|
||||
_listViewUser.insertAll(
|
||||
2,
|
||||
[_getListTile('版本更新',
|
||||
leadPath: 'assets/images/版本更新.png',
|
||||
leadColor: _greenColor,
|
||||
onTapFun: OnTap_MyUpdate,
|
||||
bBadge: bNewVer),
|
||||
_getListTile('软件下载',
|
||||
leadPath: 'assets/images/download.png',
|
||||
leadColor: _deepBlueColor,
|
||||
onTapFun: OnTap_download));
|
||||
leadPath: 'assets/images/download.png',
|
||||
leadColor: _deepBlueColor,
|
||||
onTapFun: OnTap_download)]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user