flutter_iterum 0.0.3 copy "flutter_iterum: ^0.0.3" to clipboard
flutter_iterum: ^0.0.3 copied to clipboard

A flutter package to easily restart your application whenever you need to

Flutter Iterum #

Easily restart your application from scratch.

Usage #

Wrap you App widget in the Iterum widget.

void main() {
  runApp(
    Iterum(
      child: App(),
    ),
  );
}

Call the revive static method when you want to restart your application (rebuild the entire widget from scratch).

Iterum.revive(context);

Disclaimer :

Iterum restarts your application at the application level, rebuilding your application widget tree from scratch, losing any previous state.

Iterum does not fully restart your application process at the OS level.

Use cases #

Here is a non-exhaustive list of use cases where Iterum can help :

  • restart the app after a logout
  • restart the app after a failed app initialization process
  • restart the app after a specific event in the app occurs
  • ...

Installation #

Dependency #

Add the package as a dependency in your pubspec.yaml file.

dependencies:
  flutter_Iterum: "^1.0.0"

Import #

Import the package in your code file.

import 'package:flutter_Iterum/flutter_Iterum.dart';

License #

Flutter Iterum is released under the MIT License

2
likes
125
points
126
downloads

Publisher

unverified uploader

Weekly Downloads

A flutter package to easily restart your application whenever you need to

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_iterum