mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 13:08:42 +00:00
update icon when coming from settings
This commit is contained in:
parent
d3e7a63f38
commit
2bde206a8f
1 changed files with 5 additions and 2 deletions
|
|
@ -185,13 +185,16 @@ class _ChatListViewState extends State<ChatListView> {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
IconButton(
|
IconButton(
|
||||||
onPressed: () {
|
onPressed: () async {
|
||||||
Navigator.push(
|
await Navigator.push(
|
||||||
context,
|
context,
|
||||||
MaterialPageRoute(
|
MaterialPageRoute(
|
||||||
builder: (context) => const SettingsMainView(),
|
builder: (context) => const SettingsMainView(),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
_user = await getUser();
|
||||||
|
if (!mounted) return;
|
||||||
|
setState(() {});
|
||||||
},
|
},
|
||||||
icon: const FaIcon(FontAwesomeIcons.gear, size: 19),
|
icon: const FaIcon(FontAwesomeIcons.gear, size: 19),
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue