mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +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(
|
||||
title: 'Flutter Demo',
|
||||
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'),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user