Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Commit

Permalink
Change Container() to const SizedBox.shrink()
Browse files Browse the repository at this point in the history
  • Loading branch information
cuong0993 committed May 22, 2021
1 parent 6042664 commit 249359b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/game/game_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class GameWidget extends ConsumerWidget {
))
]);
} else {
return Container();
return const SizedBox.shrink();
}
}(),
));
Expand Down
2 changes: 1 addition & 1 deletion lib/search/search_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class SearchWidget extends SearchDelegate<void> {
@override
Widget buildResults(BuildContext context) {
if (query.isEmpty) {
return Container();
return const SizedBox.shrink();
} else {
return FutureBuilder<List<Song>>(
future: context.read(songRepositoryProvider).searchSongs(query),
Expand Down
2 changes: 1 addition & 1 deletion lib/songs/songs_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class SongsWidget extends ConsumerWidget {
),
),
)
: Container();
: const SizedBox.shrink();
},
)
],
Expand Down

0 comments on commit 249359b

Please sign in to comment.