flutter_full_restart 2.1.0
flutter_full_restart: ^2.1.0 copied to clipboard
Restart or relaunch a Flutter app: full process or UI-only restart. Android, iOS, macOS, Web, Windows, Linux. Swift Package Manager ready.
Changelog #
2.0.0 - 2026-10-07 #
⚠ BREAKING CHANGES #
FullRestart.restart()no longer takeswipeData,keepPreferencesorkeepSecureStorage, andFullRestart.confirmAndRestart()is removed. Clear app data yourself before callingrestart(), and show your own dialog first if you want the user to confirm.FullRestartPlatform.restart()now takes onlykillProcess.
Features #
- make the package restart-only (5017c64)
1.0.0 #
Initial release.
FullRestart.restart(): full process restart (RestartType.full) or UI-only restart (RestartType.ui).- Optional data wipe with
wipeData,keepPreferencesandkeepSecureStorage. FullRestart.confirmAndRestart(): asks the user with a dialog before restarting.FullRestartScope: rebuilds the whole widget tree on a UI restart.FullRestart.ensureInitialized(onUiRestart: ...)for custom UI-restart handling.- iOS: Swift Package Manager and CocoaPods support, privacy manifest included.
- macOS: Swift Package Manager and CocoaPods support; relaunches the app bundle for a full restart and wipes only the app's own folders, also outside the App Sandbox.
- Android: Java implementation that builds with AGP 7.x to 9.x, no Kotlin Gradle Plugin required.
- Web: page reload with browser storage wipe, WebAssembly compatible.
- Windows: relaunches the executable for a full restart, rebuilds the widget tree for a UI restart, and wipes the app's own AppData folders.
- Linux: relaunches the executable for a full restart, rebuilds the widget tree for a UI restart, and wipes the app's own XDG cache and data folders.
- Supports Flutter 3.22+ / Dart 3.4+.
