12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- import 'package:flutter/material.dart';
- import 'package:flutter_screenutil/flutter_screenutil.dart';
-
- import '../../widgets/OrderInfoCard.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 Scaffold(
- resizeToAvoidBottomInset: false,
- appBar: AppBar(
- title: Text('订单'),
- leading: Icon(Icons.arrow_back_ios),
- backgroundColor: Color(0xff2b9270),
- // backgroundColor: Colors.transparent,
- centerTitle: true,
-
- ),
- body: Column(
- children: [
- OrderInfoCard(),
-
- Container(
- height: 130.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)))),
- ),
- ),
- ),
- ),
- ],
- ),
- );
-
- }
- }
|