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