ListView Builder items are cut off when physics is set to NeverScrollableScrollPhysics
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I have a GridView builder which has a ListView inside it. The gridView has two childs 1. Header Text and 2.ListView
Header Text includes Under Graduate and PostGraduate.
ListView for Under Graduate includes 10 items while ListView for Post Graduate includes 3 items.
But i am able to see only 4 items in my Under graduate ListView even though i have wrapped ListView inside an Expanded Widget.
I dont want to make the child listview scrollable. I have wrapped the inner ListView in Expandable but still it is not showing all items
Following is my code
return GridView.builder(
gridDelegate:
SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2),
shrinkWrap: true,
itemBuilder: (context, index) {
return Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[
Container(
decoration: BoxDecoration(color: Colors.black),
padding: EdgeInsets.fromLTRB(20.0, 4.0, 20.0, 4.0),
margin: EdgeInsets.fromLTRB(8.0, 8.0, 8.0, 0.0),
child: Text(
"${disciplineModelDataList[index].disciplineName}",
textAlign: TextAlign.center,
style: TextStyle(
color: Colors.white, fontFamily: "suisseintlMedium"),
),
),
Expanded(
child: Container(
margin: EdgeInsets.symmetric(horizontal: 8.0),
child: ListView.separated(
shrinkWrap: true,
separatorBuilder: (BuildContext context, int index) =>
Divider(
height: 0.2,
),
physics: NeverScrollableScrollPhysics(),
itemCount: disciplineModelDataList[index].years.length,
itemBuilder: (BuildContext context3, int index3) {
return Card(
color: Colors.lightGreen,
margin: EdgeInsets.all(0.0),
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0),
child: InkWell(
onTap: () {
print(index.toString());
},
child: Row(
children: <Widget>[
Expanded(
child: Text(
"${disciplineModelDataList[index].years[index3].yearName}",
textAlign: TextAlign.center,
style: TextStyle(
fontFamily: "okomitoBold",
color: Colors.black),
),
),
Icon(Icons.arrow_forward)
],
),
),
),
);
}),
),
)
],
);
},
itemCount: disciplineModelDataList.length,
);
listview
add a comment |
I have a GridView builder which has a ListView inside it. The gridView has two childs 1. Header Text and 2.ListView
Header Text includes Under Graduate and PostGraduate.
ListView for Under Graduate includes 10 items while ListView for Post Graduate includes 3 items.
But i am able to see only 4 items in my Under graduate ListView even though i have wrapped ListView inside an Expanded Widget.
I dont want to make the child listview scrollable. I have wrapped the inner ListView in Expandable but still it is not showing all items
Following is my code
return GridView.builder(
gridDelegate:
SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2),
shrinkWrap: true,
itemBuilder: (context, index) {
return Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[
Container(
decoration: BoxDecoration(color: Colors.black),
padding: EdgeInsets.fromLTRB(20.0, 4.0, 20.0, 4.0),
margin: EdgeInsets.fromLTRB(8.0, 8.0, 8.0, 0.0),
child: Text(
"${disciplineModelDataList[index].disciplineName}",
textAlign: TextAlign.center,
style: TextStyle(
color: Colors.white, fontFamily: "suisseintlMedium"),
),
),
Expanded(
child: Container(
margin: EdgeInsets.symmetric(horizontal: 8.0),
child: ListView.separated(
shrinkWrap: true,
separatorBuilder: (BuildContext context, int index) =>
Divider(
height: 0.2,
),
physics: NeverScrollableScrollPhysics(),
itemCount: disciplineModelDataList[index].years.length,
itemBuilder: (BuildContext context3, int index3) {
return Card(
color: Colors.lightGreen,
margin: EdgeInsets.all(0.0),
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0),
child: InkWell(
onTap: () {
print(index.toString());
},
child: Row(
children: <Widget>[
Expanded(
child: Text(
"${disciplineModelDataList[index].years[index3].yearName}",
textAlign: TextAlign.center,
style: TextStyle(
fontFamily: "okomitoBold",
color: Colors.black),
),
),
Icon(Icons.arrow_forward)
],
),
),
),
);
}),
),
)
],
);
},
itemCount: disciplineModelDataList.length,
);
listview
Gridwon't increase its size as per Child - in Your CaseListView. Grid haschildAspectRatioto vary Size.SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2,childAspectRatio: 52.0)
– anmol.majhail
Jan 4 at 8:07
@anmol.majhail does not work. The GridView is not visible at all and it throws an error saying A RenderFlex overflowed by 31 pixels on the bottom.
– Nudge
Jan 4 at 8:17
That is what i am Saying - It wont' Work -GridWont Increase Size as per List view. Its Size is varied bychildAspectRatio
– anmol.majhail
Jan 4 at 8:21
@anmol.majhail so what should i try?
– Nudge
Jan 4 at 8:22
add a comment |
I have a GridView builder which has a ListView inside it. The gridView has two childs 1. Header Text and 2.ListView
Header Text includes Under Graduate and PostGraduate.
ListView for Under Graduate includes 10 items while ListView for Post Graduate includes 3 items.
But i am able to see only 4 items in my Under graduate ListView even though i have wrapped ListView inside an Expanded Widget.
I dont want to make the child listview scrollable. I have wrapped the inner ListView in Expandable but still it is not showing all items
Following is my code
return GridView.builder(
gridDelegate:
SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2),
shrinkWrap: true,
itemBuilder: (context, index) {
return Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[
Container(
decoration: BoxDecoration(color: Colors.black),
padding: EdgeInsets.fromLTRB(20.0, 4.0, 20.0, 4.0),
margin: EdgeInsets.fromLTRB(8.0, 8.0, 8.0, 0.0),
child: Text(
"${disciplineModelDataList[index].disciplineName}",
textAlign: TextAlign.center,
style: TextStyle(
color: Colors.white, fontFamily: "suisseintlMedium"),
),
),
Expanded(
child: Container(
margin: EdgeInsets.symmetric(horizontal: 8.0),
child: ListView.separated(
shrinkWrap: true,
separatorBuilder: (BuildContext context, int index) =>
Divider(
height: 0.2,
),
physics: NeverScrollableScrollPhysics(),
itemCount: disciplineModelDataList[index].years.length,
itemBuilder: (BuildContext context3, int index3) {
return Card(
color: Colors.lightGreen,
margin: EdgeInsets.all(0.0),
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0),
child: InkWell(
onTap: () {
print(index.toString());
},
child: Row(
children: <Widget>[
Expanded(
child: Text(
"${disciplineModelDataList[index].years[index3].yearName}",
textAlign: TextAlign.center,
style: TextStyle(
fontFamily: "okomitoBold",
color: Colors.black),
),
),
Icon(Icons.arrow_forward)
],
),
),
),
);
}),
),
)
],
);
},
itemCount: disciplineModelDataList.length,
);
listview
I have a GridView builder which has a ListView inside it. The gridView has two childs 1. Header Text and 2.ListView
Header Text includes Under Graduate and PostGraduate.
ListView for Under Graduate includes 10 items while ListView for Post Graduate includes 3 items.
But i am able to see only 4 items in my Under graduate ListView even though i have wrapped ListView inside an Expanded Widget.
I dont want to make the child listview scrollable. I have wrapped the inner ListView in Expandable but still it is not showing all items
Following is my code
return GridView.builder(
gridDelegate:
SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2),
shrinkWrap: true,
itemBuilder: (context, index) {
return Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[
Container(
decoration: BoxDecoration(color: Colors.black),
padding: EdgeInsets.fromLTRB(20.0, 4.0, 20.0, 4.0),
margin: EdgeInsets.fromLTRB(8.0, 8.0, 8.0, 0.0),
child: Text(
"${disciplineModelDataList[index].disciplineName}",
textAlign: TextAlign.center,
style: TextStyle(
color: Colors.white, fontFamily: "suisseintlMedium"),
),
),
Expanded(
child: Container(
margin: EdgeInsets.symmetric(horizontal: 8.0),
child: ListView.separated(
shrinkWrap: true,
separatorBuilder: (BuildContext context, int index) =>
Divider(
height: 0.2,
),
physics: NeverScrollableScrollPhysics(),
itemCount: disciplineModelDataList[index].years.length,
itemBuilder: (BuildContext context3, int index3) {
return Card(
color: Colors.lightGreen,
margin: EdgeInsets.all(0.0),
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0),
child: InkWell(
onTap: () {
print(index.toString());
},
child: Row(
children: <Widget>[
Expanded(
child: Text(
"${disciplineModelDataList[index].years[index3].yearName}",
textAlign: TextAlign.center,
style: TextStyle(
fontFamily: "okomitoBold",
color: Colors.black),
),
),
Icon(Icons.arrow_forward)
],
),
),
),
);
}),
),
)
],
);
},
itemCount: disciplineModelDataList.length,
);
listview
listview
edited Jan 4 at 7:30
Nudge
asked Jan 4 at 6:35
NudgeNudge
478722
478722
Gridwon't increase its size as per Child - in Your CaseListView. Grid haschildAspectRatioto vary Size.SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2,childAspectRatio: 52.0)
– anmol.majhail
Jan 4 at 8:07
@anmol.majhail does not work. The GridView is not visible at all and it throws an error saying A RenderFlex overflowed by 31 pixels on the bottom.
– Nudge
Jan 4 at 8:17
That is what i am Saying - It wont' Work -GridWont Increase Size as per List view. Its Size is varied bychildAspectRatio
– anmol.majhail
Jan 4 at 8:21
@anmol.majhail so what should i try?
– Nudge
Jan 4 at 8:22
add a comment |
Gridwon't increase its size as per Child - in Your CaseListView. Grid haschildAspectRatioto vary Size.SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2,childAspectRatio: 52.0)
– anmol.majhail
Jan 4 at 8:07
@anmol.majhail does not work. The GridView is not visible at all and it throws an error saying A RenderFlex overflowed by 31 pixels on the bottom.
– Nudge
Jan 4 at 8:17
That is what i am Saying - It wont' Work -GridWont Increase Size as per List view. Its Size is varied bychildAspectRatio
– anmol.majhail
Jan 4 at 8:21
@anmol.majhail so what should i try?
– Nudge
Jan 4 at 8:22
Grid won't increase its size as per Child - in Your Case ListView. Grid has childAspectRatio to vary Size. SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2,childAspectRatio: 52.0)– anmol.majhail
Jan 4 at 8:07
Grid won't increase its size as per Child - in Your Case ListView. Grid has childAspectRatio to vary Size. SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2,childAspectRatio: 52.0)– anmol.majhail
Jan 4 at 8:07
@anmol.majhail does not work. The GridView is not visible at all and it throws an error saying A RenderFlex overflowed by 31 pixels on the bottom.
– Nudge
Jan 4 at 8:17
@anmol.majhail does not work. The GridView is not visible at all and it throws an error saying A RenderFlex overflowed by 31 pixels on the bottom.
– Nudge
Jan 4 at 8:17
That is what i am Saying - It wont' Work -
Grid Wont Increase Size as per List view. Its Size is varied by childAspectRatio– anmol.majhail
Jan 4 at 8:21
That is what i am Saying - It wont' Work -
Grid Wont Increase Size as per List view. Its Size is varied by childAspectRatio– anmol.majhail
Jan 4 at 8:21
@anmol.majhail so what should i try?
– Nudge
Jan 4 at 8:22
@anmol.majhail so what should i try?
– Nudge
Jan 4 at 8:22
add a comment |
1 Answer
1
active
oldest
votes
You should not use a ListView inside GridView. Use Column instead
return GridView.builder(
gridDelegate:
SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2),
shrinkWrap: true,
itemBuilder: (context, index) {
return Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[
Container(
decoration: BoxDecoration(color: Colors.black),
padding: EdgeInsets.fromLTRB(20.0, 4.0, 20.0, 4.0),
margin: EdgeInsets.fromLTRB(8.0, 8.0, 8.0, 0.0),
child: Text(
"${disciplineModelDataList[index].disciplineName}",
textAlign: TextAlign.center,
style: TextStyle(
color: Colors.white, fontFamily: "suisseintlMedium"),
),
),
Container(
margin: EdgeInsets.symmetric(horizontal: 8.0),
child: Column(
children: List<Widget>.generate(disciplineModelDataList[index].years.length, (int index3) {
return Card(
color: Colors.lightGreen,
margin: EdgeInsets.all(0.0),
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0),
child: InkWell(
onTap: () {
print(index.toString());
},
child: Row(
children: <Widget>[
Expanded(
child: Text(
"${disciplineModelDataList[index].years[index3].yearName}",
textAlign: TextAlign.center,
style: TextStyle(
fontFamily: "okomitoBold",
color: Colors.black),
),
),
Icon(Icons.arrow_forward)
],
),
),
),
);
},),),
)
],
);
},
itemCount: disciplineModelDataList.length,
);
I need to use ListView as i am getting dynamic data from the server and using the above method which you mentioned may cause a performance lag
– Nudge
Jan 4 at 7:01
@dshuketjr I tried what you mentioned and now i am getting bottom overflowed by 94 pixels
– Nudge
Jan 4 at 7:05
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54034101%2flistview-builder-items-are-cut-off-when-physics-is-set-to-neverscrollablescrollp%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You should not use a ListView inside GridView. Use Column instead
return GridView.builder(
gridDelegate:
SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2),
shrinkWrap: true,
itemBuilder: (context, index) {
return Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[
Container(
decoration: BoxDecoration(color: Colors.black),
padding: EdgeInsets.fromLTRB(20.0, 4.0, 20.0, 4.0),
margin: EdgeInsets.fromLTRB(8.0, 8.0, 8.0, 0.0),
child: Text(
"${disciplineModelDataList[index].disciplineName}",
textAlign: TextAlign.center,
style: TextStyle(
color: Colors.white, fontFamily: "suisseintlMedium"),
),
),
Container(
margin: EdgeInsets.symmetric(horizontal: 8.0),
child: Column(
children: List<Widget>.generate(disciplineModelDataList[index].years.length, (int index3) {
return Card(
color: Colors.lightGreen,
margin: EdgeInsets.all(0.0),
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0),
child: InkWell(
onTap: () {
print(index.toString());
},
child: Row(
children: <Widget>[
Expanded(
child: Text(
"${disciplineModelDataList[index].years[index3].yearName}",
textAlign: TextAlign.center,
style: TextStyle(
fontFamily: "okomitoBold",
color: Colors.black),
),
),
Icon(Icons.arrow_forward)
],
),
),
),
);
},),),
)
],
);
},
itemCount: disciplineModelDataList.length,
);
I need to use ListView as i am getting dynamic data from the server and using the above method which you mentioned may cause a performance lag
– Nudge
Jan 4 at 7:01
@dshuketjr I tried what you mentioned and now i am getting bottom overflowed by 94 pixels
– Nudge
Jan 4 at 7:05
add a comment |
You should not use a ListView inside GridView. Use Column instead
return GridView.builder(
gridDelegate:
SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2),
shrinkWrap: true,
itemBuilder: (context, index) {
return Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[
Container(
decoration: BoxDecoration(color: Colors.black),
padding: EdgeInsets.fromLTRB(20.0, 4.0, 20.0, 4.0),
margin: EdgeInsets.fromLTRB(8.0, 8.0, 8.0, 0.0),
child: Text(
"${disciplineModelDataList[index].disciplineName}",
textAlign: TextAlign.center,
style: TextStyle(
color: Colors.white, fontFamily: "suisseintlMedium"),
),
),
Container(
margin: EdgeInsets.symmetric(horizontal: 8.0),
child: Column(
children: List<Widget>.generate(disciplineModelDataList[index].years.length, (int index3) {
return Card(
color: Colors.lightGreen,
margin: EdgeInsets.all(0.0),
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0),
child: InkWell(
onTap: () {
print(index.toString());
},
child: Row(
children: <Widget>[
Expanded(
child: Text(
"${disciplineModelDataList[index].years[index3].yearName}",
textAlign: TextAlign.center,
style: TextStyle(
fontFamily: "okomitoBold",
color: Colors.black),
),
),
Icon(Icons.arrow_forward)
],
),
),
),
);
},),),
)
],
);
},
itemCount: disciplineModelDataList.length,
);
I need to use ListView as i am getting dynamic data from the server and using the above method which you mentioned may cause a performance lag
– Nudge
Jan 4 at 7:01
@dshuketjr I tried what you mentioned and now i am getting bottom overflowed by 94 pixels
– Nudge
Jan 4 at 7:05
add a comment |
You should not use a ListView inside GridView. Use Column instead
return GridView.builder(
gridDelegate:
SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2),
shrinkWrap: true,
itemBuilder: (context, index) {
return Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[
Container(
decoration: BoxDecoration(color: Colors.black),
padding: EdgeInsets.fromLTRB(20.0, 4.0, 20.0, 4.0),
margin: EdgeInsets.fromLTRB(8.0, 8.0, 8.0, 0.0),
child: Text(
"${disciplineModelDataList[index].disciplineName}",
textAlign: TextAlign.center,
style: TextStyle(
color: Colors.white, fontFamily: "suisseintlMedium"),
),
),
Container(
margin: EdgeInsets.symmetric(horizontal: 8.0),
child: Column(
children: List<Widget>.generate(disciplineModelDataList[index].years.length, (int index3) {
return Card(
color: Colors.lightGreen,
margin: EdgeInsets.all(0.0),
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0),
child: InkWell(
onTap: () {
print(index.toString());
},
child: Row(
children: <Widget>[
Expanded(
child: Text(
"${disciplineModelDataList[index].years[index3].yearName}",
textAlign: TextAlign.center,
style: TextStyle(
fontFamily: "okomitoBold",
color: Colors.black),
),
),
Icon(Icons.arrow_forward)
],
),
),
),
);
},),),
)
],
);
},
itemCount: disciplineModelDataList.length,
);
You should not use a ListView inside GridView. Use Column instead
return GridView.builder(
gridDelegate:
SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2),
shrinkWrap: true,
itemBuilder: (context, index) {
return Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[
Container(
decoration: BoxDecoration(color: Colors.black),
padding: EdgeInsets.fromLTRB(20.0, 4.0, 20.0, 4.0),
margin: EdgeInsets.fromLTRB(8.0, 8.0, 8.0, 0.0),
child: Text(
"${disciplineModelDataList[index].disciplineName}",
textAlign: TextAlign.center,
style: TextStyle(
color: Colors.white, fontFamily: "suisseintlMedium"),
),
),
Container(
margin: EdgeInsets.symmetric(horizontal: 8.0),
child: Column(
children: List<Widget>.generate(disciplineModelDataList[index].years.length, (int index3) {
return Card(
color: Colors.lightGreen,
margin: EdgeInsets.all(0.0),
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0),
child: InkWell(
onTap: () {
print(index.toString());
},
child: Row(
children: <Widget>[
Expanded(
child: Text(
"${disciplineModelDataList[index].years[index3].yearName}",
textAlign: TextAlign.center,
style: TextStyle(
fontFamily: "okomitoBold",
color: Colors.black),
),
),
Icon(Icons.arrow_forward)
],
),
),
),
);
},),),
)
],
);
},
itemCount: disciplineModelDataList.length,
);
answered Jan 4 at 6:54
dshukertjrdshukertjr
2,0422930
2,0422930
I need to use ListView as i am getting dynamic data from the server and using the above method which you mentioned may cause a performance lag
– Nudge
Jan 4 at 7:01
@dshuketjr I tried what you mentioned and now i am getting bottom overflowed by 94 pixels
– Nudge
Jan 4 at 7:05
add a comment |
I need to use ListView as i am getting dynamic data from the server and using the above method which you mentioned may cause a performance lag
– Nudge
Jan 4 at 7:01
@dshuketjr I tried what you mentioned and now i am getting bottom overflowed by 94 pixels
– Nudge
Jan 4 at 7:05
I need to use ListView as i am getting dynamic data from the server and using the above method which you mentioned may cause a performance lag
– Nudge
Jan 4 at 7:01
I need to use ListView as i am getting dynamic data from the server and using the above method which you mentioned may cause a performance lag
– Nudge
Jan 4 at 7:01
@dshuketjr I tried what you mentioned and now i am getting bottom overflowed by 94 pixels
– Nudge
Jan 4 at 7:05
@dshuketjr I tried what you mentioned and now i am getting bottom overflowed by 94 pixels
– Nudge
Jan 4 at 7:05
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54034101%2flistview-builder-items-are-cut-off-when-physics-is-set-to-neverscrollablescrollp%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Gridwon't increase its size as per Child - in Your CaseListView. Grid haschildAspectRatioto vary Size.SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2,childAspectRatio: 52.0)– anmol.majhail
Jan 4 at 8:07
@anmol.majhail does not work. The GridView is not visible at all and it throws an error saying A RenderFlex overflowed by 31 pixels on the bottom.
– Nudge
Jan 4 at 8:17
That is what i am Saying - It wont' Work -
GridWont Increase Size as per List view. Its Size is varied bychildAspectRatio– anmol.majhail
Jan 4 at 8:21
@anmol.majhail so what should i try?
– Nudge
Jan 4 at 8:22