Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- void main() {
- runApp(const MyApp());
- }
- const myColor = Colors.pink;
- class MyApp extends StatelessWidget {
- const MyApp({super.key});
- // This widget is the root of your application.
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- debugShowCheckedModeBanner: false,
- title: 'Flutter Demo',
- theme: ThemeData(
- useMaterial3: true,
- colorSchemeSeed: myColor,
- brightness: Brightness.light,
- ),
- darkTheme: ThemeData(
- useMaterial3: true,
- colorSchemeSeed: myColor,
- brightness: Brightness.dark,
- ),
- themeMode: ThemeMode.light,
- home: const MyHomePage(title: 'Colors Testing'),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement