GutterTheme class
A theme class that defines how gutters should be calculated based on screen width.
GutterTheme provides configuration for the Gutter and SliverGutter components, controlling how responsive horizontal padding is calculated across different screen sizes.
See also:
doc/component/gutter.md
for more detailed documentation- Gutter, which uses this theme to apply responsive horizontal padding
- SliverGutter, which provides the same functionality for slivers
Constructors
- GutterTheme.new({double gutterCalc(double screenWidth) = _defaultGutterCalc, bool enabled = true})
-
Creates a GutterTheme with the specified configuration.
const
Properties
- enabled → bool
-
Whether gutters are enabled by default.
final
- gutterCalc → double Function(double screenWidth)
-
Function that calculates the gutter width based on screen width.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{double gutterCalc(double screenWidth)?, bool? enabled}) → GutterTheme - Creates a copy of this GutterTheme with the given fields replaced.
-
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