Jisho-Study-Tool/lib/components/kanji/kanji__search_page/grade.dart

25 lines
488 B
Dart
Raw Permalink Normal View History

2020-07-11 13:33:31 +02:00
import 'package:flutter/material.dart';
class Grade extends StatelessWidget {
final String _grade;
@override
Widget build(BuildContext context) {
return Container(
padding: EdgeInsets.all(10.0),
child: Text(
_grade,
style: TextStyle(
color: Colors.white,
fontSize: 20.0,
),
),
decoration: BoxDecoration(
color: Colors.blue,
shape: BoxShape.circle,
),
);
}
Grade(this._grade);
}