FeedbackThemeData class

Holds visual customisation for flutter_feedback_kit widgets.

Pass a FeedbackThemeData to FeedbackButton.theme, or wrap any part of your widget tree with FeedbackTheme to apply colours and spacing without touching the global ThemeData.

FeedbackTheme(
  data: FeedbackThemeData(
    submitButtonColor: Colors.teal,
    contentPadding: EdgeInsets.all(24),
  ),
  child: FeedbackWidget(backend: myBackend, appVersion: '1.0.0'),
)
Annotations

Constructors

FeedbackThemeData({Color? backgroundColor, Color? submitButtonColor, EdgeInsets contentPadding = const EdgeInsets.all(16), BorderRadius sheetBorderRadius = const BorderRadius.vertical(top: Radius.circular(16))})
const

Properties

backgroundColor Color?
Background colour of the feedback form container. Falls back to ColorScheme.surface when null.
final
contentPadding EdgeInsets
Padding applied around the form content.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sheetBorderRadius BorderRadius
Corner radius of the bottom sheet opened by FeedbackButton.
final
submitButtonColor Color?
Colour of the submit FilledButton. Falls back to ColorScheme.primary when null.
final

Methods

copyWith({Color? backgroundColor, Color? submitButtonColor, EdgeInsets? contentPadding, BorderRadius? sheetBorderRadius}) FeedbackThemeData
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