Feedback
Opened | Closed |
---|---|
Description
This module provides a widget and the functionality to add button to the side of the UI to collect feedback from your users.
Dependencies
This module do not depend on any external library
Get started
-
Create a folder called
vendors
in your project -
Extract this module inside
vendors/feedback_module
-
Add the dependency in your’s app
pubspec.yml
:
- Run
flutter pub get
and you are ready to use the module.
Configurations
This widget should wrap your UI. You can customize by passing:
- optional question to put on the title
- optional label for the “send” button
- required
onSendFeedback
callback to get the value sent by the user - required
child
widget with your UI
Colors
This widget will use your theme data to set the colors. But if you need to tweak something you can do it directly in the code.
For the “Feedback” button, the widget will use the secondary
color and onSecondary
for the color of the label.