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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user