بنقرة واحدة
bloc_superpowers
يحتوي bloc_superpowers على 36 من skills المجمعة من marcglasberg، مع تغطية مهنية على مستوى المستودع وصفحات skill داخل الموقع.
Skills في هذا المستودع
Add custom error handling with catchError to a mix() call for logging, error conversion, or suppression
Add internet connectivity checking before executing a Cubit method with optional retry
Add debounce to delay method execution until after a period of inactivity for search or validation
Add EffectQueue to state for triggering multiple sequential one-time UI effects
Add Effect fields to state class for one-time UI notifications like snackbars, navigation, or form clearing
Add error state handling to widgets using context.isFailed() and context.getException()
Add freshness caching to prevent redundant method executions within a time period
Add loading state tracking to widgets using context.isWaiting() for spinners and skeletons
Add non-reentrant protection to prevent a Cubit method from running multiple times simultaneously
Add optimisticCommand for blocking one-time actions with immediate UI updates and automatic rollback on failure
Add optimistic sync updates for non-blocking operations where only the final value matters and rapid changes coalesce
Add optimistic sync updates in apps with real-time push (like WebSocket etc) for non-blocking operations where only the final value matters and rapid changes coalesce
Add automatic retry logic with exponential backoff to a Cubit method for transient failures
Add sequential queue processing to ensure Cubit method calls execute one after another in order
Add throttle rate limiting to prevent too-frequent method calls for refresh, scroll, or API limits
Set global default values for RetryConfig, ThrottleConfig, DebounceConfig, and other bloc_superpowers configurations
Add context.effectQueue() to widgets to consume and process queued effects in sequence
Add context.effect() to widgets to consume and react to one-time effects from state
Convert an existing Cubit to use mix() function, removing manual loading and error state management
Create a new Cubit using mix() function for automatic loading and error state tracking
Create a reusable MixConfig that bundles common mix() settings for consistent behavior across Cubits
Create a callable MixPreset function that replaces mix() with preconfigured settings
Load data with freshness caching pattern to skip redundant API calls when data is still fresh
Implement pull-to-refresh with throttle to prevent refresh spam and handle pagination
Convert BlocListener usage to Effect-based approach for clearer side effect handling
Combine checkInternet with retry.unlimited for persistent loading of critical data until connection returns
Implement search-as-you-type with debounce and loading states to avoid excessive API calls
Add bloc_superpowers package to a Flutter project with Superpowers widget and error dialog configuration
Configure Superpowers.globalCatchError for centralized error handling, logging, and error conversion
Configure Superpowers.observer for performance tracking, analytics, and debugging of all mix() calls
Set up proper test configuration for Cubits using bloc_superpowers with Superpowers.clear() and Completers
Remove isLoading and errorMessage fields from state classes and use context.isWaiting() and context.isFailed() instead
Test isFailed() and UserException handling to verify error states work correctly
Test isWaiting() behavior using Completers to verify loading states work correctly
Use Dart records as composite keys for per-item or per-parameter loading and error tracking
Use Superpowers.setProp() and prop() for key-value storage with automatic cleanup on logout or test reset