Questions tagged [flutter-gridview]
93 questions
0
votes
2 answers
How do I sized of grid in Gridview flutter?
I want to change the dynamic size of children according to its array count.
It is a way same like GridLayoutManger in android java.
What I did in android(java)
GridLayoutManager mng_layout = new GridLayoutManager(this, 4/*In my case 4*/);
…

tailor
- 373
- 4
- 19
0
votes
2 answers
How to tell a GridView builder to take only necessary height?
Is it possible to make a GridView.builder that takes the height of its children, instead of specifying a certain height on its parent?
I have a GridView.builder that is supposed to put the content of a list. I get an error because I didn't specify…

JAgüero
- 403
- 1
- 4
- 14
0
votes
1 answer
Flutter: How to implement State Management onPressed
I have no idea how to change the state of my grid view when a button is clicked can someone help me with this?
So, I have this textButton that should change the state of my grid view when clicked but I have no idea how to implement it. Below is my…

Saheed
- 301
- 1
- 2
- 11
0
votes
0 answers
Gridview.Builder // crossAxisSpacing doesn't work as expected
tldr; gridview is spaced out. confused myself trying to make it tight. need help.
The problem: I'm using GridView.builder to display some thumbnails. The problem is that they are being spaced out evenly and the crossAxisSpacing isn't working to get…

Joe
- 311
- 3
- 17
0
votes
1 answer
why do widgets in GridView act as one (in terms of animation)
Hy,
I'm new to dart and flutter thus why you will find my code messy (i don't really know when to use classes vs widgets).
I'm trying to generate clickable cards with images from assets that will turn around when clicked- the problem is they act as…

SpectemurAgendo
- 21
- 3
0
votes
2 answers
GridView.count() not working inside a Column Widget-Flutter
When i am trying to use GridView.count() to build the body under 'Skills' ,as shown in the design, Its not working i.e the gridview is not visible at all. I understood it might be due to I am using it inside a Column, and a suggested solution was…

ghosh_joy
- 1,031
- 1
- 5
- 10
0
votes
1 answer
Adding static element to gridview which is constructed by futurebuilder in flutter?
I am getting images using gridview and using futurebuilder. But I need to add one static photo.I replaced the photos from futurebuilder fine but also I want to add one photo which is static from outside of the futurebuilder.
This is how I want my …

cvsrt
- 357
- 4
- 19
0
votes
1 answer
Get data from list inside another list in flutter
[enter image description here][1]
I'm creating a maintenance app in flutter with dummy model.
what I'm try to achieve is when the user select a main category the screen should navigate to the subcategory then when the user select the subcategories…

Nashaf
- 23
- 7
0
votes
2 answers
Make specific Item in gridview bigger in Flutter
Is it possible to have a specific item in a gridview.builder that is bigger than the others and is overlapping them like in the image down below in Flutter?
I tried adding the child aspect ratio but its not specific for a child and i cant access the…

Der Korrigierer
- 85
- 1
- 9
0
votes
1 answer
Flutter GridView Item Click Animation
Grid view item animation
I want individual grid items to animate on click. But on clicking an item, all the items animate simultaneously. How to fix this?
I want individual grid items to animate on click. But on clicking an item, all the items…

shubham maurya
- 1
- 1
0
votes
0 answers
Adding a GridView widget in a simple layout crashes the flutter application
I have the following flutter code,
class ReportDisasterPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: Column(
children: [
…

NewPythoneer
- 93
- 5
0
votes
1 answer
Flutter how do i get onTap() command in GridView.count
I am new at flutter how can i get onTap command in gridview.count
I tried to make the images clickable but i can't get the command onTap in gridview.count
Widget buildBody() {
return SafeArea(
child: Container(
padding:…

Arda Senoglu
- 25
- 6
0
votes
3 answers
Add infinite scroll to GridView.builder to flutter FutureBuilder
I'm having a hard time to wrap my head around infinite scrolling in flutter.
I'm trying to load 10 recipes first, then with the help of ScrollController show the new recipes.
and when there is no more recipes left, I want to show a message that…

Adel5151
- 13
- 2
- 5
0
votes
0 answers
Staggered GridView All items at bottom- Flutter
I want all the items to be at the bottom, the padding should be added at the top if the container is big. I want Grid like this https://ibb.co/zrRQ8Hz but I'm able to achieve this https://ibb.co/2820csg .
The code I've written is as follows:
…

Darshan HK
- 73
- 1
- 8
0
votes
1 answer
GridView.builder in CustomScrollView loads all items
I'm building my first Flutter app and I have some performance issues.
I have a screen with a CustomScrollView, to especially get a custom AppBar, with a Hero image. Next, I have some fields/filters and then I have my GridView.builder because I can…

DimZ
- 297
- 4
- 18