🐛 Fix personalize page issue

This commit is contained in:
LittleSheep 2024-08-22 00:42:17 +08:00
parent b6ebd6bef6
commit 09cb340a9d

View File

@ -30,8 +30,8 @@ class _PersonalizeScreenState extends State<PersonalizeScreen> {
final _descriptionController = TextEditingController(); final _descriptionController = TextEditingController();
final _birthdayController = TextEditingController(); final _birthdayController = TextEditingController();
int? _avatar; String? _avatar;
int? _banner; String? _banner;
DateTime? _birthday; DateTime? _birthday;
bool _isBusy = false; bool _isBusy = false;
@ -129,7 +129,7 @@ class _PersonalizeScreenState extends State<PersonalizeScreen> {
final resp = await client.put( final resp = await client.put(
'/users/me/$position', '/users/me/$position',
{'attachment': attachResult.id}, {'attachment': attachResult.rid},
); );
if (resp.statusCode == 200) { if (resp.statusCode == 200) {
_syncWidget(); _syncWidget();