1
0
mirror of https://github.com/flutter/samples.git synced 2026-04-19 21:41:43 +00:00

infinite_list: Adjust lint rules and rebuild Android, iOS and Web runners (#823)

This commit is contained in:
Brett Morgan
2021-06-07 12:37:13 +10:00
committed by GitHub
parent 936d1fdaae
commit 35f43dae45
22 changed files with 156 additions and 89 deletions

View File

@@ -9,15 +9,17 @@ import 'src/catalog.dart';
import 'src/item_tile.dart';
void main() {
runApp(MyApp());
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return ChangeNotifierProvider<Catalog>(
create: (context) => Catalog(),
child: MaterialApp(
child: const MaterialApp(
title: 'Infinite List Sample',
home: MyHomePage(),
),
@@ -26,6 +28,8 @@ class MyApp extends StatelessWidget {
}
class MyHomePage extends StatelessWidget {
const MyHomePage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(