flutter: Replace FlatButton to IconButton

This commit is contained in:
Calcitem 2021-02-14 02:01:26 +08:00
parent b0e051a06c
commit e8eb0fb875
1 changed files with 6 additions and 6 deletions

View File

@ -544,20 +544,20 @@ class _GamePageState extends State<GamePage> with RouteAware {
padding: EdgeInsets.symmetric(vertical: 2), padding: EdgeInsets.symmetric(vertical: 2),
child: Row(children: <Widget>[ child: Row(children: <Widget>[
Expanded(child: SizedBox()), Expanded(child: SizedBox()),
FlatButton( IconButton(
child: Text(S.of(context).newGame, style: buttonStyle), icon: Icon(Icons.motion_photos_on, color: UIColors.secondaryColor),
onPressed: newGame), onPressed: newGame),
Expanded(child: SizedBox()), Expanded(child: SizedBox()),
FlatButton( IconButton(
child: Text(S.of(context).regret, style: buttonStyle), icon: Icon(Icons.restore, color: UIColors.secondaryColor),
onPressed: () { onPressed: () {
Game.shared.regret(steps: 2); Game.shared.regret(steps: 2);
setState(() {}); setState(() {});
}, },
), ),
Expanded(child: SizedBox()), Expanded(child: SizedBox()),
FlatButton( IconButton(
child: Text(S.of(context).analyze, style: buttonStyle), icon: Icon(Icons.analytics_outlined, color: UIColors.secondaryColor),
onPressed: _searching ? null : analyzePosition, onPressed: _searching ? null : analyzePosition,
), ),
Expanded(child: SizedBox()), Expanded(child: SizedBox()),