【Flutter】十字キーボタン(コピペ用)

1 min読了の目安(約700字TECH技術記事

Flutterボタンウィジェット組み合わせ

十字キー(Cross Key)

Column(
  children: <Widget>[
    RaisedButton(
      onPressed: () {},
      child: Text('X'),
      shape: CircleBorder(),
    ),
    Row(
      mainAxisAlignment: MainAxisAlignment.center,
      children: <Widget>[
        RaisedButton(
          onPressed: () {},
          child: Text('Y'),
          shape: CircleBorder(),
        ),
        RaisedButton(
          onPressed: () {},
          child: Text('A'),
          shape: CircleBorder(),
        ),
      ],
    ),
    RaisedButton(
      onPressed: () {},
      child: Text('B'),
      shape: CircleBorder(),
    ),
  ],
),