Skip to content

Commit c78ce74

Browse files
committed
chore(codelabs): remove redundant useMaterial3 flag
chore: format dart chore: undo prettier changes chore: fix formatting chore: undo readme prettier changes
1 parent cb7c4f5 commit c78ce74

File tree

175 files changed

+144
-213
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

175 files changed

+144
-213
lines changed

adaptive_app/codelab_rebuild.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,11 +334,9 @@ steps:
334334
title: 'FlutterDev Playlists',
335335
theme: FlexColorScheme.light(
336336
scheme: FlexScheme.red,
337-
useMaterial3: true,
338337
).toTheme,
339338
darkTheme: FlexColorScheme.dark(
340339
scheme: FlexScheme.red,
341-
useMaterial3: true,
342340
).toTheme,
343341
themeMode: ThemeMode.dark, // Or ThemeMode.System if you'd prefer
344342
debugShowCheckedModeBanner: false,
@@ -1586,7 +1584,6 @@ steps:
15861584
+ title: 'Your Playlists',
15871585
theme: FlexColorScheme.light(
15881586
scheme: FlexScheme.red,
1589-
useMaterial3: true,
15901587
- name: Patch lib/src/adaptive_playlists.dart
15911588
path: adaptive_app/lib/src/adaptive_playlists.dart
15921589
patch-u: |

adaptive_app/step_04/lib/main.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,9 @@ class PlaylistsApp extends StatelessWidget {
6767
title: 'FlutterDev Playlists',
6868
theme: FlexColorScheme.light(
6969
scheme: FlexScheme.red,
70-
useMaterial3: true,
7170
).toTheme,
7271
darkTheme: FlexColorScheme.dark(
7372
scheme: FlexScheme.red,
74-
useMaterial3: true,
7573
).toTheme,
7674
themeMode: ThemeMode.dark, // Or ThemeMode.System if you'd prefer
7775
debugShowCheckedModeBanner: false,

adaptive_app/step_05/lib/main.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,9 @@ class PlaylistsApp extends StatelessWidget {
7070
title: 'FlutterDev Playlists',
7171
theme: FlexColorScheme.light(
7272
scheme: FlexScheme.red,
73-
useMaterial3: true,
7473
).toTheme,
7574
darkTheme: FlexColorScheme.dark(
7675
scheme: FlexScheme.red,
77-
useMaterial3: true,
7876
).toTheme,
7977
themeMode: ThemeMode.dark, // Or ThemeMode.System if you'd prefer
8078
debugShowCheckedModeBanner: false,

adaptive_app/step_06/lib/main.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,9 @@ class PlaylistsApp extends StatelessWidget {
7070
title: 'FlutterDev Playlists',
7171
theme: FlexColorScheme.light(
7272
scheme: FlexScheme.red,
73-
useMaterial3: true,
7473
).toTheme,
7574
darkTheme: FlexColorScheme.dark(
7675
scheme: FlexScheme.red,
77-
useMaterial3: true,
7876
).toTheme,
7977
themeMode: ThemeMode.dark, // Or ThemeMode.System if you'd prefer
8078
debugShowCheckedModeBanner: false,

adaptive_app/step_07/lib/main.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,9 @@ class PlaylistsApp extends StatelessWidget {
8484
title: 'Your Playlists',
8585
theme: FlexColorScheme.light(
8686
scheme: FlexScheme.red,
87-
useMaterial3: true,
8887
).toTheme,
8988
darkTheme: FlexColorScheme.dark(
9089
scheme: FlexScheme.red,
91-
useMaterial3: true,
9290
).toTheme,
9391
themeMode: ThemeMode.dark, // Or ThemeMode.System if you'd prefer
9492
debugShowCheckedModeBanner: false,

animated-responsive-layout/codelab_rebuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ steps:
837837
@override
838838
Widget build(BuildContext context) {
839839
return MaterialApp(
840-
theme: ThemeData.light(useMaterial3: true),
840+
theme: ThemeData.light(),
841841
home: Feed(currentUser: data.user_0),
842842
);
843843
}

animated-responsive-layout/step_04/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class MainApp extends StatelessWidget {
1818
@override
1919
Widget build(BuildContext context) {
2020
return MaterialApp(
21-
theme: ThemeData.light(useMaterial3: true),
21+
theme: ThemeData.light(),
2222
home: Feed(currentUser: data.user_0),
2323
);
2424
}

animated-responsive-layout/step_05/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class MainApp extends StatelessWidget {
1919
@override
2020
Widget build(BuildContext context) {
2121
return MaterialApp(
22-
theme: ThemeData.light(useMaterial3: true),
22+
theme: ThemeData.light(),
2323
home: Feed(currentUser: data.user_0),
2424
);
2525
}

animated-responsive-layout/step_06/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class MainApp extends StatelessWidget {
2020
@override
2121
Widget build(BuildContext context) {
2222
return MaterialApp(
23-
theme: ThemeData.light(useMaterial3: true),
23+
theme: ThemeData.light(),
2424
home: Feed(currentUser: data.user_0),
2525
);
2626
}

animated-responsive-layout/step_07/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class MainApp extends StatelessWidget {
2222
@override
2323
Widget build(BuildContext context) {
2424
return MaterialApp(
25-
theme: ThemeData.light(useMaterial3: true),
25+
theme: ThemeData.light(),
2626
home: Feed(currentUser: data.user_0),
2727
);
2828
}

0 commit comments

Comments
 (0)