58 lines
1.8 KiB
Dart
58 lines
1.8 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
|
import 'package:google_fonts/google_fonts.dart';
|
|
|
|
import 'app_cubit.dart';
|
|
import 'router.dart';
|
|
|
|
class WalkGuideApp extends StatelessWidget {
|
|
const WalkGuideApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
const seed = Color(0xFF1A56DB);
|
|
|
|
return BlocProvider(
|
|
create: (_) => AppCubit(),
|
|
child: MaterialApp.router(
|
|
title: 'WalkGuide',
|
|
debugShowCheckedModeBanner: false,
|
|
routerConfig: appRouter,
|
|
theme: ThemeData(
|
|
useMaterial3: true,
|
|
colorScheme: ColorScheme.fromSeed(seedColor: seed),
|
|
scaffoldBackgroundColor: const Color(0xFFF8FAFC),
|
|
textTheme: GoogleFonts.interTextTheme(),
|
|
appBarTheme: const AppBarTheme(
|
|
centerTitle: false,
|
|
backgroundColor: Colors.white,
|
|
foregroundColor: Color(0xFF0F172A),
|
|
elevation: 0,
|
|
surfaceTintColor: Colors.white,
|
|
),
|
|
filledButtonTheme: FilledButtonThemeData(
|
|
style: FilledButton.styleFrom(
|
|
backgroundColor: seed,
|
|
foregroundColor: Colors.white,
|
|
minimumSize: const Size(0, 46),
|
|
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(10)),
|
|
),
|
|
),
|
|
inputDecorationTheme: InputDecorationTheme(
|
|
filled: true,
|
|
fillColor: Colors.white,
|
|
border: OutlineInputBorder(
|
|
borderRadius: BorderRadius.circular(10),
|
|
borderSide: const BorderSide(color: Color(0xFFE2E8F0)),
|
|
),
|
|
enabledBorder: OutlineInputBorder(
|
|
borderRadius: BorderRadius.circular(10),
|
|
borderSide: const BorderSide(color: Color(0xFFE2E8F0)),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|