fix card list cutoff
This commit is contained in:
@@ -76,6 +76,7 @@ class _MihAppToolBodyState extends State<MihAppToolBody> {
|
|||||||
top: 0,
|
top: 0,
|
||||||
),
|
),
|
||||||
child: Container(
|
child: Container(
|
||||||
|
height: screenSize.height,
|
||||||
decoration: getBoader(),
|
decoration: getBoader(),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: EdgeInsets.all(_innerBodyPadding),
|
padding: EdgeInsets.all(_innerBodyPadding),
|
||||||
|
|||||||
@@ -143,35 +143,32 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
|
|||||||
// final double width = size.width;
|
// final double width = size.width;
|
||||||
//final double height = size.height;
|
//final double height = size.height;
|
||||||
if (widget.cardList.isNotEmpty) {
|
if (widget.cardList.isNotEmpty) {
|
||||||
return SizedBox(
|
return GridView.builder(
|
||||||
height: size.height,
|
physics: const NeverScrollableScrollPhysics(),
|
||||||
child: GridView.builder(
|
shrinkWrap: true,
|
||||||
physics: const NeverScrollableScrollPhysics(),
|
padding: EdgeInsets.only(
|
||||||
shrinkWrap: true,
|
left: getHorizontalPaddingSize(size),
|
||||||
padding: EdgeInsets.only(
|
right: getHorizontalPaddingSize(size),
|
||||||
left: getHorizontalPaddingSize(size),
|
//bottom: height / 5,
|
||||||
right: getHorizontalPaddingSize(size),
|
//top: 20,
|
||||||
//bottom: height / 5,
|
|
||||||
//top: 20,
|
|
||||||
),
|
|
||||||
// physics: ,
|
|
||||||
// shrinkWrap: true,
|
|
||||||
itemCount: widget.cardList.length,
|
|
||||||
gridDelegate: const SliverGridDelegateWithMaxCrossAxisExtent(
|
|
||||||
mainAxisSpacing: 0,
|
|
||||||
crossAxisSpacing: 10,
|
|
||||||
maxCrossAxisExtent: 200,
|
|
||||||
),
|
|
||||||
itemBuilder: (context, index) {
|
|
||||||
return GestureDetector(
|
|
||||||
child: MihCardDisplay(
|
|
||||||
shopName: widget.cardList[index].shop_name, height: 100),
|
|
||||||
onTap: () {
|
|
||||||
viewCardWindow(index);
|
|
||||||
},
|
|
||||||
);
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
|
// physics: ,
|
||||||
|
// shrinkWrap: true,
|
||||||
|
itemCount: widget.cardList.length,
|
||||||
|
gridDelegate: const SliverGridDelegateWithMaxCrossAxisExtent(
|
||||||
|
mainAxisSpacing: 0,
|
||||||
|
crossAxisSpacing: 10,
|
||||||
|
maxCrossAxisExtent: 200,
|
||||||
|
),
|
||||||
|
itemBuilder: (context, index) {
|
||||||
|
return GestureDetector(
|
||||||
|
child: MihCardDisplay(
|
||||||
|
shopName: widget.cardList[index].shop_name, height: 100),
|
||||||
|
onTap: () {
|
||||||
|
viewCardWindow(index);
|
||||||
|
},
|
||||||
|
);
|
||||||
|
},
|
||||||
);
|
);
|
||||||
// return ListView.separated(
|
// return ListView.separated(
|
||||||
// shrinkWrap: true,
|
// shrinkWrap: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user