M3ECarouselTheme class
Theme values for M3ECarousel.
- Inheritance
-
- Object
- M3EThemeExtension<
M3ECarouselTheme> - M3ECarouselTheme
- Annotations
Constructors
- M3ECarouselTheme({double uncontainedItemExtent = defaultUncontainedItemExtent, double uncontainedShrinkExtent = defaultUncontainedShrinkExtent, double borderRadiusValue = defaultBorderRadiusValue, int scrollAnimationDuration = defaultScrollAnimationDuration, int singleSwipeGestureSensitivityRange = defaultSingleSwipeGestureSensitivityRange, EdgeInsetsGeometry itemPadding = const EdgeInsets.symmetric(horizontal: 4), double elevation = 0, Clip itemClipBehavior = Clip.antiAlias, double outlineWidth = defaultOutlineWidth, double hoverElevation = defaultHoverElevation, double focusThickness = defaultFocusThickness, double focusOffset = defaultFocusOffset, double hoverStateOpacity = defaultHoverStateOpacity, double focusStateOpacity = defaultFocusStateOpacity, double pressedStateOpacity = defaultPressedStateOpacity, double disabledOpacity = defaultDisabledOpacity, double disabledOutlineOpacity = defaultDisabledOutlineOpacity, double smallMinWidth = defaultSmallMinWidth, double smallMaxWidth = defaultSmallMaxWidth, double largeMaxWidth = defaultLargeMaxWidth, double itemGap = defaultItemGap, double fullScreenGap = defaultFullScreenGap, double showAllGap = defaultShowAllGap, double showAllPadding = defaultShowAllPadding, double headerInset = defaultHeaderInset, double arrowSize = defaultArrowSize, double expandedBreakpoint = defaultExpandedBreakpoint, double minAspect = defaultMinAspect, double maxAspect = defaultMaxAspect, double fullScreenRadius = defaultFullScreenRadius})
-
M3ECarouselTheme.
const
Properties
- arrowSize → double
-
Header arrow target.
final
- borderRadius → BorderRadius
-
The borderRadius.
no setter
- borderRadiusValue → double
-
borderRadiusValue.
final
- disabledOpacity → double
-
Disabled content opacity.
final
- disabledOutlineOpacity → double
-
Disabled outline opacity.
final
- elevation → double
-
elevation.
final
- expandedBreakpoint → double
-
Width where the extended layout starts.
final
- focusOffset → double
-
Gap outside the item before the focus ring.
final
- focusStateOpacity → double
-
Focus state-layer opacity.
final
- focusThickness → double
-
Focus ring thickness.
final
- fullScreenGap → double
-
Kept so existing themes still construct. Full-screen items meet edge to
edge; this value is not inserted between them.
final
- fullScreenRadius → double
-
Full-screen corner radius.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerInset → double
-
Header leading inset.
final
- hoverElevation → double
-
Elevation while hovered.
final
- hoverStateOpacity → double
-
Hover state-layer opacity.
final
- itemClipBehavior → Clip
-
itemClipBehavior.
final
- itemGap → double
-
Gap between items.
final
- itemPadding → EdgeInsetsGeometry
-
itemPadding.
final
- largeMaxWidth → double
-
Largest large-item width.
final
- maxAspect → double
-
Maximum multi-aspect ratio.
final
- minAspect → double
-
Minimum multi-aspect ratio.
final
- outlineWidth → double
-
Outline width.
final
- pressedStateOpacity → double
-
Pressed state-layer opacity.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollAnimationDuration → int
-
scrollAnimationDuration.
final
- shape → ShapeBorder
-
The shape.
no setter
- showAllGap → double
-
Gap above Show all.
final
- showAllPadding → double
-
Padding inside Show all.
final
- singleSwipeGestureSensitivityRange → int
-
singleSwipeGestureSensitivityRange.
final
- smallMaxWidth → double
-
Largest small-item width.
final
- smallMinWidth → double
-
Smallest small-item width.
final
- uncontainedItemExtent → double
-
uncontainedItemExtent.
final
- uncontainedShrinkExtent → double
-
uncontainedShrinkExtent.
final
Methods
-
backgroundColor(
M3EColorScheme scheme) → Color - backgroundColor.
-
containerPaddingFor(
M3ECarouselType type) → EdgeInsets - Container padding around the scroll track.
-
copyWith(
{double? uncontainedItemExtent, double? uncontainedShrinkExtent, double? borderRadiusValue, int? scrollAnimationDuration, int? singleSwipeGestureSensitivityRange, EdgeInsetsGeometry? itemPadding, double? elevation, Clip? itemClipBehavior, double? outlineWidth, double? hoverElevation, double? focusThickness, double? focusOffset, double? hoverStateOpacity, double? focusStateOpacity, double? pressedStateOpacity, double? disabledOpacity, double? disabledOutlineOpacity, double? smallMinWidth, double? smallMaxWidth, double? largeMaxWidth, double? itemGap, double? fullScreenGap, double? showAllGap, double? showAllPadding, double? headerInset, double? arrowSize, double? expandedBreakpoint, double? minAspect, double? maxAspect, double? fullScreenRadius}) → M3ECarouselTheme -
Returns a copy with non-null fields replaced.
override
-
lerp(
M3ECarouselTheme? other, double t) → M3ECarouselTheme -
Linearly interpolates between this theme and
other.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
overlayColor(
M3EColorScheme scheme) → WidgetStateProperty< Color?> - overlayColor.
-
radiusFor(
M3ECarouselType type) → double -
Corner radius for
type. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultArrowSize → const double
- Header arrow target size.
- defaultBorderRadiusValue → const double
- defaultBorderRadiusValue.
- defaultDisabledOpacity → const double
- Disabled content opacity.
- defaultDisabledOutlineOpacity → const double
- Disabled outline opacity.
- defaultExpandedBreakpoint → const double
- Width at which more items fit on screen.
- defaultFocusOffset → const double
- Gap between the item and the focus ring.
- defaultFocusStateOpacity → const double
- Focus state-layer opacity.
- defaultFocusThickness → const double
- Focus ring thickness.
- defaultFullScreenGap → const double
- Gap between full-screen items.
- defaultFullScreenRadius → const double
- Full-screen corner radius.
- defaultHeaderInset → const double
- Header leading inset.
- defaultHoverElevation → const double
- Hover elevation. Other states stay flat.
- defaultHoverStateOpacity → const double
- Hover state-layer opacity.
- defaultItemGap → const double
- Gap between items.
- defaultLargeMaxWidth → const double
- Large item maximum width.
- defaultMaxAspect → const double
- Widest multi-aspect ratio (16:9).
- defaultMinAspect → const double
- Narrowest multi-aspect ratio (9:16).
- defaultOutlineWidth → const double
- Outline width.
- defaultPressedStateOpacity → const double
- Pressed state-layer opacity.
- defaults → const M3ECarouselTheme
- defaults.
- defaultScrollAnimationDuration → const int
- defaultScrollAnimationDuration.
- defaultShowAllGap → const double
- Space between the carousel and Show all.
- defaultShowAllPadding → const double
- Padding inside the Show all control.
- defaultSingleSwipeGestureSensitivityRange → const int
- defaultSingleSwipeGestureSensitivityRange.
- defaultSmallMaxWidth → const double
- Small item maximum width.
- defaultSmallMinWidth → const double
- Small item minimum width.
- defaultUncontainedItemExtent → const double
- defaultUncontainedItemExtent.
- defaultUncontainedShrinkExtent → const double
- defaultUncontainedShrinkExtent.