when I put PlutoGrid into column it duplicated
I have tried ListView and stack and Everytime it duplicate
Related
Column can also have listview.builder, if the column builds all of its children at a time, does it build listview items at once too?
Column builds all of its children at once, but listview.builder builds lazily.
when you pass childrens: to ListView, it builds all at once. Only difference is Column shows all of its childrens in the screen while ListView has scroll functionality.
ListView takes a specific space of screen with 2 constraints on that top space & bottom space.
============ (top constraint/pixel)
||||
||||
<This is the space of you ListView>
||||
||||
============ (bottom constraint/pixel)
If you scroll up, it will detect that items have been scrolled through pixel constraints and lazy load the next items. So if your parent widget is whatever Container, Row, Column, it will always be able to lazy loading. And that is the main difference between Column & ListView.builder, Column build everything in 1 time, and ListView.builder can use lazy loading.
I want to make a table with moving rows and columns inside, it also should be able to add a row or column with a button and delete it likewise. Internet only suggests Datatable or DataGrid, but I need to use the Table Widget in Flutter and Row and Column widgets if required. Can someone help me?
So I am implementing sort of a data table in flutter. it shows data based on time in days in rows and some other variant in columns. so naturally, first row is name of the days, and then in first column are values of the other variant. What properties of GridView.count can I use to make first row and column stay fixed when scrolling the grid. so that you can always see the data variants in screen.
I have gone over all properties of GridView.count but I can't find anything.
PS: I don't want to change to something else Like GridView.builder..... because the code is too far gone with how it renders the dynamic data in the rest of rows and columns.
Please Use data table instead of Grid
https://api.flutter.dev/flutter/material/DataTable-class.html.
I have three columns inside a row. The contents of the columns are generated by a listbuilder getting data from a database. Right now each column scrolls individually but I need them to scroll as one. Is this even possible in flutter or should I have made a gridview instead of three separate columns?
See https://stackoverflow.com/a/54879937/6447123
It works using a NotificationListener<ScrollNotification> plus an independent ScrollController for each scrollable Widget that should be synchronized.
You can use TrackingScrollController too
I have a Table in Flutter and I want to have it expand it's row so that the table takes up the full space that's available for it. Given that TableRow isn't a widget I can't use Expanded on it the way I would for Widgets in a Column. Is there another way to get similar behavior for a Table?
According to my information, you need to use the Row and Columns widgets instead of the Table widget and in addition to using the Expanded widget, or you will need to set a specific height for each row separately and it cannot be Flexible, Using Container in TableRow children