flutter_full_restart 1.0.1
flutter_full_restart: ^1.0.1 copied to clipboard
Restart or relaunch a Flutter app: full process or UI-only restart, optional data wipe, confirm dialog. Android, iOS, macOS, Web, Windows, Linux. Swift Package Manager ready.
Changelog #
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+.
