migrate infinite_list to Material 3 (#1614)

pull/1615/head
Miguel Beltran 3 years ago committed by GitHub
parent 6bea60b091
commit db739fd1fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save