24 lines
1.1 KiB
Dart
24 lines
1.1 KiB
Dart
import 'dart:convert' show jsonEncode;
|
|
import 'package:unofficial_jisho_api/unofficial_jisho_api.dart';
|
|
final jisho = JishoApi();
|
|
|
|
void main() async {
|
|
await jisho.searchForKanji('語').then((result) {
|
|
print('Found: ' + result.found.toString());
|
|
print('Taught in: ' + result.taughtIn);
|
|
print('JLPT level: ' + result.jlptLevel);
|
|
print('Newspaper frequency rank: ' + result.newspaperFrequencyRank.toString());
|
|
print('Stroke count: ' + result.strokeCount.toString());
|
|
print('Meaning: ' + result.meaning);
|
|
print('Kunyomi: ' + jsonEncode(result.kunyomi));
|
|
print('Kunyomi example: ' + jsonEncode(result.kunyomiExamples[0]));
|
|
print('Onyomi: ' + jsonEncode(result.onyomi));
|
|
print('Onyomi example: ' + jsonEncode(result.onyomiExamples[0]));
|
|
print('Radical: ' + jsonEncode(result.radical));
|
|
print('Parts: ' + jsonEncode(result.parts));
|
|
print('Stroke order diagram: ' + result.strokeOrderDiagramUri);
|
|
print('Stroke order SVG: ' + result.strokeOrderSvgUri);
|
|
print('Stroke order GIF: ' + result.strokeOrderGifUri);
|
|
print('Jisho Uri: ' + result.uri);
|
|
});
|
|
} |