forked from firka/student-legacy
Merge branch 'master' into dev
This commit is contained in:
commit
758bcda581
@ -121,7 +121,7 @@ class _GradeCalculatorState extends State<GradeCalculator> {
|
|||||||
child: MaterialActionButton(
|
child: MaterialActionButton(
|
||||||
child: Text("Add Grade".i18n),
|
child: Text("Add Grade".i18n),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
if (calculatorProvider.ghosts.length >= 30) {
|
if (calculatorProvider.ghosts.length >= 50) {
|
||||||
ScaffoldMessenger.of(context).showSnackBar(CustomSnackBar(content: Text("limit_reached".i18n), context: context));
|
ScaffoldMessenger.of(context).showSnackBar(CustomSnackBar(content: Text("limit_reached".i18n), context: context));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user