Questions tagged [gridview.builder]
11 questions
2
votes
2 answers
How to calculate widget height in GridView.builder in flutter?
I'm trying to develop some notebook like this :
Picture of NoteBook
my issue is when user add some description of note .. if it long text , I got overflow error when I tying to show that note in HomeScreen .
check this pictures:
picture of add some…

arash shakibaee
- 47
- 6
2
votes
2 answers
Why is setState not rebuilding my GridView.builder? How do I fix it?
I am trying to update a GridView.builder with setState and when the change is triggered, the actual state is updated behind the scene but the GridView.builder does not change until I manually refresh the app.
The setState function triggers and I…

Olumide
- 98
- 7
1
vote
0 answers
Infinite Scrolling in GridView.builder
I am Building a flutter e-commerce application. And in the Categories section. There are so much data so I want to implement pagination through infinite scrolling.
This is what I am trying to do, CatHome object is the category either men or women…

Adam Mrouwe
- 11
- 1
1
vote
1 answer
How to listen to stream and update Flutter GridView builder accessing Firebase
I need an example code in which a Flutter Gridview builder streams Firebase data (for example with a single Collection and multiple Documents with multiple fields in each) that can be modified by the user straight from the Gridview
I've watched this…

HG Florence Tours
- 21
- 3
1
vote
1 answer
flutter GridView.builder error if list is empty
Here is the piece of code that have the problem (launched on android emulator):
GridView.builder(
padding: const EdgeInsets.all(10),
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
…

Drick
- 13
- 2
1
vote
2 answers
How to center grid button inside red container
I want to center all grid button inside red container but it is showing big space at bottom of red container..how to solve this
Widget build(BuildContext context) {
return Center(
child: Container(
color: Colors.red,
height:…

Irfan Ganatra
- 967
- 3
- 13
0
votes
0 answers
How can i navigate in a quiz app maded by GridView.builder?
I have this models of a quiz app , and a want to make a different questions to defferent categories and i want ti know how to navigate. ( when i tap in a categories i want to go to the questions of thr categories selected )
the categories model…

Achraf boussalem
- 1
- 2
0
votes
1 answer
How to change the color of each square by touching it in a square grid?
Change the color of the squares of the square grid
dart - I am trying to make a page with a square grid all over with small squares.
When any square is touched, the color of that square should change to green. (for touch test)
Can anyone help?
Like…

Aliezza navi
- 1
- 1
0
votes
0 answers
How to create colSpan using Flutter like layout bellow
i'm running issue with Flutter, i need to create a layout like capture bellow using GridView because data come from api.
With Kotlin I can do it very well with the GridLayoutManager
val layoutManager = binding.recyclerView.layoutManager as…

logancodemaker
- 582
- 3
- 14
0
votes
1 answer
Flutter > Unselect a RadioButton in a View.builder
I am not finding any answer for my question so I am hoping to find someone who can help.
I have a GridView with text buttons.
I can select the buttons, however I can't unselect any of them.
this is my code
@override
Widget build(BuildContext…

Val
- 31
- 1
- 7
0
votes
0 answers
How to reduce Gridview.builder default height
I have used GridView.builder to show API data with below code.
GridView.builder(
shrinkWrap: true,
physics: ScrollPhysics(),
itemCount: snapshot.data!.items.length,
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
…

Mimu Saha Tishan
- 2,402
- 1
- 21
- 40