restart_app 1.4.0-beta copy "restart_app: ^1.4.0-beta" to clipboard
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 #

By Hossein Yousefpour

© All rights reserved.

Buy Me A Book

384
likes
160
pub points
99%
popularity

Publisher

verified publishergabrimatic.info

A Flutter plugin that helps you to restart the whole Flutter app with a single function call by using native APIs.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface, web

More

Packages that depend on restart_app