feat:更新用户表单
This commit is contained in:
@@ -46,15 +46,16 @@ class ProfilePageState extends State<ProfilePage> {
|
||||
void _onTapInfo(UserProvider provider) {
|
||||
provider.initUserForm(provider.currentUser);
|
||||
|
||||
showModalBottomSheet(
|
||||
context: context,
|
||||
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
|
||||
isScrollControlled: true,
|
||||
shape: const RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.vertical(top: Radius.circular(16)),
|
||||
),
|
||||
builder: (context) => ProfileForm(),
|
||||
);
|
||||
Navigator.pushNamed(context, '/profileForm');
|
||||
// showModalBottomSheet(
|
||||
// context: context,
|
||||
// backgroundColor: Theme.of(context).scaffoldBackgroundColor,
|
||||
// isScrollControlled: true,
|
||||
// shape: const RoundedRectangleBorder(
|
||||
// borderRadius: BorderRadius.vertical(top: Radius.circular(16)),
|
||||
// ),
|
||||
// builder: (context) => ProfileForm(),
|
||||
// );
|
||||
}
|
||||
|
||||
void _onTapMoment() {
|
||||
@@ -73,7 +74,7 @@ class ProfilePageState extends State<ProfilePage> {
|
||||
children: [
|
||||
_buildFunctionButton(
|
||||
icon: Icons.account_circle,
|
||||
text: '基本资料',
|
||||
text: '基本信息',
|
||||
onTap: () => _onTapInfo(provider),
|
||||
),
|
||||
const Divider(height: 1, thickness: 0.2),
|
||||
|
||||
Reference in New Issue
Block a user