1
0
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:
Miguel Beltran
2023-02-09 04:29:55 +01:00
committed by GitHub
parent 252726c2e8
commit 00dc0d12dc

View File

@@ -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'),
); );