1
0
mirror of https://github.com/h7x4/Jisho-Study-Tool.git synced 2024-12-21 21:47: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'), 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 name: unofficial_jisho_api
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.2" version: "1.1.0"
vector_math: vector_math:
dependency: transitive dependency: transitive
description: description:

View File

@ -23,7 +23,7 @@ dependencies:
# The following adds the Cupertino Icons font to your application. # The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons. # Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2 cupertino_icons: ^0.1.2
unofficial_jisho_api: ^1.0.2 unofficial_jisho_api: ^1.1.0
dev_dependencies: dev_dependencies:
flutter_test: flutter_test: