FLUTTER ECOSYSTEM

terminate_restart

A Flutter plugin for app termination and restart with data clearing options.

terminate_restart cover
Latest version
1.1.0
30-day downloads
30.8K
Likes
69
Pub points
150

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

A Flutter plugin enabling app termination and restart with optional data clearing, designed for Android, iOS, and Web. It allows developers to programmatically close the app and restart it, useful for scenarios requiring a clean state, such as after configuration changes or authentication resets. The plugin provides a simple API to trigger these actions across platforms, ensuring consistent behavior. It integrates seamlessly into existing Flutter projects via pub.dev.

Use cases
  • App restart after settings change
  • Clearing cached data on logout
  • Reinitializing app state
  • Handling authentication resets
  • Forcing a fresh launch after updates
Key features
  • Cross-platform support (Android, iOS, Web)
  • Option to clear app data on restart
  • Simple API for termination and restart
  • Works on all major platforms
  • Lightweight and easy integration
Suitable for
  • Developers needing app restart functionality
  • Apps requiring state reset after user actions
  • Projects with complex session management
  • Mobile apps with sensitive data handling
  • Web applications needing controlled restarts
Considerations
  • May not work on all Android launchers
  • iOS restrictions may limit full termination
  • Web support is limited by browser behavior
  • Data clearing behavior varies by platform
  • Requires appropriate permissions on some devices
Supported platformsAndroidiOSWeb

Install package

flutter pub add terminate_restart

Categories

Dependencies

Dependency list 2 items
  • plugin_platform_interface^2.0.2
  • web^1.1.0

Source repository

Related projects