FirestoreDataTable class
Constructors
-
FirestoreDataTable({Key? key, required Query<Object?> query, required Map<String, Widget> columnLabels, void onError(Object error, StackTrace stackTrace)?, bool canDeleteItems = true, List<Widget>? actions, int? sortColumnIndex, bool sortAscending = true, double dataRowHeight = kMinInteractiveDimension, double headingRowHeight = 56.0, double horizontalMargin = 24.0, double columnSpacing = 56.0, bool showCheckboxColumn = true, bool showFirstLastButtons = false, void onPageChanged(int page)?, int rowsPerPage = 10, DragStartBehavior dragStartBehavior = DragStartBehavior.start, Color? arrowHeadColor, double? checkboxHorizontalMargin, CellBuilder? cellBuilder, bool enableDefaultCellEditor = true, OnTapCell? onTapCell, OnSelectedRows? onSelectedRows})
-
A PaginatedDataTable that is connected to Firestore.
const
Properties
-
actions
→ List<Widget>?
-
Icon buttons to show at the top end side of the table. The header must
not be null to show the actions.
final
-
arrowHeadColor
→ Color?
-
Defines the color of the arrow heads in the footer.
final
-
canDeleteItems
→ bool
-
Whether documents can be removed from firestore using the table.
final
-
cellBuilder
→ CellBuilder?
-
When specified, the builder will be used to display your own widget for the cell
final
-
checkboxHorizontalMargin
→ double?
-
Horizontal margin around the checkbox, if it is displayed.
final
-
columnLabels
→ Map<String, Widget>
-
The columns and their labels based on the property name in Firestore
final
-
columnSpacing
→ double
-
The horizontal margin between the contents of each data column.
final
-
dataRowHeight
→ double
-
The height of each row (excluding the row that contains column headings).
final
-
dragStartBehavior
→ DragStartBehavior
-
Determines the way that drag start behavior is handled.
final
-
enableDefaultCellEditor
→ bool
-
When set to false onTapCell will have not effect, defaults to true
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
The table card's optional header.
final
-
headingRowHeight
→ double
-
The height of the heading row.
final
-
horizontalMargin
→ double
-
The horizontal margin between the edges of the table and the content
in the first and last cells of each row.
final
-
key
→ Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onError
→ void Function(Object error, StackTrace stackTrace)?
-
When specified, will be called whenever an interaction with Firestore failed,
when as when trying to delete an item without the proper rights.
final
-
onPageChanged
→ void Function(int page)?
-
Invoked when the user switches to another page.
final
-
onSelectedRows
→ OnSelectedRows?
-
final
-
onTapCell
→ OnTapCell?
-
When specified, this will override the default cell editor
final
-
query
→ Query<Object?>
-
The firestore query that will be displayed
final
-
rowsPerPage
→ int
-
The number of rows to show on each page.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
showCheckboxColumn
→ bool
-
Whether the widget should display checkboxes for selectable rows.
final
-
showFirstLastButtons
→ bool
-
Flag to display the pagination buttons to go to the first and last pages.
final
-
sortAscending
→ bool
-
Whether the column mentioned in sortColumnIndex, if any, is sorted
in ascending order.
final
-
sortColumnIndex
→ int?
-
The current primary sort key's column.
final