Open TijnvandenEijnde opened 9 months ago
Whenever you hardcode the themeMode
property of the BetterFeedback
widget to either ThemeMode.light
or ThemeMode.dark
it will work. However, when you have a dynamic value the described bug will occur. It seems that something is not rebuilding properly.
Version
3.0.0
Library
feedback
Flutter channel
stable
Flutter version
3.13.9
Platform
Android
Details
I have implemented dark mode in my application however it seems that the
feedbackSheetColor
from the light theme is applied whenever I switch to the dark theme. See the following code:main.dart
app_feedback_theme.dart
The strange thing is that the
feedbackSheetColor
from the dark theme is correctly applied on the bottom sheet, however, not on theControlsColumn
.If I change the property
feedBackSheetColor
property from the light theme fromfeedbackSheetColor: const Color(0xFFf2f2fa)
tofeedbackSheetColor: darkBackground
, I will get the following result:Unfortunately, this will give the light theme dark colors:
Steps to reproduce
flutter create project
main.dart
main.dart
Change theme
buttonOutput of
flutter doctor -v