mirror of
https://github.com/h7x4/Jisho-Study-Tool.git
synced 2025-01-05 19:37:29 +01:00
27 lines
609 B
Dart
27 lines
609 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import 'package:unofficial_jisho_api/api.dart';
|
|
|
|
import 'parts/header.dart';
|
|
import 'parts/other_forms.dart';
|
|
|
|
class SearchResultCard extends StatelessWidget {
|
|
final JishoResult _result;
|
|
JishoJapaneseWord _mainWord;
|
|
List<JishoJapaneseWord> _otherForms;
|
|
|
|
SearchResultCard(this._result) {
|
|
this._mainWord = _result.japanese[0];
|
|
this._otherForms = _result.japanese.sublist(1);
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return ExpansionTile(
|
|
title: JapaneseHeader(_mainWord),
|
|
children: [OtherForms(_otherForms)],
|
|
);
|
|
}
|
|
}
|
|
|