Questions tagged [flutter-gridview]

93 questions
1
vote
2 answers

How do I change the height of GridView?

I am currently displaying two rows of widgets in a GridView. However, I am unable to limit the height and narrow the spacing. I would like to eliminate the extra gap. I want to eliminate the red butts. I would like to eliminate this area and display…
Tdayo
  • 269
  • 4
  • 11
1
vote
1 answer

Textfield and MasonryGrid give error (Vertical viewport was given unbounded height)

Masonry layout working properly without any other widgets, but not working when i add textfield and MasonryLayout together. So i just want to these 2 widgets in column with scroll..... TextField( decoration: InputDecoration( …
Smit
  • 21
  • 4
1
vote
2 answers

Flutter add to favorites button is selecting all items and

I am building a flutter ecommerce app and I'm having an issue where if I click the add to favorites button it selects all items and not the specific item selected. My items are in a gridview using tabbarview. Please can anyone assist. Here are the…
1
vote
1 answer

not able to return elements with nested gridview builder - fluttter

my case is that I am retrieving values images and text for challenges (like products ...etc), the challenges should appear one by one vertically first the image appears then the text appears over the image in the centre so I used stack and padding…
editix
  • 322
  • 2
  • 14
1
vote
1 answer

GridView.builder Instatiation

I am trying to use GridView builder and I just don't know how to use it. I'm a Flutter noob and would appreciate it if you guys could help. So here's my GridView code: Container( height: 400, child: GridView.builder( …
1
vote
1 answer

Grid view image View difference Problem in Flutter?

I am showing images on gridview but i have a problem. I want to make the image's height and width equal. This is the picture and I want to make image on the right to the have same width and height like the left one.Or at least put a white cover to…
cvsrt
  • 357
  • 4
  • 19
1
vote
1 answer

How to avoid OOM using images in ListView, GridView builders in Flutter?

I am trying to lazy load Images in any kind of ListView, GridView, StaggeredGridView, SliverGrid, SliverList, ScrollablePositionedList builders. I am fetching images from network using Image.network. I am also using ResizeImage to reduce the memory…
Tom3652
  • 2,540
  • 3
  • 19
  • 45
1
vote
1 answer

Flutter. How to collapse GridView.builder when it empty (do not have any elements)

I have a GridView.builder with shrinkWrap to true. It fills dynamically, but the problem that at start it empty but takes place, like it has elements (sort of reserving place) depends on the size of maxCrossAxisExtent. Is it possible change this?…
Parafin
  • 89
  • 3
  • 7
1
vote
1 answer

Flutter Gridview with CacheImage causing crash

I am trying to build a shopping app for which I want to show the list of products in a grid view. The code that I have used - Expanded( child: GridView.builder( cacheExtent: 999999, itemCount: itemData.length, gridDelegate:…
Malay Agrawal
  • 27
  • 1
  • 12
1
vote
1 answer

How to reorder a GridView in Flutter?

I made a GridView whereby ontap I can show the grid item. by double-tap. I can delete a grid. Now I want to add reorderable property. Here is my code: //import 'dart:html'; import 'package:flutter/material.dart'; import…
1
vote
1 answer

Flutter grid view animations

What package I can use for grid view animations? I want remove grid view item like in IOS Home Screen App delete, and didn't want create custom animation. There is package for do this?
Ash Khachatryan
  • 427
  • 1
  • 5
  • 18
1
vote
2 answers

Ordering Firestore documents in descending order in Flutter?

I want to order Firestore documents in descending order according to the timestamp they have uploaded. I mean when I upload a new photo it should appear on the top of the image grid that I have made. Here I used orderBy and I passed true for the…
1
vote
0 answers

How can I get the context outside of the build in flutter?

I use StreamProvider to receive firestore data in my app. And I use lazy_load_scrollview package for the pagination in the image gridview. In the StreamProvider I have to pass context to listen to data streams. Just like Provider.of(context)…
1
vote
1 answer

GridView appear animation

I am new to flutter I am learning and have made this layout. Structure of the layout: App │ └── MaterialApp │ └── Scaffold │ └── AppBar │ └── TabBar │ │ …
Vettiyanakan
  • 7,957
  • 6
  • 37
  • 55
0
votes
1 answer

In Flutter, how can I set a fixed height for grid view items?

I am creating a web application that utilizes a grid view to display items in a grid format. However, I am facing an issue where the height of the grid increases excessively. I have attempted to address this by setting an aspect ratio of 1.7, which…