首页活动

pull/1/head
章文轩 3 years ago
parent 9af01afc50
commit 5a68864018

@ -390,7 +390,7 @@ class _HomePageState extends State<HomePage>
_activityItemModels == [] _activityItemModels == []
? SizedBox() ? SizedBox()
: Container( : Container(
height: 460.w, height: 450.w,
child: ListView.separated( child: ListView.separated(
padding: EdgeInsets.zero, padding: EdgeInsets.zero,
separatorBuilder: (context, index) { separatorBuilder: (context, index) {
@ -405,6 +405,7 @@ class _HomePageState extends State<HomePage>
child: Builder( child: Builder(
builder: (context) { builder: (context) {
return ActivityCard( return ActivityCard(
home: true,
model: model:
_activityItemModels[index]); _activityItemModels[index]);
}, },

@ -22,7 +22,7 @@ class ActivityCard extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return ConstrainedBox( return ConstrainedBox(
constraints: BoxConstraints(maxHeight: home! ? 480.w : 540.w), constraints: BoxConstraints(maxHeight: home! ? 450.w : 540.w),
child: MaterialButton( child: MaterialButton(
clipBehavior: Clip.antiAlias, clipBehavior: Clip.antiAlias,
color: Colors.white, color: Colors.white,
@ -46,7 +46,7 @@ class ActivityCard extends StatelessWidget {
child: BeeImageNetwork( child: BeeImageNetwork(
imgs: model!.imgList ?? [], imgs: model!.imgList ?? [],
width: double.infinity, width: double.infinity,
height: home! ? 240.w : 340.w, height: home! ? 250.w : 340.w,
), ),
), ),
), ),
@ -102,7 +102,7 @@ class ActivityCard extends StatelessWidget {
Spacer(), Spacer(),
Padding( Padding(
padding:EdgeInsets.only(left: 32.w,right: 32.w,bottom: 32.w), padding: home!?EdgeInsets.only(left: 32.w,right: 32.w,): EdgeInsets.only(left: 32.w,right: 32.w,bottom: 32.w),
child: Row( child: Row(
children: [ children: [
Flexible( Flexible(

Loading…
Cancel
Save