IxModalTheme class
Theme extension that exposes Siemens IX modal dialog primitives.
- Inheritance
-
- Object
- ThemeExtension<
IxModalTheme> - IxModalTheme
Constructors
-
IxModalTheme({required Color backgroundColor, required Color borderColor, required double borderWidth, required double borderRadius, required List<
BoxShadow> shadow, required Color backdropColor, required double dialogPadding, required EdgeInsets insetPadding, required EdgeInsets headerPadding, required double headerGap, required EdgeInsets contentPadding, required double maxHeightFraction, required Map<IxModalSize, IxModalSizeSpec> sizes, required double elevation, required AlignmentGeometry alignment, required Color iconColor, required Color iconBackgroundColor, required Color iconBackgroundColorHover, required double closeIconBorderRadius, required TextStyle titleTextStyle, required TextStyle contentTextStyle, required Color barrierColor, required BoxConstraints constraints}) -
const
-
IxModalTheme.fromPalette({required Map<
IxThemeColorToken, Color> palette, required IxTypography typography}) -
factory
Properties
- alignment → AlignmentGeometry
-
final
- backdropColor → Color
-
final
- backgroundColor → Color
-
final
- barrierColor → Color
-
final
- borderColor → Color
-
final
- borderRadius → double
-
final
- borderWidth → double
-
final
- closeIconBorderRadius → double
-
final
- constraints → BoxConstraints
-
final
- contentPadding → EdgeInsets
-
final
- contentTextStyle → TextStyle
-
final
- dialogPadding → double
-
final
- elevation → double
-
final
-
final
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerGap → double
-
final
- headerPadding → EdgeInsets
-
final
- iconBackgroundColor → Color
-
final
- iconBackgroundColorHover → Color
-
final
- iconColor → Color
-
final
- insetPadding → EdgeInsets
-
final
- maxHeightFraction → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
shadow
→ List<
BoxShadow> -
final
-
sizes
→ Map<
IxModalSize, IxModalSizeSpec> -
final
- titleTextStyle → TextStyle
-
final
- type → Object
-
The extension's type.
no setterinherited
Methods
-
copyWith(
{Color? backgroundColor, Color? borderColor, double? borderWidth, double? borderRadius, List< BoxShadow> ? shadow, Color? backdropColor, double? dialogPadding, EdgeInsets? insetPadding, EdgeInsets? headerPadding, double? headerGap, EdgeInsets? contentPadding, double? maxHeightFraction, Map<IxModalSize, IxModalSizeSpec> ? sizes, double? elevation, AlignmentGeometry? alignment, Color? iconColor, Color? iconBackgroundColor, Color? iconBackgroundColorHover, double? closeIconBorderRadius, TextStyle? titleTextStyle, TextStyle? contentTextStyle, Color? barrierColor, BoxConstraints? constraints}) → IxModalTheme -
Creates a copy of this theme extension with the given fields
replaced by the non-null parameter values.
override
-
lerp(
covariant ThemeExtension< IxModalTheme> ? other, double t) → IxModalTheme -
Linearly interpolate with another ThemeExtension object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
size(
IxModalSize modalSize) → IxModalSizeSpec -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited