1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-09 06:18:49 +00:00

web/charts: Migrate to null safety (#921)

This commit is contained in:
Brett Morgan
2021-10-08 16:39:37 +11:00
committed by GitHub
parent d14e79b833
commit 8932e60976
106 changed files with 355 additions and 346 deletions

View File

@@ -20,17 +20,17 @@ typedef GalleryWidgetBuilder = Widget Function();
/// Helper to build gallery.
class GalleryScaffold extends StatefulWidget {
/// The widget used for leading in a [ListTile].
final Widget listTileIcon;
final Widget? listTileIcon;
final String title;
final String subtitle;
final GalleryWidgetBuilder childBuilder;
const GalleryScaffold(
{this.listTileIcon,
this.title,
this.subtitle,
this.childBuilder,
Key key})
required this.title,
required this.subtitle,
required this.childBuilder,
Key? key})
: super(key: key);
/// Gets the gallery