flutter_rebuildable 1.0.1 copy "flutter_rebuildable: ^1.0.1" to clipboard
flutter_rebuildable: ^1.0.1 copied to clipboard

This package that provides widgets to help rebuild all descendant widgets or all widgets in the entire application.

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.

Rebuildable.of("context").rebuild();
copied to clipboard

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.

RebuildableApp(
    child: Text("Hello, World!")
);

RebuildableApp.rebuild();
copied to clipboard
1
likes
150
points
26
downloads

Publisher

verified publisherttangkong.dev

Weekly Downloads

2024.10.04 - 2025.04.18

This package that provides widgets to help rebuild all descendant widgets or all widgets in the entire application.

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on flutter_rebuildable