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.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:restart_app/restart_app.dart';

void main() {
  runApp(ExampleApp());
}

class ExampleApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Restart App Example'),
        ),
        body: Center(
          child: TextButton(
            child: Text('Restart!'),
            onPressed: () {
              /// Fill webOrigin only when your current origin is different than the app's origin
              Restart.restartApp();
            },
          ),
        ),
      ),
    );
  }
}
333
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