From 53caa5b7ae94daf10eb9efb98cb8c10856f5ff65 Mon Sep 17 00:00:00 2001 From: asif Date: Sat, 30 Aug 2025 01:31:56 +0530 Subject: [PATCH] removed decorations from title bar and chaged constant colors to themes --- .../accounts/screens/account_info_screen.dart | 34 +++---------------- 1 file changed, 4 insertions(+), 30 deletions(-) diff --git a/lib/features/accounts/screens/account_info_screen.dart b/lib/features/accounts/screens/account_info_screen.dart index e454e5d..db88654 100644 --- a/lib/features/accounts/screens/account_info_screen.dart +++ b/lib/features/accounts/screens/account_info_screen.dart @@ -32,35 +32,9 @@ class _AccountInfoScreen extends State { int selectedIndex = widget.selectedIndex; return Scaffold( appBar: AppBar( - leading: IconButton( - icon: const Icon(Symbols.arrow_back_ios_new), - onPressed: () { - Navigator.pop(context); - }, - ), title: Text( AppLocalizations.of(context).accountInfo, - style: const TextStyle( - color: Colors.black, - fontWeight: FontWeight.w500, - ), ), - centerTitle: false, - actions: [ - Padding( - padding: const EdgeInsets.only(right: 10.0), - child: CircleAvatar( - backgroundColor: Colors.grey[200], - radius: 20, - child: SvgPicture.asset( - 'assets/images/avatar_male.svg', - width: 40, - height: 40, - fit: BoxFit.cover, - ), - ), - ), - ], ), body: ListView( padding: const EdgeInsets.all(16.0), @@ -70,7 +44,6 @@ class _AccountInfoScreen extends State { style: const TextStyle(fontWeight: FontWeight.w500, fontSize: 14), ), - /// Dropdown to change account DropdownButton( value: selectedUser, onChanged: (User? newUser) { @@ -130,6 +103,7 @@ class InfoRow extends StatelessWidget { @override Widget build(BuildContext context) { + final theme = Theme.of(context); return Container( width: double.infinity, margin: const EdgeInsets.symmetric(vertical: 8), @@ -138,16 +112,16 @@ class InfoRow extends StatelessWidget { children: [ Text( title, - style: const TextStyle( + style: TextStyle( fontSize: 15, fontWeight: FontWeight.w500, - color: Colors.black87, + color: theme.colorScheme.onSurfaceVariant, ), ), const SizedBox(height: 3), Text( value, - style: const TextStyle(fontSize: 16, color: Colors.black), + style: TextStyle(fontSize: 16, color: theme.colorScheme.onSurface), ), ], ),