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.
To use this package, add nps_plugin as a dependency in your pubspec.yaml file.
flutter pub add nps_pluginThen import the package into your code:
import 'package:nps_plugin/nps_plugin.dart';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.
This package is compatible with the following platforms:
- Mobile (Android and iOS)
- Desktop (Windows, macOS and Linux)
- Web
Compatibility with Flutter's dark theme. It automatically adjusts to your app's theme.
Compatibility with versions 2 and 3 of Google Material.
This package is open source and you are encouraged to report problems or submit suggestions for improvements via issues on GitHub Issues.
This package is distributed under the MIT License. See the LICENSE file for details.