File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ class ControlsColumn extends StatelessWidget {
1313 super .key,
1414 required this .mode,
1515 required this .activeColor,
16+ required this .backgroundColor,
1617 required this .onColorChanged,
1718 required this .onUndo,
1819 required this .onControlModeChanged,
@@ -33,13 +34,15 @@ class ControlsColumn extends StatelessWidget {
3334 final VoidCallback onClearDrawing;
3435 final List <Color > colors;
3536 final Color activeColor;
37+ final Color backgroundColor;
3638 final bool showModeButtons;
3739 final FeedbackMode mode;
3840
3941 @override
4042 Widget build (BuildContext context) {
4143 final isNavigatingActive = FeedbackMode .navigate == mode;
4244 return Card (
45+ color: backgroundColor,
4346 margin: EdgeInsets .zero,
4447 shape: const RoundedRectangleBorder (
4548 borderRadius: BorderRadius .all (
Original file line number Diff line number Diff line change @@ -219,6 +219,8 @@ class FeedbackWidgetState extends State<FeedbackWidget>
219219 progress: sheetProgress,
220220 minScale: .7 ,
221221 child: ControlsColumn (
222+ backgroundColor: FeedbackTheme .of (context)
223+ .feedbackMenuBackgroundColor,
222224 mode: mode,
223225 activeColor: painterController.drawColor,
224226 showModeButtons: widget.showModeButtons,
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ class FeedbackThemeData {
3535 FeedbackThemeData (
3636 {this .background = Colors .grey,
3737 this .feedbackSheetColor = _lightGrey,
38+ this .feedbackMenuBackgroundColor = _lightGrey,
3839 this .feedbackSheetHeight = .25 ,
3940 this .activeFeedbackModeColor = _blue,
4041 this .drawColors = _defaultDrawColors,
@@ -97,6 +98,10 @@ class FeedbackThemeData {
9798 /// his feedback and thoughts.
9899 final Color feedbackSheetColor;
99100
101+ /// The background color of the column containing the action buttons
102+ /// in the feedback menu.
103+ final Color feedbackMenuBackgroundColor;
104+
100105 /// The height of the bottom sheet as a fraction of the screen height.
101106 ///
102107 /// Values between .2 and .3 are usually ideal.
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import 'package:flutter/material.dart';
77void main () {
88 Widget create ({
99 Color ? activeColor,
10+ Color ? backgroundColor,
1011 FeedbackMode ? mode,
1112 bool ? showNavigateButton,
1213 ValueChanged <Color >? onColorChanged,
@@ -19,6 +20,7 @@ void main() {
1920 return FeedbackLocalization (
2021 child: ControlsColumn (
2122 activeColor: activeColor ?? Colors .red,
23+ backgroundColor: backgroundColor ?? Colors .grey,
2224 mode: mode ?? FeedbackMode .draw,
2325 showModeButtons: showNavigateButton ?? true ,
2426 colors:
You can’t perform that action at this time.
0 commit comments