How to fix Grid-view overflow error on Flutter?Flutter - Insert overflow ellipsis in textFlutter - Implementing a Navigation drawer with a TabBarView widget with dynamic Tab viewFlutter - DropdownButton overflow in ListViewHow to offset a scaffold widget in Flutter?Flutter : Bad state: Stream has already been listened toHow to fix Flutter dropdown button overflow issue?How to fix RenderFlex overflowed in Flutter?How I can put Widget above Widget using List<Widget> widget in Flutter?Flutter: How to fix “A RenderFlex overflowed by pixels ” error?

How to find the shape parameters of of a beta distribution given the position of two quantiles?

Why does my script create an extra character?

Is anyone advocating the promotion of homosexuality in UK schools?

What species of wasp is this? And how to get rid of them?

What was the definition of "set" that resulted in Russell's Paradox

ESTA: "Is your travel to the US occurring in transit to another country?" when going on a cruise

Keep milk (or milk alternative) for a day without a fridge

Why isn't pressure filtration popular compared to vacuum filtration?

Why are they 'nude photos'?

Is Trump personally blocking people on Twitter?

How to know whether a Tamron lens is compatible with Canon EOS 60D?

What are the bumps on the Vega rocket

When casting Eldritch Blast with the Agonizing Blast eldritch invocation, what do I add to my damage roll?

Machine learning and operations research projects

Is there any word for "disobedience to God"?

What's the maximum time an interrupt service routine can take to execute on atmega328p?

For a hashing function like MD5, how similar can two plaintext strings be and still generate the same hash?

Graduate student with abysmal English writing skills, how to help

Who has taken "my" Managed package namespace? Can we find out?

A pyramid from a square

Shortest distance around a pyramid?

Referring to different instances of the same character in time travel

Why do people keep referring to Leia as Princess Leia, even after the destruction of Alderaan?

Why was hardware diversification an asset for the IBM PC ecosystem?



How to fix Grid-view overflow error on Flutter?


Flutter - Insert overflow ellipsis in textFlutter - Implementing a Navigation drawer with a TabBarView widget with dynamic Tab viewFlutter - DropdownButton overflow in ListViewHow to offset a scaffold widget in Flutter?Flutter : Bad state: Stream has already been listened toHow to fix Flutter dropdown button overflow issue?How to fix RenderFlex overflowed in Flutter?How I can put Widget above Widget using List<Widget> widget in Flutter?Flutter: How to fix “A RenderFlex overflowed by pixels ” error?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















How to fix this issue overflow error and how to center text? for any size of devices I used the center widget is not center well. You can see both errors with an image.



https://i.imgur.com/4SGYQ9P.jpg



SOLVED using this code




Expanded(
child: Center(child:Text(values[index].d)),
),


above code is the best code for my problem, but still, the text is not center



this is my code,




Widget createListView(BuildContext context, AsyncSnapshot snapshot)
List<Data> values = snapshot.data;
return ListView.builder(
itemCount: 1,
itemBuilder: (BuildContext context, int index)
return GridView.count(
physics: ScrollPhysics(),
shrinkWrap: true,
crossAxisCount: 4,
childAspectRatio: 0.9,
children: List.generate(values.length, (index)
return GridTile(
child: GestureDetector(
onTap: () => Navigator.push(
context,
MaterialPageRoute(
builder: (context) =>
assets2(values[index].i, widget._url))),
child: Column(
children: [
Card(
//color: Colors.blue.shade100,
child: Container(
decoration: BoxDecoration(
border: Border.all(
color: Colors.blueAccent, width: 1.5)),
child: Stack(
children: <Widget>[
SvgPicture.asset(
'assets/images/recreation.svg',
height: 50.0,
),
],
),
),
),
Center(
child: Text(values[index].d),
),
],
),
),
);
),
);
,
);










share|improve this question
























  • fix overflow issue set the childAspectRatio: 0.9, according to device height, like as - childAspectRatio: MediaQuery.of(context).size.height/600,

    – Android Team
    Mar 26 at 5:37

















0















How to fix this issue overflow error and how to center text? for any size of devices I used the center widget is not center well. You can see both errors with an image.



https://i.imgur.com/4SGYQ9P.jpg



SOLVED using this code




Expanded(
child: Center(child:Text(values[index].d)),
),


above code is the best code for my problem, but still, the text is not center



this is my code,




Widget createListView(BuildContext context, AsyncSnapshot snapshot)
List<Data> values = snapshot.data;
return ListView.builder(
itemCount: 1,
itemBuilder: (BuildContext context, int index)
return GridView.count(
physics: ScrollPhysics(),
shrinkWrap: true,
crossAxisCount: 4,
childAspectRatio: 0.9,
children: List.generate(values.length, (index)
return GridTile(
child: GestureDetector(
onTap: () => Navigator.push(
context,
MaterialPageRoute(
builder: (context) =>
assets2(values[index].i, widget._url))),
child: Column(
children: [
Card(
//color: Colors.blue.shade100,
child: Container(
decoration: BoxDecoration(
border: Border.all(
color: Colors.blueAccent, width: 1.5)),
child: Stack(
children: <Widget>[
SvgPicture.asset(
'assets/images/recreation.svg',
height: 50.0,
),
],
),
),
),
Center(
child: Text(values[index].d),
),
],
),
),
);
),
);
,
);










share|improve this question
























  • fix overflow issue set the childAspectRatio: 0.9, according to device height, like as - childAspectRatio: MediaQuery.of(context).size.height/600,

    – Android Team
    Mar 26 at 5:37













0












0








0








How to fix this issue overflow error and how to center text? for any size of devices I used the center widget is not center well. You can see both errors with an image.



https://i.imgur.com/4SGYQ9P.jpg



SOLVED using this code




Expanded(
child: Center(child:Text(values[index].d)),
),


above code is the best code for my problem, but still, the text is not center



this is my code,




Widget createListView(BuildContext context, AsyncSnapshot snapshot)
List<Data> values = snapshot.data;
return ListView.builder(
itemCount: 1,
itemBuilder: (BuildContext context, int index)
return GridView.count(
physics: ScrollPhysics(),
shrinkWrap: true,
crossAxisCount: 4,
childAspectRatio: 0.9,
children: List.generate(values.length, (index)
return GridTile(
child: GestureDetector(
onTap: () => Navigator.push(
context,
MaterialPageRoute(
builder: (context) =>
assets2(values[index].i, widget._url))),
child: Column(
children: [
Card(
//color: Colors.blue.shade100,
child: Container(
decoration: BoxDecoration(
border: Border.all(
color: Colors.blueAccent, width: 1.5)),
child: Stack(
children: <Widget>[
SvgPicture.asset(
'assets/images/recreation.svg',
height: 50.0,
),
],
),
),
),
Center(
child: Text(values[index].d),
),
],
),
),
);
),
);
,
);










share|improve this question
















How to fix this issue overflow error and how to center text? for any size of devices I used the center widget is not center well. You can see both errors with an image.



https://i.imgur.com/4SGYQ9P.jpg



SOLVED using this code




Expanded(
child: Center(child:Text(values[index].d)),
),


above code is the best code for my problem, but still, the text is not center



this is my code,




Widget createListView(BuildContext context, AsyncSnapshot snapshot)
List<Data> values = snapshot.data;
return ListView.builder(
itemCount: 1,
itemBuilder: (BuildContext context, int index)
return GridView.count(
physics: ScrollPhysics(),
shrinkWrap: true,
crossAxisCount: 4,
childAspectRatio: 0.9,
children: List.generate(values.length, (index)
return GridTile(
child: GestureDetector(
onTap: () => Navigator.push(
context,
MaterialPageRoute(
builder: (context) =>
assets2(values[index].i, widget._url))),
child: Column(
children: [
Card(
//color: Colors.blue.shade100,
child: Container(
decoration: BoxDecoration(
border: Border.all(
color: Colors.blueAccent, width: 1.5)),
child: Stack(
children: <Widget>[
SvgPicture.asset(
'assets/images/recreation.svg',
height: 50.0,
),
],
),
),
),
Center(
child: Text(values[index].d),
),
],
),
),
);
),
);
,
);







dart flutter






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 26 at 3:45

























asked Mar 26 at 3:27







user11065582



















  • fix overflow issue set the childAspectRatio: 0.9, according to device height, like as - childAspectRatio: MediaQuery.of(context).size.height/600,

    – Android Team
    Mar 26 at 5:37

















  • fix overflow issue set the childAspectRatio: 0.9, according to device height, like as - childAspectRatio: MediaQuery.of(context).size.height/600,

    – Android Team
    Mar 26 at 5:37
















fix overflow issue set the childAspectRatio: 0.9, according to device height, like as - childAspectRatio: MediaQuery.of(context).size.height/600,

– Android Team
Mar 26 at 5:37





fix overflow issue set the childAspectRatio: 0.9, according to device height, like as - childAspectRatio: MediaQuery.of(context).size.height/600,

– Android Team
Mar 26 at 5:37












0






active

oldest

votes










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
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55349436%2fhow-to-fix-grid-view-overflow-error-on-flutter%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown
























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes




Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















draft saved

draft discarded
















































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.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55349436%2fhow-to-fix-grid-view-overflow-error-on-flutter%23new-answer', 'question_page');

);

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







Popular posts from this blog

Obelisk of Theodosius Contents History Description Notes Bibliography Further reading External links Navigation menuAge of spirituality : late antique and early Christian art, third to seventh centuryOver 60 picturesObelisks of the World41°00′21.24″N 28°58′31.43″E / 41.0059000°N 28.9753972°E / 41.0059000; 28.97539727724550-7235741376235741376

밀양 대씨 역사 각주 함께 보기 둘러보기 메뉴밀양 대씨

1973년 목차 사건 문화 탄생 사망 노벨상 달력 둘러보기 메뉴