1
0
mirror of https://github.com/h7x4/Jisho-Study-Tool.git synced 2025-01-07 04:07:29 +01:00
Jisho-Study-Tool/lib/view/components/kanji/result/header.dart

22 lines
508 B
Dart
Raw Normal View History

2020-07-11 13:33:31 +02:00
import 'package:flutter/material.dart';
class Header extends StatelessWidget {
2021-03-03 00:24:25 +01:00
final String kanji;
2020-07-11 13:33:31 +02:00
@override
Widget build(BuildContext context) {
return Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10.0), color: Colors.blue),
child: Padding(
padding: const EdgeInsets.all(10.0),
child: Text(
2021-03-03 00:24:25 +01:00
kanji,
2020-07-11 13:33:31 +02:00
style: TextStyle(fontSize: 80.0, color: Colors.white),
),
),
);
}
2021-03-03 00:24:25 +01:00
Header(this.kanji);
2020-07-11 13:33:31 +02:00
}