FeedbackOSTheme class

Runtime constants and user-defined theming for the FeedbackOS Flutter SDK.

Propagates colors and styles to all FeedbackOS widgets without forcing colors. If user colors are not provided, sensible defaults are used as fallbacks.

Constructors

FeedbackOSTheme({Color? primaryColor, Color? primaryLightColor, Color? primaryDarkColor, Color? primaryLightBorderColor, Color? onPrimaryColor, Color? backgroundColor, Color? surfaceColor, Color? secondaryBackgroundColor, Color? borderColor, Color? borderMutedColor, Color? titleColor, Color? textColor, Color? secondaryTextColor, Color? mutedTextColor, Color? placeholderColor, Color? errorColor, Color? errorBackgroundColor, Color? successColor, Color? successBackgroundColor, Color? warningColor, Color? warningBackgroundColor, Color? infoColor, Color? infoBackgroundColor, Color? buttonColor, Color? disabledButtonColor, Color? statusOpenColor, Color? statusPlannedColor, Color? statusInProgressColor, Color? statusShippedColor, Color? statusClosedColor})
const
FeedbackOSTheme.dark()
Predefined dark theme for dark mode applications matching FeedbackOS in-app specs.
factory
FeedbackOSTheme.fromTheme(ThemeData theme)
Derives theme colors from Flutter's standard ThemeData.
factory
FeedbackOSTheme.light()
Predefined light theme matching default styling.
factory

Properties

accentColor → Color
Accent brand color (e.g. mint green).
no setter
accentOnColor → Color
Foreground color on accent background.
no setter
accentSoftColor → Color
Soft accent background for active chips and badges.
no setter
backgroundColor → Color
Main screen/scaffold background color.
final
borderColor → Color
Standard border color for cards, dividers, and outlines.
final
borderMutedColor → Color
Muted border color for inactive controls or secondary borders.
final
buttonColor → Color
Primary action button background color.
final
cardSecondaryColor → Color
Secondary card surface color.
no setter
disabledButtonColor → Color
Disabled state background color for buttons.
final
errorBackgroundColor → Color
Light tint background for error banners and bug badges.
final
errorColor → Color
Destructive/error and bug indicator color.
final
hashCode → int
The hash code for this object.
no setterinherited
infoBackgroundColor → Color
Light tint background for in-progress badges.
final
infoColor → Color
Informational and in-progress status color.
final
isDark → bool
Whether this theme represents a dark theme based on backgroundColor luminance.
no setter
mutedTextColor → Color
Muted text, captions, and secondary icon color.
final
onPrimaryColor → Color
Foreground content color when placed on primaryColor.
final
placeholderColor → Color
Placeholder, hint text, and empty-state icon color.
final
primaryColor → Color
Primary accent/brand color.
final
primaryDarkColor → Color
Dark shade of primary color used for high-contrast accents.
final
primaryLightBorderColor → Color
Border color for light primary containers.
final
primaryLightColor → Color
Light tint of primary color used for subtle highlights and chips.
final
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secondaryBackgroundColor → Color
Secondary/subtle background for chips, inputs, and segment selectors.
final
secondaryTextColor → Color
Secondary body text color.
final
statusClosedColor → Color
no setter
statusInProgressColor → Color
no setter
statusOpenColor → Color
no setter
statusPlannedColor → Color
no setter
statusShippedColor → Color
no setter
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
successBackgroundColor → Color
Light tint background for success states and shipped badges.
final
successColor → Color
Success and shipped status color.
final
surfaceColor → Color
Card, dialog, sheet, and surface container background color.
final
textColor → Color
Primary body and readable text color.
final
titleColor → Color
High-contrast heading and title text color.
final
warningBackgroundColor → Color
Light tint background for warning states and planned badges.
final
warningColor → Color
Warning, pending, and planned status color.
final

Methods

copyWith({Color? primaryColor, Color? primaryLightColor, Color? primaryDarkColor, Color? primaryLightBorderColor, Color? onPrimaryColor, Color? backgroundColor, Color? surfaceColor, Color? secondaryBackgroundColor, Color? borderColor, Color? borderMutedColor, Color? titleColor, Color? textColor, Color? secondaryTextColor, Color? mutedTextColor, Color? placeholderColor, Color? errorColor, Color? errorBackgroundColor, Color? successColor, Color? successBackgroundColor, Color? warningColor, Color? warningBackgroundColor, Color? infoColor, Color? infoBackgroundColor, Color? buttonColor, Color? disabledButtonColor, Color? statusOpenColor, Color? statusPlannedColor, Color? statusInProgressColor, Color? statusShippedColor, Color? statusClosedColor}) → FeedbackOSTheme
Creates a copy of this theme with the given fields replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
statusBackgroundColor(String status) → Color
Resolves the background color for a roadmap/item status badge.
statusColor(String status) → Color
Resolves the primary accent/dot color for a given status. Open: #8A8F98 Planned: #4DA7FC In progress: #F1CA4B Shipped: #26A644 Closed: #62666D
statusForegroundColor(String status) → Color
Resolves the foreground/text color for a roadmap/item status badge.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

current ↔ FeedbackOSTheme
Returns the current runtime theme, or the default fallback if unset.
getter/setter pair

Static Methods

of(BuildContext context) → FeedbackOSTheme
Resolves the effective FeedbackOSTheme from the BuildContext.