fix: account switch

This commit is contained in:
Rongjian Zhang 2020-01-24 23:29:08 +08:00
parent b099b6a34c
commit 7bc11e0c84
1 changed files with 5 additions and 2 deletions

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,