mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 16:25:17 +00:00
Fix refresh when changing account image
This commit is contained in:
@ -40,11 +40,19 @@ class _TourRouteState extends State<TourRoute> {
|
||||
await UsersHelper().getSingleWithThrow(userID(), forceDownload: true);
|
||||
}
|
||||
|
||||
void setStateKeepCurrentIndex(BuildContext cxt) async {
|
||||
_defaultIndex = DefaultTabController.of(cxt).index;
|
||||
await key.currentState.refresh();
|
||||
}
|
||||
|
||||
List<Widget> get _list => [
|
||||
FirstTourPane(),
|
||||
|
||||
// Account image
|
||||
AccountImageTourPane(user: currUser),
|
||||
AccountImageTourPane(
|
||||
user: currUser,
|
||||
onUpdated: setStateKeepCurrentIndex,
|
||||
),
|
||||
|
||||
// Notifications
|
||||
PresentationPane(
|
||||
|
Reference in New Issue
Block a user