Jisho-Study-Tool/lib/view/components/kanji/result/rank.dart

26 lines
526 B
Dart
Raw Normal View History

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