Theme UI According to Client
This commit is contained in:
@@ -342,10 +342,10 @@ class _NavigationScaffoldState extends State<NavigationScaffold> {
|
|||||||
bottomNavigationBar: BottomNavigationBar(
|
bottomNavigationBar: BottomNavigationBar(
|
||||||
currentIndex: _selectedIndex,
|
currentIndex: _selectedIndex,
|
||||||
type: BottomNavigationBarType.fixed,
|
type: BottomNavigationBarType.fixed,
|
||||||
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
|
backgroundColor: const Color(0XFF1E58AD),
|
||||||
selectedItemColor: Theme.of(context).colorScheme.primary,
|
selectedItemColor: Theme.of(context).colorScheme.onPrimary,
|
||||||
unselectedItemColor:
|
unselectedItemColor:
|
||||||
Theme.of(context).colorScheme.onSurface.withOpacity(0.7),
|
Theme.of(context).colorScheme.onSecondary,
|
||||||
onTap: (index) {
|
onTap: (index) {
|
||||||
setState(() {
|
setState(() {
|
||||||
_selectedIndex = index;
|
_selectedIndex = index;
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
// ignore_for_file: unused_import
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:kmobile/features/card/screens/block_card_screen.dart';
|
import 'package:kmobile/features/card/screens/block_card_screen.dart';
|
||||||
import 'package:kmobile/features/card/screens/card_details_screen.dart';
|
import 'package:kmobile/features/card/screens/card_details_screen.dart';
|
||||||
@@ -35,12 +37,12 @@ class _CardManagementScreen extends State<CardManagementScreen> {
|
|||||||
icon: Symbols.remove_moderator,
|
icon: Symbols.remove_moderator,
|
||||||
label: AppLocalizations.of(context).blockUnblockCard,
|
label: AppLocalizations.of(context).blockUnblockCard,
|
||||||
onTap: () {
|
onTap: () {
|
||||||
Navigator.push(
|
// Navigator.push(
|
||||||
context,
|
// context,
|
||||||
MaterialPageRoute(
|
// MaterialPageRoute(
|
||||||
builder: (context) => const BlockCardScreen(),
|
// builder: (context) => const BlockCardScreen(),
|
||||||
),
|
// ),
|
||||||
);
|
// );
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
const Divider(height: 1),
|
const Divider(height: 1),
|
||||||
@@ -61,12 +63,12 @@ class _CardManagementScreen extends State<CardManagementScreen> {
|
|||||||
icon: Symbols.payment_card,
|
icon: Symbols.payment_card,
|
||||||
label: AppLocalizations.of(context).viewCardDeatils,
|
label: AppLocalizations.of(context).viewCardDeatils,
|
||||||
onTap: () {
|
onTap: () {
|
||||||
Navigator.push(
|
// Navigator.push(
|
||||||
context,
|
// context,
|
||||||
MaterialPageRoute(
|
// MaterialPageRoute(
|
||||||
builder: (context) => const CardDetailsScreen(),
|
// builder: (context) => const CardDetailsScreen(),
|
||||||
),
|
// ),
|
||||||
);
|
// );
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
const Divider(height: 1),
|
const Divider(height: 1),
|
||||||
|
@@ -289,7 +289,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|||||||
vertical: 10,
|
vertical: 10,
|
||||||
),
|
),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: theme.colorScheme.primary,
|
color: Color(0xFF01A04C),
|
||||||
borderRadius: BorderRadius.circular(16),
|
borderRadius: BorderRadius.circular(16),
|
||||||
),
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
|
@@ -25,7 +25,7 @@ class BranchLocatorScreen extends StatefulWidget {
|
|||||||
class _BranchLocatorScreenState extends State<BranchLocatorScreen> {
|
class _BranchLocatorScreenState extends State<BranchLocatorScreen> {
|
||||||
final TextEditingController _searchController = TextEditingController();
|
final TextEditingController _searchController = TextEditingController();
|
||||||
|
|
||||||
// Static list of 5 branches
|
// Static list of 2 branches
|
||||||
final List<Branch> _branches = [
|
final List<Branch> _branches = [
|
||||||
Branch(
|
Branch(
|
||||||
name: "Dharamsala - Head Office",
|
name: "Dharamsala - Head Office",
|
||||||
@@ -36,7 +36,7 @@ class _BranchLocatorScreenState extends State<BranchLocatorScreen> {
|
|||||||
name: "Kangra",
|
name: "Kangra",
|
||||||
code: "033",
|
code: "033",
|
||||||
ifsc: "KACE0000033",
|
ifsc: "KACE0000033",
|
||||||
address: "Rajput Bhawankangrapo Kangra, Kangra, HP "),
|
address: "Rajput Bhawankangrapo, Kangra, HP "),
|
||||||
];
|
];
|
||||||
|
|
||||||
List<Branch> _filteredBranches = [];
|
List<Branch> _filteredBranches = [];
|
||||||
@@ -63,45 +63,6 @@ class _BranchLocatorScreenState extends State<BranchLocatorScreen> {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// @override
|
|
||||||
// Widget build(BuildContext context) {
|
|
||||||
// return Scaffold(
|
|
||||||
// appBar: AppBar(
|
|
||||||
// title: Text(AppLocalizations.of(context).branchLocator),
|
|
||||||
// ),
|
|
||||||
// body: Center(
|
|
||||||
// child: Column(
|
|
||||||
// mainAxisAlignment: MainAxisAlignment.center,
|
|
||||||
// children: [
|
|
||||||
// Icon(
|
|
||||||
// Icons.location_on,
|
|
||||||
// size: 80,
|
|
||||||
// color: Theme.of(context).primaryColor,
|
|
||||||
// ),
|
|
||||||
// const SizedBox(height: 16),
|
|
||||||
// Text(
|
|
||||||
// AppLocalizations.of(context).findnearbybranched,
|
|
||||||
// style: const TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
|
|
||||||
// ),
|
|
||||||
// const SizedBox(height: 24),
|
|
||||||
// ElevatedButton.icon(
|
|
||||||
// icon: const Icon(Icons.search),
|
|
||||||
// label: Text( AppLocalizations.of(context).searchbranch),
|
|
||||||
// onPressed: () {
|
|
||||||
// // Place API here
|
|
||||||
|
|
||||||
// // ScaffoldMessenger.of(context).showSnackBar(
|
|
||||||
// // SnackBar(content: Text( AppLocalizations.of(context).branchsearchsoon)),
|
|
||||||
// // );
|
|
||||||
// },
|
|
||||||
// ),
|
|
||||||
// ],
|
|
||||||
// ),
|
|
||||||
// ),
|
|
||||||
// );
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
@@ -139,7 +100,7 @@ class _BranchLocatorScreenState extends State<BranchLocatorScreen> {
|
|||||||
horizontal: 12, vertical: 6),
|
horizontal: 12, vertical: 6),
|
||||||
child: ListTile(
|
child: ListTile(
|
||||||
leading: Icon(Icons.location_city,
|
leading: Icon(Icons.location_city,
|
||||||
color: Theme.of(context).primaryColor),
|
color: Theme.of(context).colorScheme.primary),
|
||||||
title: Text(branch.name,
|
title: Text(branch.name,
|
||||||
style:
|
style:
|
||||||
const TextStyle(fontWeight: FontWeight.bold)),
|
const TextStyle(fontWeight: FontWeight.bold)),
|
||||||
|
@@ -16,12 +16,12 @@ void main() async {
|
|||||||
|
|
||||||
// Check for device compromise
|
// Check for device compromise
|
||||||
final compromisedMessage = await SecurityService.deviceCompromisedMessage;
|
final compromisedMessage = await SecurityService.deviceCompromisedMessage;
|
||||||
// if (compromisedMessage != null) {
|
if (compromisedMessage != null) {
|
||||||
// runApp(MaterialApp(
|
runApp(MaterialApp(
|
||||||
// home: SecurityErrorScreen(message: compromisedMessage),
|
home: SecurityErrorScreen(message: compromisedMessage),
|
||||||
// ));
|
));
|
||||||
// return;
|
return;
|
||||||
// }
|
}
|
||||||
|
|
||||||
// Initialize dependencies
|
// Initialize dependencies
|
||||||
await setupDependencies();
|
await setupDependencies();
|
||||||
|
@@ -357,14 +357,6 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.19.0"
|
version: "0.19.0"
|
||||||
jailbreak_root_detection:
|
|
||||||
dependency: "direct main"
|
|
||||||
description:
|
|
||||||
name: jailbreak_root_detection
|
|
||||||
sha256: c611229940a09785bd686364e92a40b07724926d2496c931527805101eb3da86
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "1.1.6"
|
|
||||||
js:
|
js:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@@ -60,6 +60,8 @@ dependencies:
|
|||||||
lottie: ^2.6.0
|
lottie: ^2.6.0
|
||||||
share_plus: ^7.2.1
|
share_plus: ^7.2.1
|
||||||
confetti: ^0.7.0
|
confetti: ^0.7.0
|
||||||
|
# jailbreak_root_detection: "^1.1.6"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user