game_order_view.dart 3.4 KB
import 'package:cp_offline_manage/common/colors.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'game_order_logic.dart';

class Game_orderPage extends GetView<Game_orderLogic> {
  const Game_orderPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text('赛事下单'),
          centerTitle: true,
          backgroundColor: ColorConfig.themeColor,
        ),
        body: Column(
          children: [
            InkWell(
              child: Container(
                height: 64,
                padding: EdgeInsets.symmetric(horizontal: 12),
                margin: EdgeInsets.only(top: 8),
                color: ColorConfig.white,
                alignment: Alignment.centerLeft,
                child: Row(
                  mainAxisAlignment: MainAxisAlignment.spaceBetween,
                  children: [
                    Text("竞彩足球", style: TextStyle(fontSize: 17, color: ColorConfig.color33),),
                    Icon(Icons.chevron_right, size: 24, color: ColorConfig.color33,)
                  ],
                ),
              ),
              onTap: () {controller.jump_to_game(1); },
            ),
            InkWell(
              child: Container(
                height: 64,
                padding: EdgeInsets.symmetric(horizontal: 12),
                margin: EdgeInsets.only(top: 8),
                color: ColorConfig.white,
                alignment: Alignment.centerLeft,
                child: Row(
                  mainAxisAlignment: MainAxisAlignment.spaceBetween,
                  children: [
                    Text("竞彩篮球", style: TextStyle(fontSize: 17, color: ColorConfig.color33),),
                    Icon(Icons.chevron_right, size: 24, color: ColorConfig.color33,)
                  ],
                ),
              ),
              onTap: () {controller.jump_to_game(2); },
            ),
            InkWell(
              child: Container(
                height: 64,
                padding: EdgeInsets.symmetric(horizontal: 12),
                margin: EdgeInsets.only(top: 8),
                color: ColorConfig.white,
                alignment: Alignment.centerLeft,
                child: Row(
                  mainAxisAlignment: MainAxisAlignment.spaceBetween,
                  children: [
                    Text("大乐透", style: TextStyle(fontSize: 17, color: ColorConfig.color33),),
                    Icon(Icons.chevron_right, size: 24, color: ColorConfig.color33,)
                  ],
                ),
              ),
              onTap: () {controller.jump_to_game(3); },
            ),
            InkWell(
              child: Container(
                height: 64,
                padding: EdgeInsets.symmetric(horizontal: 12),
                margin: EdgeInsets.only(top: 8),
                color: ColorConfig.white,
                alignment: Alignment.centerLeft,
                child: Row(
                  mainAxisAlignment: MainAxisAlignment.spaceBetween,
                  children: [
                    Text("排列3", style: TextStyle(fontSize: 17, color: ColorConfig.color33),),
                    Icon(Icons.chevron_right, size: 24, color: ColorConfig.color33,)
                  ],
                ),
              ),
              onTap: () {controller.jump_to_game(4); },
            )
          ],
        )
    );
  }
}