mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: edit sign
This commit is contained in:
@@ -90,12 +90,12 @@ class _EditProfilePageState extends State<EditProfilePage> {
|
|||||||
|
|
||||||
Widget get _divider => Divider(
|
Widget get _divider => Divider(
|
||||||
height: 1,
|
height: 1,
|
||||||
color: Theme.of(context).dividerColor.withOpacity(0.15),
|
color: Theme.of(context).dividerColor.withOpacity(0.1),
|
||||||
);
|
);
|
||||||
|
|
||||||
Widget get _divider1 => Divider(
|
Widget get _divider1 => Divider(
|
||||||
thickness: 16,
|
thickness: 16,
|
||||||
color: Theme.of(context).dividerColor.withOpacity(0.25),
|
color: Theme.of(context).dividerColor.withOpacity(0.1),
|
||||||
);
|
);
|
||||||
|
|
||||||
Widget _buildBody(LoadingState loadingState) {
|
Widget _buildBody(LoadingState loadingState) {
|
||||||
@@ -384,6 +384,9 @@ class _EditProfilePageState extends State<EditProfilePage> {
|
|||||||
}
|
}
|
||||||
SmartDialog.showToast('修改成功');
|
SmartDialog.showToast('修改成功');
|
||||||
setState(() {});
|
setState(() {});
|
||||||
|
if (type == ProfileType.uname || type == ProfileType.sign) {
|
||||||
|
Get.back();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
SmartDialog.showToast(data.data['message']);
|
SmartDialog.showToast(data.data['message']);
|
||||||
}
|
}
|
||||||
@@ -422,6 +425,8 @@ class _EditProfilePageState extends State<EditProfilePage> {
|
|||||||
if (text != null)
|
if (text != null)
|
||||||
Text(
|
Text(
|
||||||
text,
|
text,
|
||||||
|
maxLines: 1,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
fontWeight: FontWeight.normal,
|
fontWeight: FontWeight.normal,
|
||||||
|
|||||||
Reference in New Issue
Block a user