2020-07-11 13:33:31 +02:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:unofficial_jisho_api/api.dart' as jisho;
|
|
|
|
|
|
|
|
class Radical extends StatelessWidget {
|
2021-03-03 00:24:25 +01:00
|
|
|
final jisho.Radical radical;
|
2020-07-11 13:33:31 +02:00
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Container(
|
|
|
|
padding: EdgeInsets.all(10.0),
|
|
|
|
child: Text(
|
2021-03-03 00:24:25 +01:00
|
|
|
radical.symbol,
|
2020-07-11 13:33:31 +02:00
|
|
|
style: TextStyle(
|
|
|
|
color: Colors.white,
|
|
|
|
fontSize: 40.0,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
shape: BoxShape.circle,
|
|
|
|
color: Colors.blue,
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-03-03 00:24:25 +01:00
|
|
|
Radical(this.radical);
|
2020-07-11 13:33:31 +02:00
|
|
|
}
|