part of pay_coupon;



class PayCouponPage extends StatefulWidget {
  const PayCouponPage({Key? key}) : super(key: key);

  @override
  State<PayCouponPage> createState() => _PayCouponPageState();
}

class _PayCouponPageState extends State<PayCouponPage> {
  @override
  Widget build(BuildContext context) {
    return GetBuilder<PayCouponController>(
      init: PayCouponController(),
      builder: (controller) =>Scaffold(
        appBar: AppBar(
          centerTitle: true,
          title: const Text('选择优惠券'),
        ),
        body: Column(
          children: [
            TabBar(
              labelColor: AppTheme.primary,
              // isScrollable: true,
              labelStyle: const TextStyle(fontSize: 15,height: 1.4,fontWeight: Fonts.medium),
              unselectedLabelColor: Colours.c9,
              unselectedLabelStyle: const TextStyle(fontSize: 15,height: 1.4),
              indicatorSize: TabBarIndicatorSize.label,
              indicatorColor: AppTheme.primary,
              tabs:controller.tabs,
              physics: const NeverScrollableScrollPhysics(),
              controller: controller.tabController,
            ),
            Expanded(
              child: TabBarView(
                controller: controller.tabController,
                children: [

                ],
              ),
            ),
          ],
        ),
      ),
    );
  }
}

class CouponPage extends StatefulWidget {
  const CouponPage({Key? key}) : super(key: key);

  @override
  State<CouponPage> createState() => _CouponPageState();
}

class _CouponPageState extends State<CouponPage> {
  @override
  Widget build(BuildContext context) {
    return  ListView.builder(
      itemBuilder: (BuildContext context, int index){
        // return BuildItem(model: ,);
      },
      itemCount: 2,
    );
  }
}


