Skip to content
pubscout

data_widget

0.0.3, released 11 months ago by sunaryathito.space

Flutter widgets and helpers for InheritedWidget, ValueNotifier, and state management utilities.

WASM-ready
$ flutter pub add data_widget
Source repository

What it does

Provides wrappers like Data and Model to pass and listen to state across widget trees without deep nesting. Includes mutable or change-aware notifiers like ListNotifier, MapNotifier, and a DebounceController.

AI-written summary of version 0.0.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want simple state passing via InheritedWidget wrappers without heavy state management boilerplate
  • You need collections like lists and sets that can notify listeners on mutation
  • You want to debounce rapid function calls such as search input changes

Skip it when

  • You are building a massive application requiring a robust architecture like BLoC or Riverpod
  • You need complex dependency injection containers

Strengths

  • Simplifies working with InheritedWidget, InheritedModel, and InheritedNotifier
  • MultiData and MultiModel reduce widget tree nesting
  • Useful notifier extensions for lists, sets, maps, and debouncing

Weaknesses

  • Very early version (0.0.3) with limited community ecosystem
  • Order of data in MultiData must precisely match provided elements

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
Data.inherit(
  data: 'Hello, World!',
  child: const MyWidget(),
);

String data = Data.of<String>(context);

Alternatives

Packages that do the same job and could replace data_widget.

  • fbroadcast

    An efficient broadcast system for message sending, receiving, and state management in Flutter.

Works with

Packages commonly used together with data_widget: ones it builds on, ones built on it, and its own family.