Skip to content

Commit

Permalink
bottom sheet with text input style option
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitbhoite committed Oct 25, 2023
1 parent 7bde416 commit 34f013a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions feedback/lib/src/feedback_builder/string_feedback.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class _StringFeedbackState extends State<StringFeedback> {
FeedbackTheme.of(context).bottomSheetDescriptionStyle,
),
TextField(
style: FeedbackTheme.of(context).bottomSheetTextInputStyle,
key: const Key('text_input_field'),
maxLines: 2,
minLines: 2,
Expand Down
8 changes: 8 additions & 0 deletions feedback/lib/src/theme/feedback_theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ const _defaultBottomSheetDescriptionStyle = TextStyle(
color: Colors.black,
);

const _defaultBottomSheetTextInputStyle = TextStyle(
color: Colors.black,
);

/// See the following image to get a better understanding of the properties.
/// ![Theme](https://raw.githubusercontent.com/ueman/feedback/master/img/theme_description.png "Theme")
class FeedbackThemeData {
Expand All @@ -35,6 +39,7 @@ class FeedbackThemeData {
this.activeFeedbackModeColor = _blue,
this.drawColors = _defaultDrawColors,
this.bottomSheetDescriptionStyle = _defaultBottomSheetDescriptionStyle,
this.bottomSheetTextInputStyle = _defaultBottomSheetTextInputStyle,
this.sheetIsDraggable = true,
Color? dragHandleColor,
ColorScheme? colorScheme})
Expand Down Expand Up @@ -102,6 +107,9 @@ class FeedbackThemeData {
/// Text Style of the text above of the feedback text input.
final TextStyle bottomSheetDescriptionStyle;

/// Text Style of the text input.
final TextStyle bottomSheetTextInputStyle;

/// Whether or not the bottom sheet is draggable.
///
/// If this is set to true, the user feedback form will be wrapped in a
Expand Down

0 comments on commit 34f013a

Please sign in to comment.