dynamic_zones library
Dynamic Zones feature for Flutter SDK
This module provides banner carousel functionality with:
- Infinite scrolling
- Auto-scroll
- Real-time updates
- Caching and priority-based sorting
- Impression tracking
Example usage:
DynamicZoneWidget(
bannerName: 'home_banner',
bannerSize: BannerSize.banner,
// width and height are optional - will use defaults from BannerSize
)
Classes
- AdItem
- Model representing an ad item in the banner carousel
- BannerActions
- Utility class for handling banner actions
- BannerCache
- In-memory cache for banner data Cache key format: "${bannerName.toLowerCase()}_$size"
- BannerCallback
- Callback interface for banner operations Similar to Android BannerCallback interface
- BannerDotIndicator
- Adaptive dot indicator widget with shrinking logic Sizes: 24dp/4dp (≤5), 18dp/3.5dp (6-10), 12dp/3dp (>10)
- BannerManager
- Singleton manager for banner operations Handles caching, updates, merging, and real-time updates
- BannerPageView
- Individual banner item widget
- BannerShimmer
- Shimmer loading effect widget for banner placeholder
- BannerSorter
- Utility class for sorting banners by priority
- BannerUpdate
- Model representing a banner update event from native platform
- BannerUpdateChannel
- Event channel for receiving real-time banner updates
- DynamicZoneChannel
- Method channel for dynamic zone operations
- DynamicZoneWidget
- Main banner carousel widget with infinite scrolling, auto-scroll, and real-time updates
- ImpressionManager
- Manager for tracking banner impressions (persisted across app restarts)
- TTLParser
- Utility class for parsing and validating TTL (Time To Live) dates
Enums
- BannerSize
- Enum for banner sizes matching Android SDK constants