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

migrate infinite_list to Material 3 (#1614)

This commit is contained in:
Miguel Beltran
2023-02-01 01:42:32 +01:00
committed by GitHub
parent 6bea60b091
commit db739fd1fc

View File

@@ -43,9 +43,10 @@ class MyApp extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return ChangeNotifierProvider<Catalog>( return ChangeNotifierProvider<Catalog>(
create: (context) => Catalog(), create: (context) => Catalog(),
child: const MaterialApp( child: MaterialApp(
title: 'Infinite List Sample', title: 'Infinite List Sample',
home: MyHomePage(), theme: ThemeData.light(useMaterial3: true),
home: const MyHomePage(),
), ),
); );
} }