Screen design of Dashboard & customer Info

This commit is contained in:
2025-04-28 17:57:32 +05:30
parent fa6690165d
commit 3108093686
16 changed files with 585 additions and 323 deletions

View File

@@ -1,6 +1,8 @@
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_svg/svg.dart';
import 'package:kmobile/features/auth/screens/mpin_screen.dart';
import '../../../app.dart';
import '../controllers/auth_cubit.dart';
import '../controllers/auth_state.dart';
import '../../dashboard/screens/dashboard_screen.dart';
@@ -46,7 +48,7 @@ class LoginScreenState extends State<LoginScreen> {
listener: (context, state) {
if (state is Authenticated) {
Navigator.of(context).pushReplacement(
MaterialPageRoute(builder: (context) => const DashboardScreen()),
MaterialPageRoute(builder: (context) => const NavigationScaffold()),
);
} else if (state is AuthError) {
ScaffoldMessenger.of(context).showSnackBar(
@@ -64,7 +66,7 @@ class LoginScreenState extends State<LoginScreen> {
// crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
// Bank logo or app branding
const FlutterLogo(size: 100),
SvgPicture.asset('assets/images/kccb_logo.svg', width: 100, height: 100,),
const SizedBox(height: 16),
// Title
const Text(