v0.0.2app_feedback
उपयोगकर्ताओं से ऐप प्रतिक्रिया प्राप्त करने के लिए एक Flutter पैकेज।
उपयोगकर्ताओं से ऐप प्रतिक्रिया प्राप्त करने के लिए एक Flutter पैकेज।
{"sdk":"flutter"}^2.0.6^7.0.1{"sdk":"flutter"}यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
Open Source Love Hits GitHub last commit GitHub code size in bytes GitHub stars GitHub forks
pub package Likes Popularity Pub points
A Flutter package for getting app feedback from users. It provides the utility to display feedback form depending upon the requirement. Feedback form can be displayed instantly at any time or after certain period of time.
https://playerzon.com/asset/download.png
dependencies:
app_feedback: ^0.0.2
import 'package:app_feedback/app_feedback.dart';
AppFeedbackAppFeedback feedbackForm = AppFeedback.instance;
@override
void initState() {
/// `duration` is set to 10 seconds for testing purpose.
/// Change this duration on the basis of how often you want to ask user for his feedback.
/// For example duration can be 15 days, 1 or 2 month etc.
feedbackForm.init(FeedbackConfig(duration: Duration(seconds: 10)));
super.initState();
}
void tryDisplay() {
feedbackForm.tryDisplay(context, onSubmit: (UserFeedback feedback) {
print(feedback);
});
}
tryDisplay method.TextButton(
onPressed: tryDisplay,
child: Text("Try Display Form")
),
Note
feedbackFormwill only be displayed once provided duration in step 3 has passed.- Once
feedbackFormis displayed then it won't be displayed until the next cycle of the duration is completed.- The
configdata provided in first time initialization offeedbackFormis stored in local cache and other initialization data will be ignored.
Invoke clearConfig method only if there is a need to clear the old config values otherwise ignore this.
void clearConfig() async {
await feedbackForm.clearConfig();
}
Note
- After clearing the configuration it won't be display the feedback form ever until new initialization.
- Clear configuration form doesn't mean reset the duration cycle. It just removes the all configuration from the cache.
- To reset duration and other configuration do call the
feedbackForm.init()method with newconfigvalues.
feedbackFormIf there is a need to display feedbackForm instantly on any time then invoke feedbackForm.display method.
By calling this method won't reset the duration cycle provided in above step 3.
To invoke below method there is no need to initialize the feedbackForm.
void launchAppFeedback() {
feedbackForm.display(context,
option: Option(
maxRating: 10,
ratingButtonTheme: RatingButtonThemeData.defaultTheme,
), onSubmit: (feedback) {
print(feedback);
});
}
| Feedback form | Customised Rating button | Customised Rating button |
|---|---|---|
| https://github.com/TheAlphamerc/app_feedback/blob/main/screenshots/screenshot-1.jpg?raw=true | https://github.com/TheAlphamerc/app_feedback/blob/main/screenshots/screenshot-2.jpg?raw=true | https://github.com/TheAlphamerc/app_feedback/blob/main/screenshots/screenshot-3.jpg?raw=true |
| Hidden feedback field | Customised feedback form | Customised feedback form |
|---|---|---|
| https://github.com/TheAlphamerc/app_feedback/blob/main/screenshots/screenshot-4.jpg?raw=true | https://github.com/TheAlphamerc/app_feedback/blob/main/screenshots/screenshot-6.jpg?raw=true | https://github.com/TheAlphamerc/app_feedback/blob/main/screenshots/screenshot-5.jpg?raw=true |
| Name | Stars | Pub |
|---|---|---|
| Filter List | GitHub stars | pub package |
| Empty widget | GitHub stars | pub package |
| Add Thumbnail | GitHub stars | pub package |
| Country Provider | GitHub stars | pub package |
I welcome and encourage all pull requests. It usually will take me within 24-48 hours to respond to any issue or request.
Sonu Sharma (Twitter) (Youtube) (Insta) Twitter Follow
If you found this project helpful or you learned something from the source code and want to thank me, consider buying me a cup of :coffee: