1.90正式版

master
章文轩 4 years ago
parent f4d19cdb12
commit 9374ee6978

@ -25,17 +25,17 @@ class _AirplaneDetailPageState extends State<AirplaneDetailPage> {
void initState() { void initState() {
super.initState(); super.initState();
_passengerList _passengerList
.add(Item(item: '张伟', choice: false, num: '123243354543645456')); .add(Item(item: '张伟', choice: false, num: '12345678901234567890'));
_passengerList _passengerList
.add(Item(item: '欧阳青青', choice: false, num: '123123546576863432')); .add(Item(item: '欧阳青青', choice: false, num: '12345678901234567'));
_passengerList _passengerList
.add(Item(item: '小星星', choice: false, num: '76573353456435435345')); .add(Item(item: '小星星', choice: false, num: '12345678901234567890'));
_passengerList _passengerList
.add(Item(item: '吕小树', choice: false, num: '54676578658234234')); .add(Item(item: '吕小树', choice: false, num: '12345678901234567890'));
_passengerList _passengerList
.add(Item(item: '吕小树', choice: false, num: '54676578658234234')); .add(Item(item: '吕小树', choice: false, num: '12345678901234567890'));
_passengerList _passengerList
.add(Item(item: '吕小树', choice: false, num: '54676578658234234')); .add(Item(item: '吕小树', choice: false, num: '12345678901234567890'));
} }
@override @override
@ -427,7 +427,7 @@ class _AirplaneDetailPageState extends State<AirplaneDetailPage> {
child: Column( child: Column(
children: [ children: [
Container( Container(
padding: EdgeInsets.symmetric(horizontal: 10.rw), padding: EdgeInsets.symmetric(horizontal: 15.rw),
height: 148.rw, height: 148.rw,
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(4.rw)), borderRadius: BorderRadius.all(Radius.circular(4.rw)),
@ -491,18 +491,29 @@ class _AirplaneDetailPageState extends State<AirplaneDetailPage> {
_getPassengerItem(Item item, index, VoidCallback onPressed) { _getPassengerItem(Item item, index, VoidCallback onPressed) {
return Container( return Container(
padding: EdgeInsets.only(top: 10.rw),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
Text( Container(
width: 80.rw,
child: Text(
item.item, item.item,
style: TextStyle(fontSize: 14.rsp, color: Color(0xFF666666)), style: TextStyle(
fontSize: 16.rsp,
color: Color(0xFF333333),
fontWeight: FontWeight.bold),
),
),
20.wb,
Container(
width: 200.rw,
child: Text(
_getCardId(item.num),
style: TextStyle(fontSize: 16.rsp, color: Color(0xFF666666)),
), ),
Text(
item.item,
style: TextStyle(fontSize: 14.rsp, color: Color(0xFF666666)),
), ),
Icon(CupertinoIcons.check_mark, size: 20, color: Colors.white), 30.wb,
Icon(CupertinoIcons.check_mark, size: 20, color: Colors.blue),
], ],
), ),
); );
@ -517,7 +528,10 @@ class _AirplaneDetailPageState extends State<AirplaneDetailPage> {
alignment: Alignment.centerLeft, alignment: Alignment.centerLeft,
child: Text( child: Text(
"选择乘客", "选择乘客",
style: TextStyle(fontSize: 16.rsp, color: Color(0xFF333333)), style: TextStyle(
fontSize: 16.rsp,
color: Color(0xFF333333),
fontWeight: FontWeight.bold),
), ),
), ),
), ),
@ -556,10 +570,23 @@ class _AirplaneDetailPageState extends State<AirplaneDetailPage> {
}); });
}); });
}, childCount: 3), }, childCount: 3),
) ),
SliverToBoxAdapter(child: 20.hb),
], ],
).expand(); ).expand();
} }
_getCardId(String id) {
String hear = id.substring(0, 4);
String foot = id.substring(id.length - 3);
String newId = '';
if (id.length > 7) {
for (var i = 0; i < id.length - 7; i++) {
newId += '*';
}
}
return hear + newId + foot;
}
} }
class Item { class Item {

@ -84,10 +84,10 @@ class _SettingItemListViewState extends BaseStoreState<SettingItemListView> {
}), }),
// //
SCTile.normalTile("购票(临时)", listener: () { // SCTile.normalTile("购票(临时)", listener: () {
Get.to(() => ChooseTicketsTypePage()); // Get.to(() => ChooseTicketsTypePage());
//CRoute.push(context, PrivacyPageV2()); // //CRoute.push(context, PrivacyPageV2());
}), // }),
getEmptyBox(), getEmptyBox(),
SCTile.normalTile("退出登录", listener: () { SCTile.normalTile("退出登录", listener: () {

@ -377,25 +377,30 @@ class _UserBenefitCurrencyPageState extends State<UserBenefitCurrencyPage> {
clipBehavior: Clip.antiAlias, clipBehavior: Clip.antiAlias,
height: 146.rw, height: 146.rw,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(5.rw), borderRadius: BorderRadius.circular(5.rw),
boxShadow: [ boxShadow: [
BoxShadow( BoxShadow(
offset: Offset(0, 1.rw), offset: Offset(0, 2.rw),
color: Color.fromRGBO(166, 166, 173, 0.43), color: Color.fromRGBO(166, 166, 173, 0.43),
blurRadius: 6.rw, blurRadius: 6.rw,
) )
], ],
image: DecorationImage(
image: AssetImage(UserLevelTool.currentCardImagePath()),
fit: BoxFit.cover,
),
), ),
child: Column( child: Column(
children: [ children: [
Container( Container(
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(5.rw),
boxShadow: [
BoxShadow(
offset: Offset(0, 1.rw),
color: Color.fromRGBO(166, 166, 173, 0.43),
blurRadius: 6.rw,
)
],
image: DecorationImage( image: DecorationImage(
fit: BoxFit.cover, fit: BoxFit.fill,
image: AssetImage(UserLevelTool.currentCardImagePath()), image: AssetImage(UserLevelTool.currentCardImagePath()),
), ),
color: Colors.transparent), color: Colors.transparent),
@ -407,7 +412,7 @@ class _UserBenefitCurrencyPageState extends State<UserBenefitCurrencyPage> {
padding: role != UserRoleLevel.Diamond_1 && padding: role != UserRoleLevel.Diamond_1 &&
role != UserRoleLevel.Diamond_2 && role != UserRoleLevel.Diamond_2 &&
_notSelfNotGUide _notSelfNotGUide
? EdgeInsets.only(top: 25.rw) ? EdgeInsets.only(top: 22.rw)
: EdgeInsets.only(top: 0.rw), : EdgeInsets.only(top: 0.rw),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
@ -534,7 +539,7 @@ class _UserBenefitCurrencyPageState extends State<UserBenefitCurrencyPage> {
_amount = _models?.amount?.toStringAsFixed(2); _amount = _models?.amount?.toStringAsFixed(2);
_all = _models?.all?.toStringAsFixed(2); _all = _models?.all?.toStringAsFixed(2);
// //
for (int i = 0; i < _models.detail.length; i++) { for (int i = 0; i < _models?.detail?.length; i++) {
_gone.add(true); _gone.add(true);
} }
for (int i = 0; i < _gone.length; i++) { for (int i = 0; i < _gone.length; i++) {

@ -61,6 +61,7 @@ class _UserBenefitShopPageState extends State<UserBenefitShopPage> {
bool _sortMoney = true; bool _sortMoney = true;
bool _isOver = false; bool _isOver = false;
String _text = '';
GSRefreshController _refreshController = GSRefreshController(); GSRefreshController _refreshController = GSRefreshController();
@ -75,11 +76,7 @@ class _UserBenefitShopPageState extends State<UserBenefitShopPage> {
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
('当日未到账补贴(瑞币)') _text.text.color(Colors.black54).size(16.rsp).make(),
.text
.color(Colors.black54)
.size(16.rsp)
.make(),
_amount.text.color(Color(0xFF333333)).size(34.rsp).make(), _amount.text.color(Color(0xFF333333)).size(34.rsp).make(),
], ],
), ),
@ -570,8 +567,10 @@ class _UserBenefitShopPageState extends State<UserBenefitShopPage> {
super.initState(); super.initState();
_date = widget.date; _date = widget.date;
if (widget.receivedType == '未到账') { if (widget.receivedType == '未到账') {
_text = '当日未到账补贴(瑞币)';
_formatType = 'MM-dd'; _formatType = 'MM-dd';
} else if (widget.receivedType == '已到账') { } else if (widget.receivedType == '已到账') {
_text = '当月已到账补贴(瑞币)';
_formatType = 'yyyy-MM'; _formatType = 'yyyy-MM';
} }

@ -56,7 +56,7 @@ packages:
name: async name: async
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "2.5.0" version: "2.6.1"
audio_session: audio_session:
dependency: transitive dependency: transitive
description: description:
@ -1246,7 +1246,7 @@ packages:
name: source_span name: source_span
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "1.8.0" version: "1.8.1"
sp_util: sp_util:
dependency: transitive dependency: transitive
description: description:
@ -1334,7 +1334,7 @@ packages:
name: test_api name: test_api
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "0.2.19" version: "0.3.0"
timeline_tile: timeline_tile:
dependency: "direct main" dependency: "direct main"
description: description:

@ -2,7 +2,7 @@ name: recook
description: Recook Market App. description: Recook Market App.
publish_to: "none" publish_to: "none"
version: 1.8.6-dev+305 version: 1.9.0-dev+306
environment: environment:
sdk: ">=2.10.0 <3.0.0" sdk: ">=2.10.0 <3.0.0"

Loading…
Cancel
Save