smart_rate_us 1.1.7
smart_rate_us: ^1.1.7 copied to clipboard
A Flutter package for smart app rating prompts with customizable UI and analytics-driven triggers.
1.0.0 #
Features #
- Smart Rating System: Analytics-driven rating prompts based on user engagement
- Animated Star Views: Beautiful sequential star animations with fade-in, zoom, and rotation effects
- Customizable UI Components:
DefaultStarsViewwith customizable star buildersDefaultButtonViewwith multiple styles (normal, secondary, transparent, border)DefaultDialogBuilderfor rating dialogsDefaultSuccessDialogViewfor feedback confirmation
- Flexible Architecture:
FeedbackWrapperfor easy app integrationFeedbackRepoProviderfor state managementWriteFeedbackScreenfor collecting user feedbackDoYouLoveUsDialogfor rating prompts
- Event-Based Triggers: Configurable counters for when to show rating prompts
- Platform Integration: Native in-app review support via
in_app_reviewpackage - State Management: Built on
flutter_blocfor reliable state handling - Persistent Storage: User preferences and counters stored via
shared_preferences - Version Awareness: Smart handling of app version changes
- Delay Support: Configurable delays between rating prompt attempts
Dependencies #
flutter_bloc: ^9.1.1- State managementshared_preferences: ^2.5.3- Local storagein_app_review: ^2.0.10- Native review dialogspackage_info_plus: ^8.3.1- App version detectionfreezed: ^3.2.0- Immutable data classesjson_serializable: ^6.10.0- JSON serialization
Getting Started #
See README.md for detailed implementation guide and examples.
1.0.1 #
Updated Readme.md
1.1.0 #
๐ Breaking Changes #
- Router Support: Added navigation callbacks for custom router compatibility
- Added
onPopCallbackparameter toFeedbackWrapperConfig - Added
onWriteFeedbackCallbackparameter toFeedbackWrapperConfig - Both callbacks are now required in custom configurations
FeedbackWrapperConfig.defaultConfig()provides backward-compatible defaults
- Added
โจ New Features #
- Custom Router Compatibility: Full support for go_router, AutoRoute, and other custom routers
- Navigation Flexibility: No more hard dependency on
Navigator.of(context) - Improved Documentation: Added router examples in README and code documentation
๐ ๏ธ Improvements #
- Code Quality: Fixed deprecated
Matrix4.translate()warnings - Formatting: Applied consistent Dart formatting across all files
- iOS Compatibility: Updated minimum iOS version to 13.0
- Dependencies: Changed
flutter_blocto flexible version constraint
๐ Documentation #
- Added router support examples in README
- Improved API documentation with usage examples
- Added migration examples for different router types
๐งช Testing #
- All existing tests continue to pass
- Added proper callback handling in test scenarios
1.1.1 #
Updated changelog Updated umbrella smart_rate_us.dart file
1.1.2 #
Updated colors: default widgets now use primary color instead of secondary
1.1.3 #
Added colors and InputDecoration customizations
1.1.4 #
Fixed colors for success dialog
1.1.5 #
Fixed unused imports
1.1.6 #
Updated README.md
1.1.7 #
New Features #
- Smart keyboard handling: Better platform-specific keyboard behavior for feedback text field
- Mobile/Web: Enter key sends feedback (as before)
- Desktop (macOS/Windows/Linux): Enter creates new line, Cmd+Enter (or Ctrl+Enter) sends feedback
- User email support: Added optional user email parameter to feedback flow
- Added
getUserEmailcallback toFeedbackWrapper - Email automatically passed through feedback screens
- Added
Improvements #
- Updated test signatures to match new API
- Better platform detection for keyboard shortcuts