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

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현