diff --git a/lib/pages/practice/month/MonthPracticePage.dart b/lib/pages/practice/month/MonthPracticePage.dart index d049d9e..3ba0fc0 100644 --- a/lib/pages/practice/month/MonthPracticePage.dart +++ b/lib/pages/practice/month/MonthPracticePage.dart @@ -52,7 +52,11 @@ class _MonthPracticeState extends State { Widget getButtons(){ List buttons = new List(); - for(int i in [1,2,3,4,5,6]){ + for(int i in [1,2,3,4,5,6,-1,0,-1]){ + if (i == -1){ + buttons.add(Container()); + continue; + } buttons.add( new FlatButton( onPressed: () { @@ -64,17 +68,6 @@ class _MonthPracticeState extends State { ) ); } - buttons.add(Container()); - buttons.add(new FlatButton( - onPressed: () { - checkMonth(0); - }, - color: Colors.blue, - textColor: Colors.white, - child: new Text("0") - ) - ); - buttons.add(Container()); return new GridView.count( primary: false, crossAxisCount: 3,