flutter_desktop: debug win cursor

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2022-10-30 13:50:44 +08:00
parent 9591c908a1
commit 2c34112492
3 changed files with 31 additions and 25 deletions

View File

@@ -77,7 +77,9 @@ class UserModel {
return "";
}
final m = jsonDecode(userInfo);
userName.value = m['name'] ?? '';
if (m != null) {
userName.value = m['name'] ?? '';
}
return userName.value;
}