DataGrid class
Styled data table built on Table.fromTextArray.
Constructors
-
DataGrid({required List<
DataColumn> columns, required List<DataRow> rows, String headerColor = '1A237E', String oddRowColor = 'F5F7FA', String borderColor = 'CFD8DC', EdgeInsets cellPadding = const EdgeInsets.symmetric(horizontal: 6, vertical: 5)}) -
DataGrid API.
const
Properties
- borderColor → String
-
borderColor API.
final
- cellPadding → EdgeInsets
-
cellPadding API.
final
-
columns
→ List<
DataColumn> -
columns API.
final
-
flowChildren
→ List<
Widget> ? -
Children MultiPage should flow individually (vertical columns).
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerColor → String
-
headerColor API.
final
- oddRowColor → String
-
oddRowColor API.
final
-
rows
→ List<
DataRow> -
rows API.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
layout(
Context context, BoxConstraints constraints) → PwBox -
layout API.
override
-
layoutSpan(
Context context, BoxConstraints constraints) → SpanSlice? -
Split across pages when
constraintshas a bounded height.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paintStamp(
Context context, double pageW, double pageH) → void -
Stamp paint. The default lays out and paints glyph by glyph.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited