mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 22:09:06 +00:00
enable Material 3 on add_to_app/multiple_flutters (#1639)
This commit is contained in:
@@ -24,7 +24,13 @@ class MyApp extends StatelessWidget {
|
|||||||
return MaterialApp(
|
return MaterialApp(
|
||||||
title: 'Flutter Demo',
|
title: 'Flutter Demo',
|
||||||
theme: ThemeData(
|
theme: ThemeData(
|
||||||
primarySwatch: color,
|
colorSchemeSeed: color,
|
||||||
|
useMaterial3: true,
|
||||||
|
appBarTheme: AppBarTheme(
|
||||||
|
backgroundColor: color,
|
||||||
|
foregroundColor: Colors.white,
|
||||||
|
elevation: 8,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
home: const MyHomePage(title: 'Flutter Demo Home Page'),
|
home: const MyHomePage(title: 'Flutter Demo Home Page'),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user