restart_app 1.4.0-beta
restart_app: ^1.4.0-beta copied to clipboard
A Flutter plugin that helps you to restart the whole Flutter app with a single function call by using native APIs.
Restart app in Flutter #
A Flutter plugin that helps you to restart the whole Flutter app with a single function call by using Native APIs.
How to use it? #
1. Add the package to pubspec.yaml dependency:
dependencies:
restart_app: ^1.4.0-beta
2. Import package:
import 'package:restart_app/restart_app.dart';
3. Call the restartApp method wherever you want:
onPressed: () {
Restart.restartApp(
/// In Web Platform, Fill webOrigin only when your new origin is different than the app's origin
// webOrigin: 'http://example.com',
);
}
Developer #
© All rights reserved.