| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- import 'package:flutter/material.dart';
- import 'package:flutter/services.dart';
- import 'ui/main_menu.dart';
- import 'utils/colors.dart';
- void main() {
- runApp(const ZenTapApp());
- }
- class ZenTapApp extends StatelessWidget {
- const ZenTapApp({super.key});
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- title: 'ZenTap',
- debugShowCheckedModeBanner: false,
- theme: ThemeData(
- // Use ZenTap color scheme
- colorScheme: ColorScheme.dark(
- primary: ZenColors.buttonBackground,
- secondary: ZenColors.defaultLink,
- surface: ZenColors.uiElements,
- onPrimary: ZenColors.buttonText,
- onSecondary: ZenColors.white,
- onSurface: ZenColors.primaryText,
- ),
- scaffoldBackgroundColor: ZenColors.appBackground,
- appBarTheme: const AppBarTheme(
- backgroundColor: ZenColors.appBackground,
- foregroundColor: ZenColors.primaryText,
- elevation: 0,
- systemOverlayStyle: SystemUiOverlayStyle.light,
- ),
- textTheme: const TextTheme(
- bodyLarge: TextStyle(color: ZenColors.primaryText),
- bodyMedium: TextStyle(color: ZenColors.primaryText),
- bodySmall: TextStyle(color: ZenColors.secondaryText),
- titleLarge: TextStyle(color: ZenColors.primaryText),
- titleMedium: TextStyle(color: ZenColors.primaryText),
- titleSmall: TextStyle(color: ZenColors.primaryText),
- ),
- elevatedButtonTheme: ElevatedButtonThemeData(
- style: ElevatedButton.styleFrom(
- backgroundColor: ZenColors.buttonBackground,
- foregroundColor: ZenColors.buttonText,
- elevation: 4,
- shape: RoundedRectangleBorder(
- borderRadius: BorderRadius.circular(12),
- ),
- ),
- ),
- dialogTheme: DialogTheme(
- backgroundColor: ZenColors.uiElements,
- titleTextStyle: const TextStyle(
- color: ZenColors.primaryText,
- fontSize: 20,
- fontWeight: FontWeight.bold,
- ),
- contentTextStyle: TextStyle(
- color: ZenColors.secondaryText,
- fontSize: 16,
- ),
- ),
- useMaterial3: true,
- ),
- home: const MainMenu(),
- );
- }
- }
|