Add logo SVG asset and improve authentication error handling

- Added a new logo SVG asset to the AssetsManager for better branding.
- Updated the AuthViewModel to notify listeners on authentication error changes.
- Modified DesktopNavigationWidget to use the new logo SVG with specified dimensions for improved layout.
This commit is contained in:
amirrezaghabeli
2025-11-16 14:54:45 +03:30
parent abf1cc3f7d
commit 64a1c30e6c
4 changed files with 21 additions and 1 deletions
+1
View File
@@ -5,6 +5,7 @@ class AssetsManager {
static const logoSmall = 'assets/icons/logo_small.svg';
static const logoBig = 'assets/icons/logo_big.svg';
static const logoBigPng = 'assets/pngs/logo-big.png';
static const logoSvg = 'assets/icons/logo.svg';
//bottom navigation
static const homeActive = 'assets/icons/home_active.svg';
+1
View File
@@ -84,6 +84,7 @@ class AuthViewModel with ChangeNotifier {
break;
case Error<LoginResponseModel>():
_errorMessage = result.error.toString();
notifyListeners();
break;
}
@@ -47,7 +47,11 @@ class DesktopNavigationWidget extends StatelessWidget {
context.read<TabNavigationService>().onTabSelected(0);
}
},
child: SvgPicture.asset(AssetsManager.logoSmall),
child: SizedBox(
width: 150,
height: 48,
child: SvgPicture.asset(AssetsManager.logoSvg),
),
),
const Spacer(),
_navigationItem(