1
0
mirror of https://github.com/git-touch/git-touch synced 2025-01-18 18:29:59 +01:00

fix: account switch

This commit is contained in:
Rongjian Zhang 2020-01-24 23:29:08 +08:00
parent b099b6a34c
commit 7bc11e0c84

View File

@ -30,8 +30,11 @@ class _LoginScreenState extends State<LoginScreen> {
return Link(
onTap: () {
// Navigator.of(context).pop();
auth.setActiveAccountIndex(index);
auth.setActiveAccountIndex(null);
// FIXME: trigger scaffold reload
Future.delayed(Duration(milliseconds: 100), () {
auth.setActiveAccountIndex(index);
});
},
child: Container(
padding: CommonStyle.padding,