mirror of
https://github.com/h7x4/Jisho-Study-Tool.git
synced 2024-12-14 10:46:53 +01:00
26 lines
523 B
Dart
26 lines
523 B
Dart
|
|
||
|
import 'package:flutter/material.dart';
|
||
|
|
||
|
class Rank extends StatelessWidget {
|
||
|
final int _rank;
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return Container(
|
||
|
padding: EdgeInsets.all(10.0),
|
||
|
child: Text(
|
||
|
'${_rank.toString()} / 2500',
|
||
|
style: TextStyle(
|
||
|
color: Colors.white,
|
||
|
fontSize: 20.0,
|
||
|
),
|
||
|
),
|
||
|
decoration: BoxDecoration(
|
||
|
borderRadius: BorderRadius.circular(10.0),
|
||
|
color: Colors.blue,
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
|
||
|
Rank(this._rank);
|
||
|
}
|