mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 09:28:41 +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(
|
||||
onPressed: () {
|
||||
Navigator.push(
|
||||
onPressed: () async {
|
||||
await Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => const SettingsMainView(),
|
||||
),
|
||||
);
|
||||
_user = await getUser();
|
||||
if (!mounted) return;
|
||||
setState(() {});
|
||||
},
|
||||
icon: const FaIcon(FontAwesomeIcons.gear, size: 19),
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue