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
|
|
|
}
|