index.dart 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_screenutil/flutter_screenutil.dart';
  3. import '../../widgets/OrderInfoCard.dart';
  4. class OrderPage extends StatefulWidget {
  5. const OrderPage({Key? key}) : super(key: key);
  6. @override
  7. State<OrderPage> createState() => _OrderPageState();
  8. }
  9. class _OrderPageState extends State<OrderPage> {
  10. @override
  11. Widget build(BuildContext context) {
  12. return Scaffold(
  13. resizeToAvoidBottomInset: false,
  14. appBar: AppBar(
  15. title: Text('订单'),
  16. leading: Icon(Icons.arrow_back_ios),
  17. backgroundColor: Color(0xff2b9270),
  18. // backgroundColor: Colors.transparent,
  19. centerTitle: true,
  20. ),
  21. body: Column(
  22. children: [
  23. OrderInfoCard(),
  24. Container(
  25. height: 130.h,
  26. margin: EdgeInsets.only(top: 20.0, bottom: 0.0),
  27. alignment: Alignment.bottomCenter,
  28. child: SizedBox(
  29. width: 315.w,
  30. height: 49.h,
  31. child: ElevatedButton(
  32. onPressed: () {
  33. // _handelSubmit();
  34. print('用户点击了支付啊阿松大撒地方');
  35. },
  36. child: const Text(
  37. "支付",
  38. style: TextStyle(
  39. fontSize: 18,
  40. color: Colors.white,
  41. fontWeight: FontWeight.bold),
  42. ),
  43. style: ButtonStyle(
  44. elevation: MaterialStateProperty.all(0),
  45. backgroundColor:
  46. MaterialStateProperty.all(const Color(0xFFFF703B)),
  47. shape: MaterialStateProperty.all(
  48. const RoundedRectangleBorder(
  49. borderRadius:
  50. BorderRadius.all(Radius.circular(24.4)))),
  51. ),
  52. ),
  53. ),
  54. ),
  55. ],
  56. ),
  57. );
  58. }
  59. }