diff --git a/lib/features/customer_info/screens/customer_info_screen.dart b/lib/features/customer_info/screens/customer_info_screen.dart index 7cf1735..8766252 100644 --- a/lib/features/customer_info/screens/customer_info_screen.dart +++ b/lib/features/customer_info/screens/customer_info_screen.dart @@ -16,34 +16,12 @@ class _CustomerInfoScreenState extends State { late final User user = widget.user; @override Widget build(BuildContext context) { + final theme = Theme.of(context); return Scaffold( appBar: AppBar( - leading: IconButton( - icon: const Icon(Symbols.arrow_back_ios_new), - onPressed: () { - Navigator.pop(context); - }, - ), title: Text( - AppLocalizations.of(context).kconnect, - style: - const TextStyle(color: Colors.black, fontWeight: FontWeight.w500), + AppLocalizations.of(context).customer, ), - 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: 100, - height: 100, - fit: BoxFit.cover, - ), - ), - ), - ], ), body: SingleChildScrollView( physics: const AlwaysScrollableScrollPhysics(), @@ -68,16 +46,18 @@ class _CustomerInfoScreenState extends State { padding: const EdgeInsets.only(top: 10.0), child: Text( user.name ?? '', - style: const TextStyle( + style: TextStyle( fontSize: 20, - color: Colors.black, + color: theme.colorScheme.onSurface, fontWeight: FontWeight.w500, ), ), ), Text( '${AppLocalizations.of(context).cif}: ${user.cifNumber ?? 'N/A'}', - style: const TextStyle(fontSize: 16, color: Colors.grey), + style: TextStyle( + fontSize: 16, + color: theme.colorScheme.onSurfaceVariant), ), const SizedBox(height: 30), InfoField( @@ -125,6 +105,7 @@ class InfoField extends StatelessWidget { @override Widget build(BuildContext context) { + final theme = Theme.of(context); return Container( width: double.infinity, margin: const EdgeInsets.symmetric(vertical: 8), @@ -133,16 +114,16 @@ class InfoField extends StatelessWidget { children: [ Text( label, - 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), ), ], ),