Jisho-Study-Tool/lib/components/kanji/kanji__search_page/header.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);
}