1
0
mirror of https://github.com/h7x4/Jisho-Study-Tool.git synced 2024-12-14 02:41:50 +01:00
Jisho-Study-Tool/lib/components/kanji/kanji_search_card.dart
2020-07-09 20:06:48 +02:00

41 lines
1.0 KiB
Dart

import 'package:flutter/material.dart';
import 'package:unofficial_jisho_api/api.dart';
class KanjiResultCard extends StatelessWidget {
final KanjiResult _result;
@override
Widget build(BuildContext context) {
return Row(
children: [
Expanded(
child: Container(
child: Center(
child: Text(_result.query),
),
height: 50.0,
margin: EdgeInsets.symmetric(
horizontal: 20.0,
vertical: 20.0,
),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10.0),
color: Colors.white,
boxShadow: [
BoxShadow(
color: Colors.grey.withOpacity(0.5),
spreadRadius: 2,
blurRadius: 1,
offset: Offset(2, 2), // changes position of shadow
)
]),
),
),
],
);
}
KanjiResultCard(this._result);
}