From 6d8d88337d653fddbc0eb70e7851a9bbe8b99405 Mon Sep 17 00:00:00 2001 From: Jacob Date: Thu, 7 Dec 2023 20:19:09 -0800 Subject: [PATCH] refactor: improve state management and update link text color --- app/lib/chat_screen.dart | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/lib/chat_screen.dart b/app/lib/chat_screen.dart index 0ea294f..21beaab 100644 --- a/app/lib/chat_screen.dart +++ b/app/lib/chat_screen.dart @@ -360,7 +360,6 @@ class _ChatScreenState extends State { cancelCurrentOperation(); } - // ignore: unused_element void _showSocialLinksDialog() { showDialog( context: context, @@ -413,7 +412,7 @@ class _ChatScreenState extends State { text, style: TextStyle( color: - Colors.blue, // Change this color to match your app's theme + Colors.black, // Change this color to match your app's theme decoration: TextDecoration.underline, ), ), @@ -506,14 +505,14 @@ class _ChatScreenState extends State { mainAxisAlignment: MainAxisAlignment.center, children: [ // Add the Social Links button - /*if (widget._dnsgs! == false) + if (widget._dnsgs! == false) Padding( padding: const EdgeInsets.only(left: 8.0), child: IconButton( icon: Icon(Icons.share), onPressed: _showSocialLinksDialog, ), - ),*/ + ), if (widget._allowEnterKey != null && widget._allowEnterKey!) ElevatedButton( child: Text(