promo_carousel 1.2.0
promo_carousel: ^1.2.0 copied to clipboard
A flexible, customizable promotional carousel package for Flutter.
1.2.0 #
- Hero Animations - Smooth transitions between the carousel and host app
- Audio Feedback - Global and per-slide sound effects
- 3D Transitions - Cube and Flip 3D page transitions
- Geolocation Rules - Filter slides by country and region
- Internationalization - Built-in support for 14 languages (EN, MY, ES, FR, DE, JA, ZH, KO, HI, AR, PT, RU, TH, VI)
- Enhanced Images - Transparently handle local assets OR network images with caching
- doc: Update
README.md
1.1.0 #
π Major Feature Release #
Added - Analytics & Tracking
- β¨ Analytics Callbacks - Comprehensive tracking system
onSlideViewed- Track when slides become visibleonSlideSkipped- Monitor slide skipsonCTAClicked- Track CTA interactions with action and targetonCarouselCompleted- Know when users complete the carouselonCarouselDismissed- Track early dismissalsonSkipAll- Monitor skip-all button usage
- π Export Analytics - Export analytics data as JSON via
PromoCarousel.exportAnalytics() - π Viewed Slides Tracking - Automatic tracking of which slides were viewed
Added - Auto-Advance
- β±οΈ Auto-Advance Timer - Automatically progress through slides
- βΈοΈ Pause on Interaction - Smart pause when user interacts
- π Auto-Reset - Timer resets on manual page changes
- π¬ Configurable Duration - Set custom advance timing per carousel
Added - Enhanced Display
- π Multiple Display Modes - Dialog, bottom sheet, and fullscreen
- π¨ Backdrop Blur - Add frosted glass effect to modal overlay
- π Progress Bar - Linear progress indicator with top/bottom positioning
- π¨ Custom Indicators -
indicatorBuilderfor custom page indicators - π¬ Transition Types - Slide, fade, scale, rotate, or no animation
Added - User Experience
- β‘ Skip All Button - Let users bypass entire carousel
- π± Tap to Advance - Optional tap-anywhere to advance
- π― Swipe Threshold - Configurable swipe sensitivity
- βΏ Haptic Feedback - Tactile response with configurable intensity
- π Reduced Motion Support - Respect system accessibility settings
Added - Advanced Rules
- π
Date Range Rules -
showAfterDateandshowBeforeDate - π± Device Type Filtering - Show slides only on specific device types
- π₯ User Segment Targeting - Target specific user groups
- π’ Version Range - Both
minAppVersionandmaxAppVersion - π― Custom Conditions -
customConditioncallback for complex logic
Added - Developer Experience
- π JSON Parsing - Built-in JSON serialization for slides, CTAs, and rules
- π¦ Remote Config Ready -
PromoCarousel.fromJson()for easy integration - π§ͺ Preview Mode -
showPreview()to test all slides without rules - π Debug Mode - Global
PromoCarousel.debugModeflag - π Semantic Labels - Accessibility labels for slides and CTAs
- π·οΈ Metadata Support - Attach custom metadata to slides for A/B testing
Added - Display Variants
- π showBottomSheet() - Dedicated bottom sheet presentation
- π showFullscreen() - Dedicated fullscreen presentation
- π Pre-built Configs - Factory constructors for common scenarios:
PromoCarouselConfig.onboarding()PromoCarouselConfig.announcement()PromoCarouselConfig.marketing()
Added - State Management
- π shouldShowAny() - Check if any slides should be shown
- π resetSlides() - Reset multiple slides at once
- π getSeenSlides() - Get list of all seen slide IDs
- πΎ exportAnalytics() - Export complete analytics data
Enhanced
- π― PromoAction.custom - New custom action type with callback
- π± Device Type Detection - Automatic device type detection support
- π¨ Visual Type Expansion - Added
PromoVisualType.video - π§ Controller Enhancements - Improved controller with auto-advance logic
- π¦ Config Enhancements - 20+ new configuration options
- π Modal Enhancements - Backdrop blur, display modes, progress bar
Improved
- βΏ Accessibility - Better screen reader support with semantic labels
- π¨ Theming - Enhanced Material 3 theme adaptation
- π± Responsive Design - Better handling of different screen sizes
- π State Persistence - More robust SharedPreferences error handling
- π Documentation - Expanded docs with 20+ new examples
1.0.0 #
π Initial Release #
Added
- β¨ Modal promotional carousel with swipeable PageView
- π― Five built-in visual types (image, animation, searchBar, featureHighlight, custom)
- π§ Custom widget injection via
customContentBuilder - πΎ Persistent state management with SharedPreferences
- π Page indicator showing current position (e.g., "3 / 12")
- π¬ Four built-in actions (navigate, openFeature, openPaywall, close)
- βοΈ Configurable appearance via
PromoCarouselConfig - π Automatic light/dark theme adaptation
- π Privacy-focused: no user data in package
- π± Responsive dialog layout with Material 3 support
- β "Don't show again" option (optional)
- π¨ Customizable border radius, elevation, and colors
- π Page rules (showOnce, minAppVersion)
- π Smooth page transition animations
- π― Clean public API via
PromoCarousel.show() - π§Ή Utility methods:
resetSlide(),resetAll() - π Comprehensive documentation and examples
- βΏ Semantic structure for accessibility
