From 3faecac1e7dca00a3f9297b4fc75cbc5313ec053 Mon Sep 17 00:00:00 2001 From: dane madsen Date: Thu, 30 Nov 2023 19:50:03 +1000 Subject: [PATCH] Add character name to chat controls bar --- lib/widgets/chat_widgets/chat_controls.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/widgets/chat_widgets/chat_controls.dart b/lib/widgets/chat_widgets/chat_controls.dart index 8ad09fe..ffa6b2b 100644 --- a/lib/widgets/chat_widgets/chat_controls.dart +++ b/lib/widgets/chat_widgets/chat_controls.dart @@ -43,8 +43,13 @@ class ChatControlsState extends State { const SizedBox(width: 10.0), CircleAvatar( backgroundImage: const AssetImage("assets/default_profile.png"), - foregroundImage: Image.file(Provider.of(context, listen: false).profile).image, + foregroundImage: Image.file(context.read().profile).image, radius: 16, + ), + const SizedBox(width: 10.0), + Text( + context.read().name, + style: Theme.of(context).textTheme.labelLarge, ) ], if (siblingCount > 1)