From 249359b5019ffda4af5b64136a9ccf50935668ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cu=CC=9Bo=CC=9Bng=20Nguye=CC=82=CC=83n?= Date: Sun, 23 May 2021 00:21:52 +0700 Subject: [PATCH] Change Container() to const SizedBox.shrink() --- lib/game/game_widget.dart | 2 +- lib/search/search_widget.dart | 2 +- lib/songs/songs_widget.dart | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/game/game_widget.dart b/lib/game/game_widget.dart index 7fcfdd9e..15471788 100644 --- a/lib/game/game_widget.dart +++ b/lib/game/game_widget.dart @@ -154,7 +154,7 @@ class GameWidget extends ConsumerWidget { )) ]); } else { - return Container(); + return const SizedBox.shrink(); } }(), )); diff --git a/lib/search/search_widget.dart b/lib/search/search_widget.dart index f008d31b..c37e03f1 100644 --- a/lib/search/search_widget.dart +++ b/lib/search/search_widget.dart @@ -39,7 +39,7 @@ class SearchWidget extends SearchDelegate { @override Widget buildResults(BuildContext context) { if (query.isEmpty) { - return Container(); + return const SizedBox.shrink(); } else { return FutureBuilder>( future: context.read(songRepositoryProvider).searchSongs(query), diff --git a/lib/songs/songs_widget.dart b/lib/songs/songs_widget.dart index b2022847..7988ce2f 100644 --- a/lib/songs/songs_widget.dart +++ b/lib/songs/songs_widget.dart @@ -68,7 +68,7 @@ class SongsWidget extends ConsumerWidget { ), ), ) - : Container(); + : const SizedBox.shrink(); }, ) ],