Как добавить поднятую кнопку под столом - PullRequest
0 голосов
/ 01 мая 2020

Я создал таблицу и хочу добавить поднятую кнопку, которая перенесет меня на другую страницу. Вот как выглядит мой код, и я хочу добавить кнопку в правом нижнем углу.

'class Leaderboard extends StatelessWidget {

@ переопределить сборку виджета (контекст BuildContext) {return Scaffold (appBar: AppBar (title: Text (') LO GO QUIZ ', стиль: TextStyle (fontWeight: FontWeight.bold, fontSize: 50.0, color: Colors.yellow)), centerTitle: true,), тело: контейнер (цвет: Colors.white, отступы: EdgeInsets.only (верх: 50,0),

        child: Table(children: [
          TableRow(children: [
            Text('LEADER',
                textAlign: TextAlign.right,
                style: TextStyle(
                    color: Colors.deepOrange,
                    fontWeight: FontWeight.bold,
                    fontSize: 40.0)),
            Text('BOARD',
                textAlign: TextAlign.left,
                style: TextStyle(
                    color: Colors.deepOrange,
                    fontWeight: FontWeight.bold,
                    fontSize: 40.0)),
          ]),
          TableRow(children: [
            Text('PLAYER',
                textAlign: TextAlign.center,
                style: TextStyle(
                    backgroundColor: Colors.pink,
                    fontWeight: FontWeight.bold,
                    fontSize: 40.0)),
            Text('SCORE',
                textAlign: TextAlign.center,
                style: TextStyle(
                    backgroundColor: Colors.pinkAccent,
                    fontWeight: FontWeight.bold,
                    fontSize: 40.0)),
          ]),
          TableRow(children: [
            Text('Player 1',
                textAlign: TextAlign.center,
                style:
                    TextStyle(fontWeight: FontWeight.bold, fontSize: 30.0)),
            Text('5',
                textAlign: TextAlign.center,
                style:
                    TextStyle(fontWeight: FontWeight.bold, fontSize: 30.0)),
          ]),
          TableRow(children: [
            Text('Player 2',
                textAlign: TextAlign.center,
                style:
                    TextStyle(fontWeight: FontWeight.bold, fontSize: 30.0)),
            Text('3',
                textAlign: TextAlign.center,
                style:
                    TextStyle(fontWeight: FontWeight.bold, fontSize: 30.0)),
          ]),
          TableRow(children: [
            Text('Player 3',
                textAlign: TextAlign.center,
                style:
                    TextStyle(fontWeight: FontWeight.bold, fontSize: 30.0)),
            Text('1',
                textAlign: TextAlign.center,
                style:
                    TextStyle(fontWeight: FontWeight.bold, fontSize: 30.0)),
          ]),
          TableRow(children: [
            Text('Player 4',
                textAlign: TextAlign.center,
                style:
                    TextStyle(fontWeight: FontWeight.bold, fontSize: 30.0)),
            Text('4',
                textAlign: TextAlign.center,
                style:
                    TextStyle(fontWeight: FontWeight.bold, fontSize: 30.0)),
          ]),

        ])));

}} '

...