99 questions
1
vote
2
answers
108
views
Getx Obx() is not updating on GridView, ListView and on BottomNavigationBar
I have added Obx() for updating my UI as per with the variables.obs. It did not work so after that I added variables.refresh() and update() for updating the onChanged() function. Still my UI is not ...
0
votes
3
answers
96
views
Flutter Gridview builder giving out useless white space
I am trying to display 6 cards with gridview builder in flutter. 3 cards each row. i am successful to display the cards along with dymanic content of cards but what i am facing now is that gridview is ...
0
votes
1
answer
89
views
Flutter GridView with PageScrollPhysics: Prevent Grid Items from Cropping on Page Scroll
I'm working on a Flutter app where I need to display items in a horizontally scrolling gridview. I want the [tag:GridView ]to behave like a paginated view, where each "page" scrolls exactly ...
0
votes
2
answers
176
views
Flutter StaggeredGridView not available on latest version of flutter_staggered_grid_view
What I'm trying to do is have a GridView with a variable/dynamic CrossAxisCount.
I have a FutureBuilder retrieving data from an API and sometimes I need to show one item per line and sometimes I need ...
1
vote
1
answer
36
views
GridView not detecting index 1 in if condition
I'm building a grid view where the top right is empty if the itemCount is odd.
Eg.
1 _
2 3
4 5
GridView.builder(
shrinkWrap: true,
itemCount: ...
-1
votes
1
answer
74
views
Child is overflowing when using grid view in flutter
I wrapped a container with a gridView, as a result the card is overflowing. i wrapped gridView with a sizeBox and set the height to 600. Can somebody help me with this. im just started learning ...
1
vote
1
answer
288
views
BoxConstraints forces an infinite height: SizedBox.Expand()
Im building a List View for displaying videos.I'm using ListView to display 2 videos beside each other for each blog post.
I've wrapped ListView inside a SizedBox of a custom height and width. For the ...
0
votes
1
answer
407
views
Extra vertical padding around Navigation Bar and Bottom Navigation Bar in Flutter
I'm encountering extra padding around both the navigation bar at the top and the bottom navigation bar in my Flutter application. This padding creates unnecessary space and disrupts the intended ...
0
votes
0
answers
39
views
In my flutter app, Last two product are not completely showing
To display the product I have used ListView.builder(). I am show only 20 products for now but last 2 products are not completely displayed. It doesnot show any error in debug Console or on screen.
I ...
1
vote
1
answer
156
views
Sticky Header and GridView with large amount of items rendering problems
On my Flutter app, I have this implementation of my layout
CustomScrollView(
controller: _scrollController,
slivers: [
SliverList(
delegate: SliverChildBuilderDelegate((context, index) ...
2
votes
1
answer
1k
views
Flutter, Staggered flutter_staggered_grid_view making each tile tappable without breaking layout
New developer here, need some expertise. I am attempting to create a custom staggered grid view that also allows each tile to be tappable and goes to different pages.
I have tried using inkwell but I ...
0
votes
1
answer
545
views
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 ...
1
vote
1
answer
270
views
flutter gridview builder is choppy/laggy but it's just a tile of (very) low-res images
Short Question
Is it a bad idea to have gridview builder find (and render) an image file every time it needs to build? Any alternative approach?
Long Question
I'm developing a flutter/dart media ...
1
vote
1
answer
825
views
How to get Grid view count column information upon clicking grid item in flutter
Hi developers i have been using gridview in my flutter app to display some data's my gridview which has crossAxisCount: 5 which is 5 columns so when clicking an item from gridview i want more ...
1
vote
1
answer
75
views
How to detect in ListView.Builder or GridView.Builder user finger is pointing at which index in Flutter Mobile?
I am using ListView horizontal and vertical scrolling and MouseRegion or Inkwell(onHover method) any other way working properly on Flutter web And Desktop devices properly but not mobile devices (IOS ...
0
votes
2
answers
116
views
Want List items vertical and inner list items horizontal Flutter
I want every abcdLine's items characters in new line(vertically scrollable), and all items of characters should be horizontally scrollable in flutter application. I tried with Listview.builder(), but ...
2
votes
2
answers
119
views
TextButton inside a BlocBuilder getting disabled by default in Flutter
I am trying to display a basic screen via flutter Bloc library , where in a person can view the number of appointments he had for a particular day , by clicking the particular date in a Calendar ...
1
vote
1
answer
40
views
Why is my gridview not showing on my page?
I'm trying to display the country by continent in a dynamic way so I can reuse my widget for other continent but my GridView don't work, nothing is showing either in my debug console or my page can ...
2
votes
3
answers
533
views
How to reset Flutter AnimatedGrid with new list of items?
I am trying the widgets.AnimatedGrid.1 mysample of AnimatedGrid class documentation and I am always getting a RangeError (index): Invalid value: Not in inclusive range whenever I replace at runtime ...
1
vote
1
answer
479
views
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 ...
1
vote
0
answers
67
views
Flutter - Custom widget animation state reversed in Gridview
I have a gridview with a couple of custom cards that when selected will change color to indicate to the user that they have selected the card. When I scroll down and return to the previously selected ...
1
vote
2
answers
74
views
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....
0
votes
1
answer
766
views
How to render a Map<enum, List> in FLutter?
I have this Account class
import 'package:project/models/category_model.dart';
enum AccountTypes {
cash,
banks,
}
class Account {
AccountTypes type;
double value;
List<BalnceCategory>...
0
votes
0
answers
150
views
How to display data in grid view column wise flutter not row wise
I want display data in gridview column wise from first column bottom to top , second column bottom top top and so on . But not row wise in flutter and also need to calculate the height of the ...
3
votes
1
answer
3k
views
Flutter Grid View Reorder & Drag Drop onto Another Item and Merge
I have been trying to add drag/drop support to my app, currently what I have come with is using this library:
reorderable_grid_view
I used this example code:
code link
The reason I used this library ...
1
vote
1
answer
328
views
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(
...
1
vote
2
answers
2k
views
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 ...
0
votes
1
answer
136
views
Adding a New Image and it changes all images at front page - Flutter
I am making demo application for experience.
So, the problem is that I am adding list as described in images(Screenshots). But when I add another new list with image so, it automatically changes ...
1
vote
1
answer
203
views
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 ...
2
votes
4
answers
3k
views
How to solve the grid view problem in flutter app?
I have a problem of grid view. I add lists as described in 1st screenshot, then the same list will be updated on the another page (as per second screenshot). However, as you can see overflow error, ...
-1
votes
2
answers
265
views
How to solve the grid view problem in flutter?
I have a problem of grid view. I add lists as described in 1st screenshot, then the same list will be updated on the another page (as per second screen shot). However, as you can see overflow error, ...
0
votes
1
answer
233
views
Flutter dynamic grid view with button below
Hello members am new bee to flutter i have dynamic movies list when i search movies list sometime i got 10 sometimes i got 2 values which correct but i want to have a button below this dynamic grid ...
2
votes
1
answer
469
views
How to build responsive Grid in flutter?
I want to build a grid with some images and captions in Flutter Web.
I want that in mobile it will show 2 column and in desktop 4.
How can I build this.
0
votes
1
answer
94
views
Image should be upload only that column which is clicked not in all
I write a code where I have colums in Gridviw and each column has the property to upload the image.
The image will be uploaded on that column which is clicked but in my code when I click any column to ...
0
votes
2
answers
287
views
How to do I add new column after endling of loop inside Gridview?
I want to add a new column after the end of the loop inside Gridview.
Right now in my code I add the append functionality in floatingActionButton but I want to add this append functionality in the ...
0
votes
1
answer
119
views
Add and remove columns childs inside Gridview
I write the code to add and remove columns inside Gridview at first load screen everything looks fine but when I remove any column on click the cross button inside the column it breaks the layout and ...
1
vote
1
answer
1k
views
flutter: RenderFlex children have non-zero flex but incoming height constraints are unbounded. in GridView widget
I want to create a grid view with four columns in two rows if I add a widget GridView() it shows an error on compile time.
it shows an error multiple times when the app is hot reload after saving file....
1
vote
1
answer
3k
views
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: ...
0
votes
4
answers
2k
views
Field '_areas' should be initialized because its type 'List<Area>' doesn't allow null
Flutter shows error Non-nullable instance field '_areas' must be initialized.
Maybe this is because of not defining null in lists areas what when defining null Like List? _areas;
it shows an error on ...
-1
votes
3
answers
423
views
Remove space for item in gridew.builder flutter
I am using Gridview.builder to show dynamic item count in a row with the help of crossAxisCount.
if crossAxisCount is 3 then 3 items are showing on grid. But It is showing top and bottom space(item ...
0
votes
2
answers
943
views
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 ...
0
votes
2
answers
3k
views
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 ...
2
votes
2
answers
195
views
flutter reordable_grid_view package child white background
I am using flutter recordable grid view package recordable_grid_view
And it puts a white background behind my custom widgets while dragging.
How to make it transparent or how to give it rounded ...
2
votes
0
answers
622
views
problem occurred evaluating root project 'android'. > problem occurred configuring project ':app'.Cannot invoke method afterEvaluate() on null object
Plugin project :firebase_core_web not found. Please update settings.gradle.
Plugin project :firebase_auth_web not found. Please update settings.gradle.
FAILURE: Build failed with an exception.
Where:
...
0
votes
1
answer
244
views
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 ...
5
votes
2
answers
5k
views
GridView.builder // Items are overflowing
Problem: I want to use widget in my gridview builder, but the items in the grid keep overflowing.
Image (Code below):
Code:
This is the GriView.builder:
return Expanded(
child: GridView.builder(
...
0
votes
0
answers
345
views
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 ...
3
votes
3
answers
2k
views
Skip an item in gridview without leaving a hole
I'm building a gridview displaying thumbnails and do not want to show the items at index 0. I have a different widget where I show thumbnails using a listview with the Visibility widget. That works!
...
0
votes
1
answer
149
views
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 ...
0
votes
2
answers
1k
views
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 ...