diff --git a/lib/widget/search_list.dart b/lib/widget/search_list.dart index de0b14b..2cb391a 100644 --- a/lib/widget/search_list.dart +++ b/lib/widget/search_list.dart @@ -58,13 +58,13 @@ class _SearchListState extends State { 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().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) { diff --git a/pubspec.lock b/pubspec.lock index a360e3f..53847b9 100644 --- a/pubspec.lock +++ b/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: diff --git a/pubspec.yaml b/pubspec.yaml index 3babb77..ab896f7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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: