FlatGridViewStyle class
FlatGridViewStyle defines the styling for containers used in FlatGridViews.
This class offers customization for the appearance of containers within a FlatGridView.
Properties:
- decoration: The decoration to paint behind the main container. Suitable for complex backgrounds like gradients or images.
- color: The color to paint behind the child. Ideal for simple solid colors. Not used simultaneously with decoration.
- padding: Empty space to inscribe inside the decoration. Adds to any inherent padding in the decoration and positions the child within.
- gridViewPadding: Space between the main container and the grid view. Influences the layout of the grid view within the container.
Constructors
- FlatGridViewStyle({BoxDecoration? decoration, Color color = Colors.transparent, EdgeInsets padding = const EdgeInsets.all(0), EdgeInsets gridViewPadding = const EdgeInsets.all(8.0)})
-
const
Properties
- color → Color
-
final
- decoration → BoxDecoration?
-
final
- gridViewPadding → EdgeInsets
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- padding → EdgeInsets
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited