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