fixed account edit bugs

This commit is contained in:
Kima
2023-05-27 22:37:04 +02:00
parent 8ec2ff8b1a
commit 0f6e6bfb65
6 changed files with 25 additions and 24 deletions

View File

@@ -59,7 +59,7 @@ class ProfileButton extends StatelessWidget {
: Theme.of(context).colorScheme.secondary,
heroTag: child.heroTag,
key: child.key,
name: !pMode ? child.name : "Béla",
name: !pMode ? child.name : "János",
radius: child.radius,
badge: child.badge,
role: child.role,
@@ -86,7 +86,7 @@ class ProfileButton extends StatelessWidget {
),
);
},
onDoubleTap: () {
onLongPress: () {
if (account != null) {
user.setUser(account!.id);
restore().then((_) => user.setUser(account!.id));

View File

@@ -149,7 +149,7 @@ class _HomePageState extends State<HomePage> with TickerProviderStateMixin {
if (!settings.presentationMode) {
firstName = nameParts.length > 1 ? nameParts[1] : nameParts[0];
} else {
firstName = "Béla";
firstName = "János";
}
return Scaffold(