mirror of
https://github.com/h7x4/Jisho-Study-Tool.git
synced 2024-12-14 10:46:53 +01:00
22 lines
511 B
Dart
22 lines
511 B
Dart
|
import 'package:flutter/material.dart';
|
||
|
|
||
|
class Header extends StatelessWidget {
|
||
|
final String _kanji;
|
||
|
|
||
|
@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(
|
||
|
_kanji,
|
||
|
style: TextStyle(fontSize: 80.0, color: Colors.white),
|
||
|
),
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
|
||
|
Header(this._kanji);
|
||
|
}
|