import 'package:farmer_client/widgets/OrderInfoCard.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';






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

  @override
  State<OrderPage> createState() => _OrderPageState();
}

class _OrderPageState extends State<OrderPage> {
  @override
  Widget build(BuildContext context) {
    return Column(
        children: [
          OrderInfoCard(),

          Container(
            height: 80.h,
            margin: EdgeInsets.only(top: 20.0, bottom: 0.0),
            alignment: Alignment.bottomCenter,
            child: SizedBox(
              width: 315.w,
              height: 49.h,
              child: ElevatedButton(
                onPressed: () {
                  // _handelSubmit();
                  print('用户点击了支付啊阿松大撒地方');
                },
                child: const Text(
                  "支付",
                  style: TextStyle(
                      fontSize: 18,
                      color: Colors.white,
                      fontWeight: FontWeight.bold),
                ),
                style: ButtonStyle(
                  elevation: MaterialStateProperty.all(0),
                  backgroundColor:
                  MaterialStateProperty.all(const Color(0xFFFF703B)),
                  shape: MaterialStateProperty.all(
                      const RoundedRectangleBorder(
                          borderRadius:
                          BorderRadius.all(Radius.circular(24.4)))),
                ),
              ),
            ),
          ),
        ],
    );

  }
}