1
0
mirror of https://github.com/h7x4/Jisho-Study-Tool.git synced 2024-12-21 13:37:29 +01:00
This commit is contained in:
Oystein Kristoffer Tveit 2020-06-30 13:28:07 +02:00
parent 6d72aa41c3
commit 8b094b6e23
4 changed files with 15 additions and 2 deletions

View File

@ -12,4 +12,8 @@ class KanjiResultCard extends StatelessWidget {
child: Text('Test'),
);
}
KanjiResultCard(var result) {
}
}

View File

@ -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<Widget> searchKanji(String kanji) async {
KanjiResult result = await searchForKanji(kanji);
return KanjiResultCard(result);
}

View File

@ -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:

View File

@ -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: