|
@@ -1,5 +1,6 @@
|
1
|
1
|
|
2
|
2
|
import 'package:flutter/material.dart';
|
|
3
|
+import 'package:flutter_picker/Picker.dart';
|
3
|
4
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
4
|
5
|
import 'package:get/get.dart';
|
5
|
6
|
import 'package:worker_client/pages/wallet/widget/money.dart';
|
|
@@ -12,6 +13,7 @@ class MyWithdrawal extends BasicPage {
|
12
|
13
|
MyWithdrawal({Key? key}) : super(key: key) {
|
13
|
14
|
naviTitle = '我的钱包';
|
14
|
15
|
}
|
|
16
|
+ final bankBrand = Rx<Map>({});
|
15
|
17
|
|
16
|
18
|
|
17
|
19
|
@override
|
|
@@ -21,10 +23,139 @@ class MyWithdrawal extends BasicPage {
|
21
|
23
|
alignment: Alignment.center,
|
22
|
24
|
child: Column(
|
23
|
25
|
children: [
|
24
|
|
- Text('sdsd'),
|
|
26
|
+ MoneyCard(type: true,),
|
|
27
|
+ Container(
|
|
28
|
+ margin: EdgeInsets.fromLTRB(20, 30.w, 0, 20.w),
|
|
29
|
+ alignment: Alignment.topLeft,
|
|
30
|
+ decoration: const BoxDecoration(
|
|
31
|
+ border: Border(
|
|
32
|
+ left: BorderSide(
|
|
33
|
+ width: 5, color: Color(0xff000000)
|
|
34
|
+ // 0x17000000
|
|
35
|
+ ))),
|
|
36
|
+ child: Padding(
|
|
37
|
+ padding: EdgeInsets.fromLTRB(13.w, 0, 0, 0),
|
|
38
|
+ child: Text(
|
|
39
|
+ '选择银行卡',
|
|
40
|
+ style: TextStyle(
|
|
41
|
+ color: Color(0xff333333),
|
|
42
|
+ fontWeight: FontWeight.w400,
|
|
43
|
+ fontSize: 18,
|
|
44
|
+ ),
|
|
45
|
+ ),
|
|
46
|
+ )),
|
|
47
|
+ Container(
|
|
48
|
+ width:345.w ,
|
|
49
|
+ alignment: Alignment.topLeft,
|
|
50
|
+ decoration: BoxDecoration(
|
|
51
|
+ borderRadius: BorderRadius.circular(20),
|
|
52
|
+
|
|
53
|
+ border: Border.all(
|
|
54
|
+ color: Color(0xffF2F2F2),
|
|
55
|
+ width: 1,
|
|
56
|
+ ),
|
|
57
|
+ ),
|
|
58
|
+ child: Row(
|
|
59
|
+ children: [
|
|
60
|
+ Expanded(
|
|
61
|
+ child: ListTile(
|
|
62
|
+ title:Obx(()=>Text(bankBrand.value.length==0?'请选择银行':bankBrand.value['name'])),
|
|
63
|
+ onTap: () {
|
|
64
|
+ showPicker(context);
|
|
65
|
+ },
|
|
66
|
+ ),
|
|
67
|
+ ),
|
|
68
|
+ Icon(Icons.keyboard_arrow_right_outlined,size: 30,color:Color(0xff999999) ,)
|
|
69
|
+
|
|
70
|
+ ],)
|
|
71
|
+ ),
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+ Container(
|
|
75
|
+ margin: EdgeInsets.fromLTRB(20, 30.w, 0, 20.w),
|
|
76
|
+ alignment: Alignment.topLeft,
|
|
77
|
+ decoration: const BoxDecoration(
|
|
78
|
+ border: Border(
|
|
79
|
+ left: BorderSide(
|
|
80
|
+ width: 5, color: Color(0xff000000)
|
|
81
|
+ // 0x17000000
|
|
82
|
+ ))),
|
|
83
|
+ child: Padding(
|
|
84
|
+ padding: EdgeInsets.fromLTRB(13.w, 0, 0, 0),
|
|
85
|
+ child: Text(
|
|
86
|
+ '提取金额',
|
|
87
|
+ style: TextStyle(
|
|
88
|
+ color: Color(0xff333333),
|
|
89
|
+ fontWeight: FontWeight.w400,
|
|
90
|
+ fontSize: 18,
|
|
91
|
+ ),
|
|
92
|
+ ),
|
|
93
|
+ )),
|
|
94
|
+ Container(
|
|
95
|
+ width:345.w ,
|
|
96
|
+ alignment: Alignment.topLeft,
|
|
97
|
+ decoration: BoxDecoration(
|
|
98
|
+ borderRadius: BorderRadius.circular(20),
|
|
99
|
+
|
|
100
|
+ border: Border.all(
|
|
101
|
+ color: Color(0xffF2F2F2),
|
|
102
|
+ width: 1,
|
|
103
|
+ ),
|
|
104
|
+ ),
|
|
105
|
+ child: Row(
|
|
106
|
+ children: [
|
|
107
|
+ Padding(padding: EdgeInsets.fromLTRB(20, 0 , 15, 0),
|
|
108
|
+ child:Icon(Icons.currency_yen_sharp,size: 30 ,) ,
|
|
109
|
+ ),
|
|
110
|
+
|
|
111
|
+ Expanded(
|
|
112
|
+ child:TextField(
|
|
113
|
+ keyboardType: TextInputType.number,
|
|
114
|
+ decoration: InputDecoration(
|
|
115
|
+ contentPadding:
|
|
116
|
+ const EdgeInsets.symmetric(vertical: 4.0),
|
|
117
|
+ hintText: '请输入提现金额',
|
|
118
|
+ border: OutlineInputBorder(
|
|
119
|
+ borderRadius: BorderRadius.circular(15),
|
|
120
|
+ borderSide: BorderSide.none),
|
|
121
|
+ ),
|
|
122
|
+ // obscureText: true,
|
|
123
|
+ ),
|
|
124
|
+ ),
|
|
125
|
+
|
|
126
|
+ ],)
|
|
127
|
+ ),
|
25
|
128
|
|
26
|
129
|
],
|
27
|
130
|
),
|
28
|
131
|
);
|
29
|
132
|
}
|
|
133
|
+ showPicker(BuildContext context) {
|
|
134
|
+ const PickerData = ['中国建设银河','8s鱼就是','我的银行卡'];
|
|
135
|
+ Picker picker = Picker(
|
|
136
|
+ height: 230.w,
|
|
137
|
+ adapter: PickerDataAdapter<String>(
|
|
138
|
+ pickerdata: PickerData),
|
|
139
|
+ changeToFirst: false,
|
|
140
|
+ onCancel: (){
|
|
141
|
+ print('object');
|
|
142
|
+ },
|
|
143
|
+ confirmText: '确定',
|
|
144
|
+ cancelText: '取消',
|
|
145
|
+ textAlign: TextAlign.left,
|
|
146
|
+ textStyle: TextStyle(color: Colors.blue, ),
|
|
147
|
+ selectedTextStyle: TextStyle(color: Colors.red),
|
|
148
|
+ columnPadding: const EdgeInsets.all(8.0),
|
|
149
|
+ onConfirm: (Picker picker, List<int> value) {
|
|
150
|
+ print('666666666$value');
|
|
151
|
+ // bankBrand(picker);
|
|
152
|
+ int index = value.first;
|
|
153
|
+ bankBrand({'id':index,'name':picker.getSelectedValues().first});
|
|
154
|
+ print(bankBrand);
|
|
155
|
+ }
|
|
156
|
+ );
|
|
157
|
+ picker.showModal(context);
|
|
158
|
+ }
|
30
|
159
|
}
|
|
160
|
+
|
|
161
|
+
|