You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
3.1 KiB
89 lines
3.1 KiB
5 years ago
|
import 'package:flutter/material.dart';
|
||
5 years ago
|
import 'package:recook/pages/user/user_benefit_page.dart';
|
||
5 years ago
|
import 'package:recook/utils/custom_route.dart';
|
||
5 years ago
|
import 'package:recook/widgets/custom_image_button.dart';
|
||
|
import 'package:velocity_x/velocity_x.dart';
|
||
|
import 'package:recook/constants/constants.dart';
|
||
|
|
||
5 years ago
|
class ShopBenefitView extends StatelessWidget {
|
||
|
const ShopBenefitView({Key key}) : super(key: key);
|
||
5 years ago
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return CustomImageButton(
|
||
|
padding: EdgeInsets.zero,
|
||
5 years ago
|
onPressed: () => CRoute.push(context, UserBenefitPage()),
|
||
5 years ago
|
child: VxBox(
|
||
|
child: <Widget>[
|
||
|
<Widget>[
|
||
|
'我的收益'
|
||
|
.text
|
||
|
.color(Color(0xFF333333))
|
||
|
.size(16.sp)
|
||
|
.bold
|
||
|
.make()
|
||
5 years ago
|
.p(10.w),
|
||
5 years ago
|
Spacer(),
|
||
|
Icon(Icons.keyboard_arrow_right,
|
||
|
size: 22, color: Color(0xff999999)),
|
||
|
10.wb,
|
||
|
].row(),
|
||
|
Divider(
|
||
|
color: Color(0xFFE6E6E6),
|
||
|
height: 1.w,
|
||
|
thickness: 1.w,
|
||
|
),
|
||
|
SizedBox(
|
||
|
height: 66.w,
|
||
|
child: Row(
|
||
|
children: [
|
||
|
<Widget>[
|
||
|
'1223.56X'.text.size(18.sp).color(Color(0xFF333333)).make(),
|
||
|
6.hb,
|
||
|
'本月预估'.text.size(12.sp).color(Color(0xFF333333)).make(),
|
||
|
].column().expand(),
|
||
|
VerticalDivider(
|
||
|
color: Color(0xFFE6E6E6),
|
||
|
width: 1.w,
|
||
|
thickness: 1.w,
|
||
|
indent: 16.w,
|
||
|
endIndent: 16.w,
|
||
|
),
|
||
|
<Widget>[
|
||
|
'1223.56X'.text.size(18.sp).color(Color(0xFF333333)).make(),
|
||
|
6.hb,
|
||
|
'今日预估'.text.size(12.sp).color(Color(0xFF333333)).make(),
|
||
|
].column().expand(),
|
||
|
],
|
||
|
),
|
||
|
),
|
||
|
Divider(
|
||
|
color: Color(0xFFE6E6E6),
|
||
|
height: 1.w,
|
||
|
thickness: 1.w,
|
||
|
),
|
||
|
<Widget>[
|
||
|
Row(
|
||
|
mainAxisSize: MainAxisSize.min,
|
||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||
|
textBaseline: TextBaseline.alphabetic,
|
||
|
children: <Widget>[
|
||
|
'上月结算'.text.size(12.sp).color(Color(0xFF666666)).make(),
|
||
|
'¥1234.12X'.text.size(12.sp).color(Color(0xFFD7BE8E)).make(),
|
||
|
]).expand(),
|
||
|
30.hb,
|
||
|
Row(
|
||
|
mainAxisSize: MainAxisSize.min,
|
||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||
|
textBaseline: TextBaseline.alphabetic,
|
||
|
children: <Widget>[
|
||
|
'上月预估'.text.size(12.sp).color(Color(0xFF666666)).make(),
|
||
|
'¥1234.12X'.text.size(12.sp).color(Color(0xFFD7BE8E)).make(),
|
||
|
]).expand(),
|
||
|
].row(),
|
||
|
].column(crossAlignment: CrossAxisAlignment.start),
|
||
|
).color(Colors.white).withRounded(value: 10).make(),
|
||
|
).pOnly(left: 10, right: 10, bottom: 10);
|
||
|
}
|
||
|
}
|