1
0
mirror of https://github.com/h7x4/Jisho-Study-Tool.git synced 2025-01-05 11:27:29 +01:00
Jisho-Study-Tool/lib/view/components/kanji/result/radical.dart
2021-07-17 12:19:03 +02:00

26 lines
566 B
Dart

import 'package:flutter/material.dart';
import 'package:unofficial_jisho_api/api.dart' as jisho;
class Radical extends StatelessWidget {
final jisho.Radical radical;
@override
Widget build(BuildContext context) {
return Container(
padding: EdgeInsets.all(10.0),
child: Text(
radical.symbol,
style: TextStyle(
color: Colors.white,
fontSize: 40.0,
),
),
decoration: BoxDecoration(
shape: BoxShape.circle,
color: Colors.blue,
),
);
}
Radical(this.radical);
}