View difference between Paste ID: BV4MsD8F and T0UHbx6T
SHOW: | | - or go back to the newest paste.
1
import 'package:flutter/material.dart';
2
3
void main() {
4
  runApp(const MyApp());
5
}
6
7
const myColor = Colors.pink;
8
9
class MyApp extends StatelessWidget {
10
  const MyApp({super.key});
11
12
  // This widget is the root of your application.
13
  @override
14
  Widget build(BuildContext context) {
15
    return MaterialApp(
16
      debugShowCheckedModeBanner: false,
17
      title: 'Flutter Demo',
18
      theme: ThemeData(
19
        useMaterial3: true,
20
        colorSchemeSeed: myColor,
21
        brightness: Brightness.light,
22
      ),
23
      darkTheme: ThemeData(
24
        useMaterial3: true,
25
        colorSchemeSeed: myColor,
26
        brightness: Brightness.dark,
27
      ),
28
      themeMode: ThemeMode.light,
29
      home: const MyHomePage(title: 'Colors Testing'),
30
    );
31
  }
32
}