mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
platform_design: Enforce use_key_in_widget_constructors (#927)
This commit is contained in:
@@ -16,7 +16,8 @@ class SongDetailTab extends StatelessWidget {
|
||||
required this.id,
|
||||
required this.song,
|
||||
required this.color,
|
||||
});
|
||||
Key? key,
|
||||
}) : super(key: key);
|
||||
|
||||
final int id;
|
||||
final String song;
|
||||
@@ -71,7 +72,7 @@ class SongDetailTab extends StatelessWidget {
|
||||
);
|
||||
}
|
||||
// Just a bunch of boxes that simulates loading song choices.
|
||||
return SongPlaceholderTile();
|
||||
return const SongPlaceholderTile();
|
||||
},
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user