Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

simphiwehlabisa/flutter_iterum

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

easly restart flutter application from scratch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.