flutter_clock_example/lib/main.dart

44 lines
933 B
Dart

import 'package:flutter/material.dart';
import 'home.dart';
import 'constants.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
// title: '',
themeMode: myThemeMode,
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(
seedColor: mySeedColor,
brightness: Brightness.light,
),
useMaterial3: true,
),
darkTheme: ThemeData(
colorScheme: ColorScheme.fromSeed(
seedColor: mySeedColor,
brightness: Brightness.dark,
),
useMaterial3: true,
),
home: const MyHomePage(),
);
}
}