NPS Plugin
A Flutter package 💙 100% native to display a review collection in style NPS (Net Promoter Score).
This package allows you to show a modal with a rating scale of 0 to 10, as well as optional fields for feedback and phone number. It is compatible with web, desktop and mobile platforms, and also supports the dark theme.
Installation
To use this package, add nps_plugin
as a dependency in your pubspec.yaml
file.
flutter pub add nps_plugin
Then import the package into your code:
import 'package:nps_plugin/nps_plugin.dart';
How to use
Here is a basic example of how to use the package to display the NPS rating modal:
await npsStart(
context,
npsTitle: 'So far, how likely are you to recommend the ',
owner: 'Flutter',
feedbackTitle: 'Leave your feedback',
showInputPhone: false,
);
You can customize the title, system or company name, and other settings as needed.
Compatibilities
This package is compatible with the following platforms:
- Mobile (Android and iOS)
- Desktop (Windows, macOS and Linux)
- Web
Dark Theme
Compatibility with Flutter's dark theme. It automatically adjusts to your app's theme.
Material 2 e 3
Compatibility with versions 2 and 3 of Google Material.
Contributions and Problems
This package is open source and you are encouraged to report problems or submit suggestions for improvements via issues on GitHub Issues.
License
This package is distributed under the MIT License. See the LICENSE file for details.