StoryMakerTheme class

A theme class for customizing the appearance of StoryMaker.

This class allows you to customize colors, styles, shadows, and other visual properties to match your app's design system (e.g., neumorphic design).

Constructors

StoryMakerTheme({Color backgroundColor = Colors.black, Color buttonColor = Colors.white, Color buttonTextColor = Colors.black, Color iconColor = Colors.white, Color textColor = Colors.white, Color borderColor = Colors.white, double buttonBorderRadius = 18.0, double toolbarButtonBorderRadius = 32.0, BoxShadow? buttonShadow, BoxShadow? toolbarButtonShadow, ButtonStyle? doneButtonStyle, BoxDecoration? toolbarButtonStyle, Color overlayColor = const Color(0x66000000), Color textInputOverlayColor = const Color(0x66000000), Color removeWidgetColor = Colors.red, double removeWidgetBorderRadius = 30.0, Color stickerSelectorBackgroundColor = const Color(0x4D000000), Color stickerSelectorBorderColor = const Color(0x80FFFFFF), Color colorPickerBackgroundColor = const Color(0x4D000000), Color gradientSelectorBackgroundColor = const Color(0x4D000000), double safeAreaBorderRadius = 24.0})
Creates a theme with the specified properties.
const
StoryMakerTheme.dark()
Creates a dark theme variant.
factory
StoryMakerTheme.defaultTheme()
Creates a default theme with standard Material Design colors.
factory
StoryMakerTheme.light()
Creates a light theme variant.
factory

Properties

backgroundColor Color
The background color of the StoryMaker.
final
borderColor Color
The color of borders.
final
buttonBorderRadius double
The border radius of buttons (e.g., done button).
final
buttonColor Color
The color of buttons (e.g., done button).
final
buttonShadow BoxShadow?
The shadow for buttons (e.g., done button).
final
buttonTextColor Color
The text color of buttons.
final
colorPickerBackgroundColor Color
The background color of the color picker.
final
doneButtonStyle ButtonStyle?
Custom button style for the done button. If null, default style will be used based on buttonColor, buttonTextColor, etc.
final
gradientSelectorBackgroundColor Color
The background color of the gradient selector.
final
hashCode int
The hash code for this object.
no setterinherited
iconColor Color
The color of icons in toolbars.
final
overlayColor Color
The color of overlays (e.g., when text input is active).
final
removeWidgetBorderRadius double
The border radius of the remove widget.
final
removeWidgetColor Color
The color of the remove widget (delete indicator).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
safeAreaBorderRadius double
The border radius for the safe area clip (rounded corners).
final
stickerSelectorBackgroundColor Color
The background color of the sticker selector.
final
stickerSelectorBorderColor Color
The border color of sticker selector items.
final
textColor Color
The color of text elements.
final
textInputOverlayColor Color
The color of the overlay when text input is active.
final
toolbarButtonBorderRadius double
The border radius of toolbar buttons.
final
toolbarButtonShadow BoxShadow?
The shadow for toolbar buttons.
final
toolbarButtonStyle BoxDecoration?
Custom decoration for toolbar buttons. If null, default decoration will be used based on toolbarButtonStyle properties.
final

Methods

copyWith({Color? backgroundColor, Color? buttonColor, Color? buttonTextColor, Color? iconColor, Color? textColor, Color? borderColor, double? buttonBorderRadius, double? toolbarButtonBorderRadius, BoxShadow? buttonShadow, BoxShadow? toolbarButtonShadow, ButtonStyle? doneButtonStyle, BoxDecoration? toolbarButtonStyle, Color? overlayColor, Color? textInputOverlayColor, Color? removeWidgetColor, double? removeWidgetBorderRadius, Color? stickerSelectorBackgroundColor, Color? stickerSelectorBorderColor, Color? colorPickerBackgroundColor, Color? gradientSelectorBackgroundColor, double? safeAreaBorderRadius}) StoryMakerTheme
Creates a copy of this theme with the given fields replaced with new values.
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