Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove redundant use material3 #11693

Merged
merged 4 commits into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion examples/app-architecture/offline_first/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class MyApp extends StatelessWidget {
title: 'Flutter Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: UserProfileScreen(
viewModel: UserProfileViewModel(
Expand Down
2 changes: 0 additions & 2 deletions examples/cookbook/design/themes/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ class MyApp extends StatelessWidget {
return MaterialApp(
title: appName,
theme: ThemeData(
useMaterial3: true,

// Define the default brightness and colors.
colorScheme: ColorScheme.fromSeed(
seedColor: Colors.purple,
Expand Down
2 changes: 1 addition & 1 deletion examples/cookbook/effects/gradient_bubbles/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class App extends StatelessWidget {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Flutter Chat',
theme: ThemeData.dark(useMaterial3: true),
theme: ThemeData.dark(),
home: home,
);
}
Expand Down
1 change: 0 additions & 1 deletion examples/cookbook/lists/spaced_items/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class SpacedItemsList extends StatelessWidget {
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
cardTheme: CardTheme(color: Colors.blue.shade50),
useMaterial3: true,
),
home: Scaffold(
body: LayoutBuilder(builder: (context, constraints) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class MyApp extends StatelessWidget {
title: 'Flutter Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
Expand Down
1 change: 0 additions & 1 deletion examples/testing/native_debugging/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class MyApp extends StatelessWidget {
return MaterialApp(
title: 'URL Launcher',
theme: ThemeData(
useMaterial3: true,
colorSchemeSeed: Colors.purple,
),
home: const MyHomePage(title: 'URL Launcher'),
Expand Down
4 changes: 0 additions & 4 deletions src/content/cookbook/design/themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ Flutter creates a default theme for you.
MaterialApp(
title: appName,
theme: ThemeData(
useMaterial3: true,

// Define the default brightness and colors.
colorScheme: ColorScheme.fromSeed(
seedColor: Colors.purple,
Expand Down Expand Up @@ -208,8 +206,6 @@ class MyApp extends StatelessWidget {
return MaterialApp(
title: appName,
theme: ThemeData(
useMaterial3: true,

// Define the default brightness and colors.
colorScheme: ColorScheme.fromSeed(
seedColor: Colors.purple,
Expand Down
2 changes: 1 addition & 1 deletion src/content/cookbook/effects/gradient-bubbles.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ class App extends StatelessWidget {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Flutter Chat',
theme: ThemeData.dark(useMaterial3: true),
theme: ThemeData.dark(),
home: home,
);
}
Expand Down
1 change: 0 additions & 1 deletion src/content/cookbook/lists/spaced-items.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ class SpacedItemsList extends StatelessWidget {
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
cardTheme: CardTheme(color: Colors.blue.shade50),
useMaterial3: true,
),
home: Scaffold(
body: LayoutBuilder(builder: (context, constraints) {
Expand Down
Loading