|
|
@ -1,4 +1,6 @@
|
|
|
|
// Flutter imports:
|
|
|
|
// Flutter imports:
|
|
|
|
|
|
|
|
import 'dart:io';
|
|
|
|
|
|
|
|
|
|
|
|
import 'package:aku_community_manager/tools/aku_divider.dart';
|
|
|
|
import 'package:aku_community_manager/tools/aku_divider.dart';
|
|
|
|
import 'package:aku_community_manager/ui/settings/nick_name_change_page.dart';
|
|
|
|
import 'package:aku_community_manager/ui/settings/nick_name_change_page.dart';
|
|
|
|
import 'package:aku_community_manager/ui/settings/tel_change_page.dart';
|
|
|
|
import 'package:aku_community_manager/ui/settings/tel_change_page.dart';
|
|
|
@ -35,10 +37,9 @@ class _UserInfoPageState extends State<UserInfoPage> {
|
|
|
|
padding: EdgeInsets.symmetric(vertical: 24.w),
|
|
|
|
padding: EdgeInsets.symmetric(vertical: 24.w),
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
AkuTile(
|
|
|
|
AkuTile(
|
|
|
|
onTap: () {
|
|
|
|
onTap: () async {
|
|
|
|
akuPickImage().then((file) {
|
|
|
|
File file = await akuPickImage();
|
|
|
|
if (file != null) userProvider.setAvatar(file);
|
|
|
|
if (file != null) await userProvider.setAvatar(file);
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
title: Text('头像'),
|
|
|
|
title: Text('头像'),
|
|
|
|
height: 168.w,
|
|
|
|
height: 168.w,
|
|
|
@ -55,9 +56,7 @@ class _UserInfoPageState extends State<UserInfoPage> {
|
|
|
|
AkuTile(
|
|
|
|
AkuTile(
|
|
|
|
onTap: () async {
|
|
|
|
onTap: () async {
|
|
|
|
await TelChangePage().to();
|
|
|
|
await TelChangePage().to();
|
|
|
|
setState(() {
|
|
|
|
setState(() {});
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
title: Text('手机'),
|
|
|
|
title: Text('手机'),
|
|
|
|
suffix: Text(TextUtil.hideNumber(userProvider.profileModel.tel)),
|
|
|
|
suffix: Text(TextUtil.hideNumber(userProvider.profileModel.tel)),
|
|
|
|