This commit is contained in:
parent
96b41f8fcd
commit
2eb26baf27
3 changed files with 38 additions and 2 deletions
|
@ -58,13 +58,13 @@ class _SearchListState extends State<SearchList> {
|
|||
return Center(child: Text('failed to fetch $error_message'));
|
||||
case SearchStatus.success:
|
||||
if (state.repos.isEmpty) {
|
||||
return const Center(child: Text('no repos'));
|
||||
return const Center(child: Text('No results'));
|
||||
}
|
||||
if (state.repos.length < 5) {
|
||||
context.read<SearchBloc>().add(SearchFetchedEvent());
|
||||
}
|
||||
return SizedBox(
|
||||
height: media.height -kToolbarHeight-130,
|
||||
height: media.height -kToolbarHeight-130,// Approximate height of search form
|
||||
child: ListView.builder(
|
||||
shrinkWrap: true,
|
||||
itemBuilder: (BuildContext context, int index) {
|
||||
|
|
35
pubspec.lock
35
pubspec.lock
|
@ -200,6 +200,13 @@ packages:
|
|||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.6.10"
|
||||
flutter_svg:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: flutter_svg
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.22.0"
|
||||
flutter_test:
|
||||
dependency: "direct dev"
|
||||
description: flutter
|
||||
|
@ -329,6 +336,20 @@ packages:
|
|||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.8.0"
|
||||
path_drawing:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: path_drawing
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.5.1+1"
|
||||
path_parsing:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: path_parsing
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.2.1"
|
||||
path_provider_linux:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -350,6 +371,13 @@ packages:
|
|||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.0.5"
|
||||
petitparser:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: petitparser
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "4.4.0"
|
||||
platform:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -607,6 +635,13 @@ packages:
|
|||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.2.0+1"
|
||||
xml:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: xml
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "5.3.1"
|
||||
yaml:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
|
|
@ -47,6 +47,7 @@ dependencies:
|
|||
badges: ^2.0.2
|
||||
flutter_markdown: ^0.6.10
|
||||
flutter_highlight: ^0.7.0
|
||||
flutter_svg: ^0.22.0
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
|
|
Loading…
Reference in a new issue