Bigger numbers on month practice and capitalizing the month
This commit is contained in:
parent
76c5aec103
commit
80ad0cdef4
2 changed files with 12 additions and 3 deletions
|
@ -3,6 +3,7 @@ import 'package:ohthatsa/pages/practice/month/MonthPracticeSetup.dart';
|
||||||
import 'package:ohthatsa/util/DayCalculator.dart';
|
import 'package:ohthatsa/util/DayCalculator.dart';
|
||||||
import 'package:ohthatsa/AppDrawer.dart';
|
import 'package:ohthatsa/AppDrawer.dart';
|
||||||
import 'package:ohthatsa/util/Months.dart';
|
import 'package:ohthatsa/util/Months.dart';
|
||||||
|
import 'package:ohthatsa/util/Extensions.dart';
|
||||||
import "dart:math";
|
import "dart:math";
|
||||||
|
|
||||||
import 'MonthPracticeAnswer.dart';
|
import 'MonthPracticeAnswer.dart';
|
||||||
|
@ -64,7 +65,10 @@ class _MonthPracticeState extends State<MonthPracticePage> {
|
||||||
},
|
},
|
||||||
color: Colors.blue,
|
color: Colors.blue,
|
||||||
textColor: Colors.white,
|
textColor: Colors.white,
|
||||||
child: new Text(i.toString())
|
child: new Text(
|
||||||
|
i.toString(),
|
||||||
|
style: TextStyle(fontSize: 30)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -103,7 +107,7 @@ class _MonthPracticeState extends State<MonthPracticePage> {
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
new Text(
|
new Text(
|
||||||
(_startCount - _count).toString() + " left",
|
(_startCount - _count).toString() + " Left",
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 20,
|
fontSize: 20,
|
||||||
)
|
)
|
||||||
|
@ -117,7 +121,7 @@ class _MonthPracticeState extends State<MonthPracticePage> {
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
new Text(
|
new Text(
|
||||||
_month.string,
|
_month.string.capitalize(),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 30,
|
fontSize: 30,
|
||||||
)
|
)
|
||||||
|
|
5
lib/util/Extensions.dart
Normal file
5
lib/util/Extensions.dart
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
extension StringExtensions on String {
|
||||||
|
String capitalize() {
|
||||||
|
return this[0].toUpperCase() + this.substring(1);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue