mirror of
https://github.com/h7x4/Jisho-Study-Tool.git
synced 2024-12-21 21:47:29 +01:00
Update
This commit is contained in:
parent
6d72aa41c3
commit
8b094b6e23
@ -12,4 +12,8 @@ class KanjiResultCard extends StatelessWidget {
|
|||||||
child: Text('Test'),
|
child: Text('Test'),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
KanjiResultCard(var result) {
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
@ -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);
|
||||||
|
}
|
@ -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:
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user