main.dart 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter/services.dart';
  3. import 'ui/main_menu.dart';
  4. import 'utils/colors.dart';
  5. void main() {
  6. runApp(const ZenTapApp());
  7. }
  8. class ZenTapApp extends StatelessWidget {
  9. const ZenTapApp({super.key});
  10. @override
  11. Widget build(BuildContext context) {
  12. return MaterialApp(
  13. title: 'ZenTap',
  14. debugShowCheckedModeBanner: false,
  15. theme: ThemeData(
  16. // Use ZenTap color scheme
  17. colorScheme: ColorScheme.dark(
  18. primary: ZenColors.buttonBackground,
  19. secondary: ZenColors.defaultLink,
  20. surface: ZenColors.uiElements,
  21. onPrimary: ZenColors.buttonText,
  22. onSecondary: ZenColors.white,
  23. onSurface: ZenColors.primaryText,
  24. ),
  25. scaffoldBackgroundColor: ZenColors.appBackground,
  26. appBarTheme: const AppBarTheme(
  27. backgroundColor: ZenColors.appBackground,
  28. foregroundColor: ZenColors.primaryText,
  29. elevation: 0,
  30. systemOverlayStyle: SystemUiOverlayStyle.light,
  31. ),
  32. textTheme: const TextTheme(
  33. bodyLarge: TextStyle(color: ZenColors.primaryText),
  34. bodyMedium: TextStyle(color: ZenColors.primaryText),
  35. bodySmall: TextStyle(color: ZenColors.secondaryText),
  36. titleLarge: TextStyle(color: ZenColors.primaryText),
  37. titleMedium: TextStyle(color: ZenColors.primaryText),
  38. titleSmall: TextStyle(color: ZenColors.primaryText),
  39. ),
  40. elevatedButtonTheme: ElevatedButtonThemeData(
  41. style: ElevatedButton.styleFrom(
  42. backgroundColor: ZenColors.buttonBackground,
  43. foregroundColor: ZenColors.buttonText,
  44. elevation: 4,
  45. shape: RoundedRectangleBorder(
  46. borderRadius: BorderRadius.circular(12),
  47. ),
  48. ),
  49. ),
  50. dialogTheme: DialogTheme(
  51. backgroundColor: ZenColors.uiElements,
  52. titleTextStyle: const TextStyle(
  53. color: ZenColors.primaryText,
  54. fontSize: 20,
  55. fontWeight: FontWeight.bold,
  56. ),
  57. contentTextStyle: TextStyle(
  58. color: ZenColors.secondaryText,
  59. fontSize: 16,
  60. ),
  61. ),
  62. useMaterial3: true,
  63. ),
  64. home: const MainMenu(),
  65. );
  66. }
  67. }