Add auto-rotate wallpaper feature with BLoC architecture#296
Open
codenameakshay wants to merge 5 commits into
Open
Add auto-rotate wallpaper feature with BLoC architecture#296codenameakshay wants to merge 5 commits into
codenameakshay wants to merge 5 commits into
Conversation
…urites support - Upgrade async_wallpaper from 3.0.0 to 3.1.0 to get rotation APIs - Add AutoRotateConfigEntity (Freezed) with source type, target, interval, triggers, order - Add AutoRotateLocalDataSource for persisting config via LocalStore - Add AutoRotateRepositoryImpl that fetches wallpaper URLs from the selected source (favourites, category, or collection) and calls the plugin rotation APIs - Add AutoRotateBloc with events for all config changes, start/stop/status/rotate-now - Add AutoRotateScreen UI: status banner, source selector with dropdowns, screen target selector, interval chips, charging trigger switch, order picker, start/stop button - Register AutoRotateRoute in app_router and injection config - Add 'Auto Rotate' entry in Settings → Android Widgets section (Android-only) - Add 8 new persistence keys under auto_rotate.* namespace https://claude.ai/code/session_01Td3B5x53BgciabNMC9kb43
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Comment |
Android App Size ReportStatus: FAIL
Thresholds: max delta Top artifact bucket deltas (uncompressed bytes):
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements a complete auto-rotate wallpaper feature that allows users to automatically change wallpapers at configurable intervals from various sources (favorites, categories, or collections). The feature includes a full BLoC-based architecture with local persistence and integration with the async_wallpaper plugin.
Key Changes
Feature Implementation
auto_rotate_screen.dart): Complete UI with sections for:Architecture & Business Logic
auto_rotate_bloc.j.dart): Manages 10 events covering configuration changes, start/stop operations, and status managementauto_rotate_state.j.dart): Tracks configuration, running status, available sources, and action statesDomain Layer
auto_rotate_config_entity.dart): Immutable configuration with enums for source type and rotation orderauto_rotate_repository.dart): Defines contract for config persistence and rotation controlauto_rotate_usecases.dart): Five use cases for load, save, start, stop, and status operationsData Layer
auto_rotate_local_data_source.dart): Persists configuration to local storage with proper enum/enum serializationauto_rotate_repository_impl.dart): Orchestrates wallpaper rotation via async_wallpaper plugin, fetches wallpaper URLs from favorites/categories/collections, and manages rotation lifecycleIntegration
Notable Implementation Details
https://claude.ai/code/session_01Td3B5x53BgciabNMC9kb43