Icon and logo issues fixed

This commit is contained in:
2025-12-04 12:44:39 +05:30
parent c7111d518a
commit fbf6df7181
10 changed files with 56 additions and 49 deletions

View File

@@ -15,7 +15,17 @@ class AppThemes {
colorScheme: colorScheme, colorScheme: colorScheme,
useMaterial3: true, useMaterial3: true,
textTheme: GoogleFonts.rubikTextTheme(), textTheme: GoogleFonts.rubikTextTheme(),
); ).copyWith(
appBarTheme: AppBarTheme(
backgroundColor: const Color(0xFF01A04C),
titleTextStyle: TextStyle(
color: colorScheme.onPrimary,
fontWeight: FontWeight.w700,
fontSize: 20,
),
iconTheme: IconThemeData(color: colorScheme.onPrimary),
actionsIconTheme: IconThemeData(color: colorScheme.onPrimary),
));
} }
static ThemeData getDarkTheme(ThemeType type) { static ThemeData getDarkTheme(ThemeType type) {
@@ -32,7 +42,17 @@ class AppThemes {
textTheme: GoogleFonts.rubikTextTheme( textTheme: GoogleFonts.rubikTextTheme(
ThemeData(brightness: Brightness.dark).textTheme, ThemeData(brightness: Brightness.dark).textTheme,
), ),
); ).copyWith(
appBarTheme: AppBarTheme(
backgroundColor: const Color(0xFF01A04C),
titleTextStyle: TextStyle(
color: colorScheme.onPrimary,
fontWeight: FontWeight.w700,
fontSize: 20,
),
iconTheme: IconThemeData(color: colorScheme.onPrimary),
actionsIconTheme: IconThemeData(color: colorScheme.onPrimary),
));
} }
static Color _getSeedColor(ThemeType type) { static Color _getSeedColor(ThemeType type) {

View File

@@ -56,8 +56,6 @@ class _BlockCardScreen extends State<BlockCardScreen> {
appBar: AppBar( appBar: AppBar(
title: Text( title: Text(
AppLocalizations.of(context).blockCard, AppLocalizations.of(context).blockCard,
style:
const TextStyle(color: Colors.black, fontWeight: FontWeight.w500),
), ),
centerTitle: false, centerTitle: false,
), ),

View File

@@ -46,8 +46,6 @@ class _CardPinChangeDetailsScreen extends State<CardPinChangeDetailsScreen> {
appBar: AppBar( appBar: AppBar(
title: Text( title: Text(
AppLocalizations.of(context).cardDetails, AppLocalizations.of(context).cardDetails,
style:
const TextStyle(color: Colors.black, fontWeight: FontWeight.w500),
), ),
centerTitle: false, centerTitle: false,
), ),

View File

@@ -46,8 +46,6 @@ class _CardPinSetScreen extends State<CardPinSetScreen> {
appBar: AppBar( appBar: AppBar(
title: Text( title: Text(
AppLocalizations.of(context).cardPin, AppLocalizations.of(context).cardPin,
style:
const TextStyle(color: Colors.black, fontWeight: FontWeight.w500),
), ),
centerTitle: false, centerTitle: false,
), ),

View File

@@ -17,9 +17,6 @@ class _ChequeManagementScreen extends State<ChequeManagementScreen> {
appBar: AppBar( appBar: AppBar(
title: Text( title: Text(
AppLocalizations.of(context).chequeManagement, AppLocalizations.of(context).chequeManagement,
style: TextStyle(
color: Theme.of(context).textTheme.titleLarge?.color,
fontWeight: FontWeight.w500),
), ),
centerTitle: false, centerTitle: false,
), ),

View File

@@ -1,7 +1,7 @@
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import 'package:kmobile/data/models/user.dart'; import 'package:kmobile/data/models/user.dart';
import 'package:material_symbols_icons/material_symbols_icons.dart';
import '../../../l10n/app_localizations.dart'; import '../../../l10n/app_localizations.dart';
class CustomerInfoScreen extends StatefulWidget { class CustomerInfoScreen extends StatefulWidget {
@@ -57,14 +57,14 @@ class _CustomerInfoScreenState extends State<CustomerInfoScreen> {
padding: const EdgeInsets.all(16.0), padding: const EdgeInsets.all(16.0),
child: Row( child: Row(
children: [ children: [
SizedBox( const SizedBox(
width: 56, width: 56,
height: 56, height: 56,
child: CircleAvatar( child: CircleAvatar(
radius: 50, radius: 50,
child: SvgPicture.asset( child: Icon(
'assets/images/avatar_male.svg', Symbols.person,
fit: BoxFit.cover, size: 56,
), ),
), ),
), ),

View File

@@ -1,6 +1,6 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_svg/svg.dart';
import 'package:kmobile/data/models/user.dart'; import 'package:kmobile/data/models/user.dart';
import 'package:kmobile/di/injection.dart'; import 'package:kmobile/di/injection.dart';
import 'package:kmobile/features/accounts/screens/account_info_screen.dart'; import 'package:kmobile/features/accounts/screens/account_info_screen.dart';
@@ -417,25 +417,27 @@ class _DashboardScreenState extends State<DashboardScreen>
child: Scaffold( child: Scaffold(
backgroundColor: theme.scaffoldBackgroundColor, backgroundColor: theme.scaffoldBackgroundColor,
appBar: AppBar( appBar: AppBar(
backgroundColor: const Color(0xFF01A04C),
leading: Padding( leading: Padding(
padding: const EdgeInsets.only(left: 10.0), padding: const EdgeInsets.only(left: 10.0),
// child: Material(
child: CircleAvatar( elevation: 4.0,
radius: 20, clipBehavior: Clip.antiAlias,
backgroundColor: Colors.white, shape: RoundedRectangleBorder(
child: Padding( side: const BorderSide(color: Colors.white, width: 1.5),
padding: const EdgeInsets.all(2.0), borderRadius: BorderRadius.circular(12.0),
child: ClipOval( ),
child: Image.asset( child: Container(
'assets/images/logo.png', width: 40,
width: 40, height: 40,
height: 40, decoration: const BoxDecoration(
fit: BoxFit.cover, color: Colors.white,
), ),
), child: Image.asset(
), 'assets/images/logo.png',
), fit: BoxFit.fill,
),
),
),
), ),
title: Text( title: Text(
AppLocalizations.of(context).kccBankFull.replaceAll('-', '\u2011'), AppLocalizations.of(context).kccBankFull.replaceAll('-', '\u2011'),
@@ -468,11 +470,11 @@ class _DashboardScreenState extends State<DashboardScreen>
), ),
); );
}, },
child: CircleAvatar( child: const CircleAvatar(
backgroundColor: Colors.grey[200],
radius: 21, radius: 21,
child: SvgPicture.asset( child: Icon(
'assets/images/avatar_male.svg', Symbols.person,
size: 30,
), ),
), ),
), ),

View File

@@ -1,7 +1,6 @@
import 'dart:io'; import 'dart:io';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
import 'package:flutter_svg/svg.dart';
import 'package:kmobile/data/repositories/auth_repository.dart'; import 'package:kmobile/data/repositories/auth_repository.dart';
import 'package:kmobile/features/profile/daily_transaction_limit.dart'; import 'package:kmobile/features/profile/daily_transaction_limit.dart';
import 'package:kmobile/features/profile/logout_dialog.dart'; import 'package:kmobile/features/profile/logout_dialog.dart';
@@ -10,6 +9,7 @@ import 'package:kmobile/security/secure_storage.dart';
import 'package:local_auth/local_auth.dart'; import 'package:local_auth/local_auth.dart';
import 'package:package_info_plus/package_info_plus.dart'; import 'package:package_info_plus/package_info_plus.dart';
import 'package:shared_preferences/shared_preferences.dart'; import 'package:shared_preferences/shared_preferences.dart';
import 'package:material_symbols_icons/material_symbols_icons.dart';
import '../../di/injection.dart'; import '../../di/injection.dart';
import '../../l10n/app_localizations.dart'; import '../../l10n/app_localizations.dart';
import 'package:kmobile/features/profile/preferences/preference_screen.dart'; import 'package:kmobile/features/profile/preferences/preference_screen.dart';
@@ -189,11 +189,11 @@ class _ProfileScreenState extends State<ProfileScreen> {
Container( Container(
width: 56, width: 56,
height: 56, height: 56,
child: CircleAvatar( child: const CircleAvatar(
radius: 50, radius: 50,
child: SvgPicture.asset( child: Icon(
'assets/images/avatar_male.svg', Symbols.person,
fit: BoxFit.cover, size: 56,
), ),
), ),
), ),

View File

@@ -143,9 +143,6 @@ class _QuickPayWithinBankScreen extends State<QuickPayWithinBankScreen> {
appBar: AppBar( appBar: AppBar(
title: Text( title: Text(
AppLocalizations.of(context).quickPayOwnBank, AppLocalizations.of(context).quickPayOwnBank,
style: TextStyle(
color: Theme.of(context).colorScheme.onSurface,
fontWeight: FontWeight.w500),
), ),
centerTitle: false, centerTitle: false,
), ),

View File

@@ -55,9 +55,6 @@ class _BranchLocatorScreenState extends State<BranchLocatorScreen> {
appBar: AppBar( appBar: AppBar(
title: Text( title: Text(
"Branch Locator", "Branch Locator",
style: Theme.of(context).textTheme.titleLarge?.copyWith(
color: Theme.of(context).colorScheme.onSurface,
),
), ),
), ),
body: Stack( body: Stack(