Browse Source

UI

null_safety
fmk 3 years ago
parent
commit
f001c02ae1
  1. 6
      lib/mine/mine_vip_level_page.dart
  2. 7
      lib/view_widget/mine_vip_view.dart

6
lib/mine/mine_vip_level_page.dart

@ -69,16 +69,14 @@ class _MineVipLevelPage extends State<MineVipLevelPage> {
physics: BouncingScrollPhysics(),
child: Column(
children: [
AspectRatio(
aspectRatio: 1.6,
Container(
height: 224.h ,
child: Swiper(
viewportFraction: 0.95,
loop: false,
physics: BouncingScrollPhysics(),
// index: (ranks != null && ranks.isNotEmpty) ? widget.arguments["rankLevel"] - 1 : 0,
controller: controller,
itemBuilder: (context, position) {
// if(ranks == null || ranks.isEmpty) return Container(width: 10, height: 10,);
return MineVipView(
position + 1,
curLevel: widget.arguments["rankLevel"],

7
lib/view_widget/mine_vip_view.dart

@ -92,10 +92,10 @@ class MineVipView extends StatelessWidget {
break;
}
}
return AspectRatio(
aspectRatio: 1.6,
child: Container(
return Container(
margin: EdgeInsets.fromLTRB(padding.w, 16.h, padding.w, 8.h),
width: MediaQuery.of(context).size.width - 32.w,
height: 200.h,
decoration: BoxDecoration(
gradient: LinearGradient(
colors: linearColor,
@ -256,7 +256,6 @@ class MineVipView extends StatelessWidget {
),
],
),
),
);
}
}

Loading…
Cancel
Save