mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
Fixed ThemeData in the Flutter Samples unnecessarily includes useMaterial3 = true (Issue #2214) (#2217)
This commit is contained in:
@@ -78,7 +78,6 @@ class MyApp extends StatelessWidget {
|
||||
title: 'Flutter Module Title',
|
||||
theme: ThemeData(
|
||||
colorSchemeSeed: Colors.blue,
|
||||
useMaterial3: true,
|
||||
),
|
||||
routes: {
|
||||
'/': (context) => const FullScreenView(),
|
||||
|
||||
@@ -15,7 +15,6 @@ class MyApp extends StatelessWidget {
|
||||
return MaterialApp(
|
||||
theme: ThemeData(
|
||||
primaryColor: const Color(0xff6200ee),
|
||||
useMaterial3: true,
|
||||
),
|
||||
home: const BookDetail(),
|
||||
);
|
||||
|
||||
@@ -64,7 +64,7 @@ class MyApp extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
title: 'Flutter Module Title',
|
||||
theme: ThemeData.light(useMaterial3: true),
|
||||
theme: ThemeData.light(),
|
||||
routes: {
|
||||
'/': (context) => const FullScreenView(),
|
||||
'/mini': (context) => const Contents(),
|
||||
|
||||
@@ -25,7 +25,6 @@ class MyApp extends StatelessWidget {
|
||||
title: 'Flutter Demo',
|
||||
theme: ThemeData(
|
||||
colorSchemeSeed: color,
|
||||
useMaterial3: true,
|
||||
appBarTheme: AppBarTheme(
|
||||
backgroundColor: color,
|
||||
foregroundColor: Colors.white,
|
||||
|
||||
@@ -75,7 +75,7 @@ class MyApp extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
title: 'Flutter Module Title',
|
||||
theme: ThemeData.light(useMaterial3: true),
|
||||
theme: ThemeData.light(),
|
||||
routes: {
|
||||
'/': (context) => const FullScreenView(),
|
||||
'/mini': (context) => const Contents(),
|
||||
|
||||
@@ -64,7 +64,7 @@ class MyApp extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
title: 'Flutter Module Title',
|
||||
theme: ThemeData.light(useMaterial3: true),
|
||||
theme: ThemeData.light(),
|
||||
routes: {
|
||||
'/': (context) => const FullScreenView(),
|
||||
'/mini': (context) => const Contents(),
|
||||
|
||||
Reference in New Issue
Block a user