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

7
lib/view_widget/mine_vip_view.dart

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

Loading…
Cancel
Save