1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

enable Material 3 on add_to_app/plugin (#1640)

This commit is contained in:
Miguel Beltran
2023-02-09 04:28:37 +01:00
committed by GitHub
parent 6be2b4e31e
commit 252726c2e8

View File

@@ -75,6 +75,7 @@ class MyApp extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return MaterialApp( return MaterialApp(
title: 'Flutter Module Title', title: 'Flutter Module Title',
theme: ThemeData.light(useMaterial3: true),
routes: { routes: {
'/': (context) => const FullScreenView(), '/': (context) => const FullScreenView(),
'/mini': (context) => const Contents(), '/mini': (context) => const Contents(),