Browse Source

我的更改

zyh
w-R 3 years ago
parent
commit
e26fe495c1
  1. 28
      lib/mine/mine_vip/mine_vip_core.dart
  2. 3
      lib/retrofit/data/miNiDetail.dart
  3. 2
      lib/view_widget/mine_vip_entry.dart

28
lib/mine/mine_vip/mine_vip_core.dart

@ -183,7 +183,7 @@ class _MineVipCore extends State<MineVipCore> {
), ),
Column( Column(
children: [ children: [
SizedBox(height: 40), SizedBox(height: 40.h),
Container( Container(
child:Row( child:Row(
children: [ children: [
@ -302,8 +302,8 @@ class _MineVipCore extends State<MineVipCore> {
Row( Row(
children: [ children: [
Container( Container(
width: 4, width: 4.w,
height: 18, height: 18.h,
decoration: BoxDecoration( decoration: BoxDecoration(
gradient: new LinearGradient( gradient: new LinearGradient(
begin: Alignment.bottomCenter, begin: Alignment.bottomCenter,
@ -353,8 +353,8 @@ class _MineVipCore extends State<MineVipCore> {
Row( Row(
children: [ children: [
Container( Container(
width: 4, width: 4.w,
height: 18, height: 18.h,
decoration: BoxDecoration( decoration: BoxDecoration(
gradient: new LinearGradient( gradient: new LinearGradient(
begin: Alignment.bottomCenter, begin: Alignment.bottomCenter,
@ -384,7 +384,7 @@ class _MineVipCore extends State<MineVipCore> {
if (vipRuleDetails?.qa != null && vipRuleDetails.qa != "") if (vipRuleDetails?.qa != null && vipRuleDetails.qa != "")
Container( Container(
color: Colors.white, color: Colors.white,
padding: EdgeInsets.only(left: 8), padding: EdgeInsets.only(left: 8.w),
child: Html( child: Html(
data: vipRuleDetails?.qa ?? "", data: vipRuleDetails?.qa ?? "",
customImageRenders: { customImageRenders: {
@ -418,8 +418,8 @@ class _MineVipCore extends State<MineVipCore> {
Row( Row(
children: [ children: [
Container( Container(
width: 4, width: 4.w,
height: 18, height: 18.h,
decoration: BoxDecoration( decoration: BoxDecoration(
gradient: new LinearGradient( gradient: new LinearGradient(
begin: Alignment.bottomCenter, begin: Alignment.bottomCenter,
@ -449,7 +449,7 @@ class _MineVipCore extends State<MineVipCore> {
MImage( MImage(
vipRuleDetails?.contrast ?? "", vipRuleDetails?.contrast ?? "",
width: double.infinity, width: double.infinity,
height: 281, height: 281.h,
errorSrc: "assets/image/default_1.webp", errorSrc: "assets/image/default_1.webp",
fadeSrc: "assets/image/default_1.webp", fadeSrc: "assets/image/default_1.webp",
), ),
@ -483,8 +483,8 @@ class _MineVipCore extends State<MineVipCore> {
Row( Row(
children: [ children: [
Container( Container(
width: 4, width: 4.w,
height: 18, height: 18.h,
decoration: BoxDecoration( decoration: BoxDecoration(
gradient: new LinearGradient( gradient: new LinearGradient(
begin: Alignment.bottomCenter, begin: Alignment.bottomCenter,
@ -560,7 +560,7 @@ class _MineVipCore extends State<MineVipCore> {
), ),
width: MediaQuery.of(context).size.width, width: MediaQuery.of(context).size.width,
padding: EdgeInsets.all(16), padding: EdgeInsets.all(16),
height: 54, height: 54.h,
alignment: Alignment.center, alignment: Alignment.center,
child: Text( child: Text(
"${S.of(context).lijikaitong}${ranks.length > checkIndex ? ranks[checkIndex].price : ""}/永久", "${S.of(context).lijikaitong}${ranks.length > checkIndex ? ranks[checkIndex].price : ""}/永久",
@ -630,11 +630,11 @@ class _MineVipCore extends State<MineVipCore> {
//Widget之间间距 //Widget之间间距
crossAxisSpacing: 35, crossAxisSpacing: 35,
//Widget之间间距 //Widget之间间距
mainAxisSpacing: 10, mainAxisSpacing: 12,
//Widget宽高比例 //Widget宽高比例
childAspectRatio: AppUtils.textScale(context) > 1 childAspectRatio: AppUtils.textScale(context) > 1
? (1 - ((AppUtils.textScale(context) - 1))) ? (1 - ((AppUtils.textScale(context) - 1)))
: 0.85, : 0.80,
), ),
itemBuilder: (context, index) { itemBuilder: (context, index) {
return GestureDetector( return GestureDetector(

3
lib/retrofit/data/miNiDetail.dart

@ -71,6 +71,7 @@ class MiNiDetail {
String detail; String detail;
int isDelete; int isDelete;
String printerFlag; String printerFlag;
String thumbnailImg;
dynamic materialId; dynamic materialId;
List<String> imgs; List<String> imgs;
StoreDTOBean storeDTO; StoreDTOBean storeDTO;
@ -118,6 +119,7 @@ class MiNiDetail {
miNiDetailBean.detail = map['detail']; miNiDetailBean.detail = map['detail'];
miNiDetailBean.isDelete = map['isDelete']; miNiDetailBean.isDelete = map['isDelete'];
miNiDetailBean.printerFlag = map['printerFlag']; miNiDetailBean.printerFlag = map['printerFlag'];
miNiDetailBean.thumbnailImg = map['thumbnailImg'];
miNiDetailBean.materialId = map['materialId']; miNiDetailBean.materialId = map['materialId'];
miNiDetailBean.imgs = []..addAll( miNiDetailBean.imgs = []..addAll(
(map['imgs'] as List ?? []).map((o) => o.toString()) (map['imgs'] as List ?? []).map((o) => o.toString())
@ -171,6 +173,7 @@ class MiNiDetail {
"detail" :detail, "detail" :detail,
"isDelete": isDelete, "isDelete": isDelete,
"printerFlag": printerFlag, "printerFlag": printerFlag,
"thumbnailImg": thumbnailImg,
"materialId": materialId, "materialId": materialId,
"imgs": imgs, "imgs": imgs,
"storeDTO": storeDTO, "storeDTO": storeDTO,

2
lib/view_widget/mine_vip_entry.dart

@ -71,7 +71,7 @@ class MineVipEntry extends StatelessWidget {
Widget widget = Container( Widget widget = Container(
width: double.infinity, width: double.infinity,
padding: EdgeInsets.only(top: 12.h, bottom: 22.h, left: 12.w, right: 12.w), padding: EdgeInsets.only(top: 12.h, bottom: 22.h, left: 12.w, right: 12.w),
margin: EdgeInsets.only(top: 23.h,left: 16.w,right: 16.w,bottom:15.h), margin: EdgeInsets.only(top: 23.h,left: 13.5.w,right: 13.5.w,bottom:15.h),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xFF3D3D5D), color: Color(0xFF3D3D5D),
borderRadius: BorderRadius.circular(6), borderRadius: BorderRadius.circular(6),

Loading…
Cancel
Save