SavePointsThemeData class

Scoped default styling for every SavePoints component beneath it.

Instead of repeating designStyle:, blur: and friends on every SavePointsDialog.show / SavePointsSnackbar.show / SavePointsBottomsheet.show call — or mutating the process-wide SnackDiaBottomConfig singleton — declare the defaults once in your widget tree:

SavePointsTheme(
  data: SavePointsThemeData(
    designStyle: ContentDesignStyle.glass,
    blur: 24,
    snackbarPosition: SnackbarPosition.top,
  ),
  child: MaterialApp(...),
);

Every component looks up the nearest SavePointsTheme via its BuildContext and uses these values as defaults. Anything passed explicitly to a show() call still wins, and any field left null here falls back to the component's built-in default — so adopting a theme is fully opt-in and backward compatible.

Because it is a normal InheritedWidget, the scope respects the widget tree: a subtree can wrap itself in a second SavePointsTheme to override the defaults for just that part of the app.

Annotations

Constructors

SavePointsThemeData({ContentDesignStyle? designStyle, double? blur, SnackbarPosition? snackbarPosition, Duration? snackbarDuration, bool? enableHapticFeedback, bool? barrierDismissible, bool? enablePulse})
Creates a set of default values. Every field is optional; a null field means "defer to the component's own default".
const

Properties

barrierDismissible → bool?
Default barrier-dismiss behaviour for dialogs.
final
blur → double?
Default backdrop blur sigma applied behind components.
final
designStyle → ContentDesignStyle?
Default visual style shared by dialogs, snackbars and bottom sheets.
final
enableHapticFeedback → bool?
Default haptic-feedback behaviour for snackbars.
final
enablePulse → bool?
Whether component icons loop a subtle scale + glow pulse.
final
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
snackbarDuration → Duration?
Default visible duration for snackbars.
final
snackbarPosition → SnackbarPosition?
Default screen edge snackbars appear at.
final

Methods

copyWith({ContentDesignStyle? designStyle, double? blur, SnackbarPosition? snackbarPosition, Duration? snackbarDuration, bool? enableHapticFeedback, bool? barrierDismissible, bool? enablePulse}) → SavePointsThemeData
Returns a copy 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.
override