Install
Requires Flutter 3.22 or later and Dart 3.4 or later.Usage
Import the package and callRestart.restartApp() from a button or another app action:
Error handling
To handle a rejected restart request, read the returnedRestartResult:
Options
For a different behavior, such as an Android process restart or a web restart at a particular route, see configuration. The API reference lists every parameter, result field, and capability.Requirements
Your Flutter SDK and other dependencies may require newer OS versions. For example, Flutter 3.47 requires Android 24, iOS 15, and macOS 12. Older deployment targets need a Flutter SDK that still supports them. See Flutter’s supported platforms.
The Android plugin supports AGP 8 and 9, including projects with
android.builtInKotlin=false. Enabling AGP’s built-in Kotlin requires Flutter 3.47 or later. Keep your existing setting unless you are migrating to built-in Kotlin.