restart_app 1.1.0 copy "restart_app: ^1.1.0" to clipboard
restart_app: ^1.1.0 copied to clipboard

outdated

A simple package that helps you to restart the whole android app with a single function call.

Restart app in Flutter #


A simple plugin to restart your flutter application WITH NATIVE APIs.

How to use it?


1. Add the package to pubspec.yaml dependency:

dependencies:
  restart_app: ^1.1.0

2. Import package:

import 'package:restart_app/restart_app.dart';

3. Call the restartApp method where ever you want:

onPressed: () {
  /// Fill webOrigin only when your current origin is different than the app's origin
  Restart.restartApp(webOrigin: '[your main route]');
}
326
likes
0
pub points
98%
popularity

Publisher

verified publishergabrimatic.info

A simple package that helps you to restart the whole android app with a single function call.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, flutter_web_plugins

More

Packages that depend on restart_app