cb_prestige_qr/lib/main.dart

62 lines
2.1 KiB
Dart
Raw Normal View History

2026-04-09 10:06:31 +00:00
import 'package:cb_prestige_qr/features/auth/presentation/pages/login_page.dart';
2026-04-09 06:47:03 +00:00
import 'package:flutter/material.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
runApp(const ProviderScope(child: MyApp()));
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'CB Prestige Banking',
debugShowCheckedModeBanner: false,
theme: ThemeData(
useMaterial3: true,
colorScheme: ColorScheme.fromSeed(
seedColor: const Color(0xff896e4b),
brightness: Brightness.dark,
),
scaffoldBackgroundColor: const Color(0xff25262b),
appBarTheme: const AppBarTheme(
backgroundColor: Color(0xff896e4b),
foregroundColor: Colors.white,
surfaceTintColor: Colors.transparent,
),
2026-04-09 10:06:31 +00:00
inputDecorationTheme: InputDecorationTheme(
filled: true,
fillColor: const Color(0xff2a2b31),
labelStyle: const TextStyle(color: Colors.white70),
hintStyle: const TextStyle(color: Colors.white38),
prefixIconColor: Colors.white70,
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(18),
borderSide: BorderSide.none,
),
enabledBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(18),
borderSide: BorderSide(color: Colors.white.withOpacity(0.06)),
),
focusedBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(18),
borderSide: const BorderSide(color: Color(0xff896e4b), width: 1.2),
),
errorBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(18),
borderSide: const BorderSide(color: Colors.redAccent),
),
focusedErrorBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(18),
borderSide: const BorderSide(color: Colors.redAccent),
),
),
2026-04-09 06:47:03 +00:00
),
2026-04-09 10:06:31 +00:00
home: const LoginPage(),
2026-04-09 06:47:03 +00:00
);
}
}