18 lines
444 B
Dart
18 lines
444 B
Dart
import 'dart:convert' show jsonEncode;
|
|
import 'package:unofficial_jisho_api/api.dart' as jisho;
|
|
|
|
void main() {
|
|
jisho.searchForExamples('日').then((result) {
|
|
print('Jisho Uri: ${result.uri}');
|
|
print('');
|
|
|
|
for (var i = 0; i < 3; i++) {
|
|
var example = result.results[i];
|
|
print(example.kanji);
|
|
print(example.kana);
|
|
print(example.english);
|
|
print(jsonEncode(example.pieces));
|
|
print('');
|
|
}
|
|
});
|
|
} |