https://github.com/mttankkeo/flutter_rebuildable
This package that provides widgets to help rebuild all descendant widgets or all widgets in the entire application.
https://github.com/mttankkeo/flutter_rebuildable
flutter flutter-package rebuild
Last synced: 4 months ago
JSON representation
This package that provides widgets to help rebuild all descendant widgets or all widgets in the entire application.
- Host: GitHub
- URL: https://github.com/mttankkeo/flutter_rebuildable
- Owner: MTtankkeo
- License: bsd-3-clause
- Created: 2025-02-22T22:58:12.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-02-23T00:16:12.000Z (4 months ago)
- Last Synced: 2025-02-23T00:17:43.291Z (4 months ago)
- Topics: flutter, flutter-package, rebuild
- Language: Dart
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Introduction
This package that provides widgets to help rebuild all descendant widgets or all widgets in the entire application.> __When is it commonly used?__
> It can be very useful when user-defined settings, such as themes, change and need to be reflected throughout the entire application.## Usage
The following explains the basic usage of this package.### Context-Based Rebuilding
Using `Rebuildable.of(context)`, you can rebuild only the widgets that are descendants of the given context. This is useful when you need to update a specific portion of your app without affecting the entire widget tree.```dart
Rebuildable.of("context").rebuild();
```### Global Rebuilding
If you need to rebuild all widgets in the application, you can use `RebuildableApp`. Wrapping your app with `RebuildableApp` allows you to trigger a full rebuild whenever necessary.```dart
RebuildableApp(
child: Text("Hello, World!")
);RebuildableApp.rebuild();
```