From 8b094b6e237e2fca1bf0c0f5e52192985e9ce4ff Mon Sep 17 00:00:00 2001 From: h7x4abk3g Date: Tue, 30 Jun 2020 13:28:07 +0200 Subject: [PATCH] Update --- lib/components/kanjiSearch/kanji_search_card.dart | 4 ++++ lib/services/jisho_search.dart | 9 +++++++++ pubspec.lock | 2 +- pubspec.yaml | 2 +- 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/lib/components/kanjiSearch/kanji_search_card.dart b/lib/components/kanjiSearch/kanji_search_card.dart index 08f96fc..e6b43f5 100644 --- a/lib/components/kanjiSearch/kanji_search_card.dart +++ b/lib/components/kanjiSearch/kanji_search_card.dart @@ -12,4 +12,8 @@ class KanjiResultCard extends StatelessWidget { child: Text('Test'), ); } + + KanjiResultCard(var result) { + + } } \ No newline at end of file diff --git a/lib/services/jisho_search.dart b/lib/services/jisho_search.dart index e69de29..4ff41bb 100644 --- a/lib/services/jisho_search.dart +++ b/lib/services/jisho_search.dart @@ -0,0 +1,9 @@ +import 'package:flutter/material.dart'; +import 'package:unofficial_jisho_api/api.dart'; + +import 'package:jisho_study_tool/components/kanjiSearch/kanji_search_card.dart'; + +Future searchKanji(String kanji) async { + KanjiResult result = await searchForKanji(kanji); + return KanjiResultCard(result); +} \ No newline at end of file diff --git a/pubspec.lock b/pubspec.lock index b8d71ba..8873c18 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -190,7 +190,7 @@ packages: name: unofficial_jisho_api url: "https://pub.dartlang.org" source: hosted - version: "1.0.2" + version: "1.1.0" vector_math: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index aa80cfc..d75b381 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -23,7 +23,7 @@ dependencies: # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^0.1.2 - unofficial_jisho_api: ^1.0.2 + unofficial_jisho_api: ^1.1.0 dev_dependencies: flutter_test: