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 new origin is different than the app's origin
  Restart.restartApp(webOrigin: '[your main route]');
}

Developer

By Hossein Yousefpour

© All rights reserved.

Donate

  • Buy Me A Book

OR

  • ETH Address: 0xc2F103b11C5d7bE3Abe292EE549a3ba418655A0E

Libraries

restart_app
restart_web