share_plus 13 Migration - Replace Deprecated Share APIs Without Breaking Flutter Builds
Migrate Flutter apps from deprecated share_plus static APIs to SharePlus.instance.share while checking the new Dart, Flutter, Android, iOS, and iPad constraints.
Migrate Flutter apps from deprecated share_plus static APIs to SharePlus.instance.share while checking the new Dart, Flutter, Android, iOS, and iPad constraints.
Migrating file_picker 12+ means replacing Android directory paths with content:// SAF URIs, updating file reads, and deciding when persistent access or a cache copy is safer.
Handle Flutter firebase_auth anonymous upgrades, credential collisions, and safe data transfer without deleting the guest account too early.
Use drift_flutter shareAcrossIsolates when Flutter UI and background isolates touch one database, with the close, engine, and stream boundaries that prevent stale reads.
Migrate app_links 6 to 7 across the iOS scene lifecycle, then make cold-start and resumed deep links idempotent before they reach Flutter navigation.
Use firebase_remote_config fetch, activate, and minimumFetchInterval deliberately so Flutter feature flags stay predictable without a slow startup or fetch throttling.
Use connectivity_plus as a retry hint, not an Internet guarantee. This Flutter pattern handles Android resume checks, iOS duplicate events, captive portals, and safe request retries.
Migrate Flutter shared_preferences safely from the legacy cached API to SharedPreferencesAsync, with a decision table, startup code, and isolate cache traps.
Riverpod autoDispose can cancel a request when a screen disappears, but caching everything changes retry behavior. Combine ref.onDispose, Dio CancelToken, and ref.keepAlive to make the lifecycle explicit.
Use web_socket_client with Flutter app lifecycle events to stop dead sockets in the background, recreate them on resume, and ignore stale callbacks from an older connection.
Handle firebase_messaging notification taps from terminated and background states without duplicate navigation, lost routes, or a race with Flutter startup.
Use freezed unionKey and a JsonConverter to migrate Flutter API models without crashing when older clients receive a new discriminator value.
Choose bloc_concurrency transformers by side effect: use restartable for replaceable searches, droppable for duplicate submits, and add request cancellation when an HTTP call must actually stop.
Fix Flutter google_maps_flutter Android maps that show controls but no tiles by initializing the renderer early and separating renderer, API key, and device checks.
Fix webview_flutter Android back behavior by checking WebView history before popping the Flutter route, with a PopScope pattern that avoids app exits and double navigation.
Recover Flutter video_player frames that turn white or black after Android background, ads, or navigation by choosing the right view type and rebuilding safely.
Use Dart package:http RetryClient safely in Flutter by separating idempotent reads from streamed uploads, bounding retries, and preserving an explicit recovery path for POST requests.
Fix android_alarm_manager_plus alarms that stop on Android 14 by separating exact-alarm permission, release callbacks, and the inexact fallback path.
Migrate Flutter permission_handler Android flows after 14.1.0, stop trusting status for permanent denial, and recover the Ask every time settings path without trapping users.
flutter_local_notifications notification actions can run in a background isolate after an Android tap. Keep callbacks reachable, separate UI navigation, and test the terminated-app path safely.
Fix path_provider tests that fail after the platform-interface migration by replacing brittle MethodChannel mocks with a typed PathProviderPlatform fake and a small storage wrapper.
Why flutter_native_splash behaves differently on Android 12, Android Studio, launchers, and notification taps, with a reproducible configuration and verification checklist.
Use Flutter record safely on Android 14 by separating foreground recording from background capture, checking microphone permission before start, and testing the foreground-service boundary.
Drift schema migrations can pass on a fresh install and still fail for users upgrading from an older app. Use generated steps, schema snapshots, and a reproducible migration test to protect existing SQLite data.