NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #4650 most downloaded on pub.dev
A simple State Management solution for Flutter applications inspired by SolidJS
Last release 1 months ago
28 Aug 2026
Release timing varies
gaps range from 8 days to 5 months
Nearly every release is documented
notes for 53 of 53 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
72 releases · first in 2023
One column per quarter.
FEAT : Inherits solidart's new Resource.previousReady / previousError (the retained last ready / error state, surviving repeated failures). Requires s
Resource.previousReady / previousError (the retained last ready / error state, surviving repeated failures). Requires solidart: ^3.0.0-dev.2.BREAKING : Inherits solidart's auto-dispose change — auto-dispose is now opt-in ( SolidartConfig.autoDispose defaults to false ).
SolidartConfig.autoDispose defaults to false).solidart: ^3.0.0-dev.1 (the alien_signals 2.3.1 reactive adapter).SignalBuilder through the reactive sub helper (setCurrentSub) instead of assigning activeSub directly.reactiveSystem via package:solidart/solidart_internal.dart now that it is no longer part of solidart's public barrel.fix: effect re-entrancy by @nank1ro in #174
Full Changelog: flutter_solidart-v2.7.3...flutter_solidart-v2.7.4
LateInitializationError.Computed.untrackedValue is not up to date by @nank1ro in #172
Full Changelog: flutter_solidart-v2.7.2...flutter_solidart-v2.7.3
Computed.untrackedValue after dependency changes.FIX: Prevent LateInitializationError when accessing Computed.untrackedValue before first value access.
LateInitializationError when accessing Computed.untrackedValue before first value access.FIX: Expose until method for Computed.
until method for Computed.REFACTOR: Deprecate maybeOn and on methods of ResourceState. Use maybeWhen and when instead.
maybeOn and on methods of ResourceState. Use maybeWhen and when instead.CHORE: Bump solidart dependency to ^2.7.1.
solidart dependency to ^2.7.1.FEAT: Export Signal and Resource by implementing ValueNotifier and ReadableSignal, Computed by implementing ValueListenable.
Signal and Resource by implementing ValueNotifier and ReadableSignal, Computed by implementing ValueListenable.REFACTOR: Improve and simplify the SignalBuilder implementation (thanks to @medz).
SignalBuilder implementation (thanks to @medz).assertSignalBuilderWithoutDependencies to SolidartConfig to manually disable the assertion thrown when a SignalBuilder doesn't track any reactive value. (By default it's true, so it will raise an assertion).FIX: SignalBuilder not working with inherited widgets. This is just a temporary patch, a better solution needs to be found, because inherited widgets
SignalBuilder not working with inherited widgets. This is just a temporary patch, a better solution needs to be found, because inherited widgets tracked inside the builder won't react.CHORE: Detect if SignalBuilder didn't track any reactive value and throw a SignalBuilderWithoutDependenciesError.
SignalBuilder didn't track any reactive value and throw a SignalBuilderWithoutDependenciesError.run method to Computed to manually trigger an update of its value.run method to Effect to manually re-run the effect.Effect didn't track any reactive value and throw an EffectWithoutDependenciesError exception.FIX: Bump the solidart dependency to ^2.4.1.
solidart dependency to ^2.4.1.FIX: Signal.lazy which caused an exception.
Signal.lazy which caused an exception.SignalBuilder error handling and rebuilding.FIX: SignalBuilder rebuilded twice when a signal changed, added unit test to prevent this from happening again.
SignalBuilder rebuilded twice when a signal changed, added unit test to prevent this from happening again.FEAT: Add Debouncer utility class to easily debounce operations and debounceDelay to Resource to debounce source changes if they fire very often.
Debouncer utility class to easily debounce operations and debounceDelay to Resource to debounce source changes if they fire very often.FEAT: Allow extending signal, computed, resource, list-signal, set-signal and map-signal.
FEAT: Add timeout parameter to Signal.until method to specify a timeout duration. If the condition is not met within the specified duration, the retur
timeout parameter to Signal.until method to specify a timeout duration. If the condition is not met within the specified duration, the returned future will complete with a TimeoutException.CHORE: Update the solidart dependency to ^2.1.0.
solidart dependency to ^2.1.0.alien_signals dependency from ^0.2.1 to ^0.4.3 with significant performance improvements (thanks to @medz).alien.ReactiveNode for better compatibility and performance (thanks to @medz).alien_signals API (thanks to @medz).ReactiveSystem to ensure proper effect execution (thanks to @medz).BREAKING CHANGE: Remove Solid and Providers, use disco instead.
Solid and Providers, use disco instead.SignalBuilder widget now automatically tracks the Signals used in the builder function allowing you to react to N signals at the same time. See the migration guide.DualSignalBuilder and TripleSignalBuilder in favor of SignalBuilder.ResourceBuilder in favor of SignalBuilder. See the migration guide.alien_signals for the reactive system.untracked.set and call methods from Signals (Use an extension to have them back).useRefreshing to Resource to decide whether to update the current state with isRefreshing (defaults to true). If you set it to false, when refreshing, the resource will go directly to the loading state.Signal.lazy to allow the creation of a signal without an initial value. Be aware, the signal will throw an error if you try to read its value before it has been initialized.createSignal, createComputed, createEffect and createResource helpers.SignalOptions and ResourceOptions classes.batch function to execute a callback that will not side-effect until its top-most batch is completed. See docs heretrackInDevTools to SignalOptions and ResourceOptions to disable the DevTools tracking for specific signals and resources, defaults to SolidartConfig.devToolsEnabled.BREAKING CHANGE: Remove Solid and Providers, use disco instead.
Solid and Providers, use disco instead.set and call methods from Signals (Use an extension to have them back).useRefreshing to Resource to decide whether to update the current state with isRefreshing (defaults to true). If you set it to false, when refreshing, the resource will go directly to the loading state.*CHORE*: Remove deprecated createSignal, createComputed, createEffect and createResource helpers.
createSignal, createComputed, createEffect and createResource helpers.SignalOptions and ResourceOptions classes.BREAKING CHANGE: Removed DualSignalBuilder and TripleSignalBuilder in favor of SignalBuilder.
SignalBuilder widget now automatically tracks the Signals used in the builder function allowing you to react to N signals at the same time. See the migration guide.DualSignalBuilder and TripleSignalBuilder in favor of SignalBuilder.ResourceBuilder in favor of SignalBuilder. See the migration guide.Solid widget performance by more than 3000% in finding ancestor providers.batch function to execute a callback that will not side-effect until its top-most batch is completed. See docs heretrackInDevTools to SignalOptions and ResourceOptions to disable the DevTools tracking for specific signals and resources, defaults to SolidartConfig.devToolsEnabled.- Update dependencies
FEAT: Add DevTools extension to solidart.
BUGFIX: The method didUpdateSignal of SolidartObserver was not triggered for collections.
didUpdateSignal of SolidartObserver was not triggered for collections.FEAT: Create SolidartConfig which you can use to customize the autoDispose of all the tracking system and and observers.
SolidartConfig which you can use to customize the autoDispose of all the tracking system and and observers.ResourceUnresolved state so you can easily use the ResourceState sealed class.FEAT: Automatic disposal, see the docs here
BUGFIX: Fix the update method of a Resource that triggered reportObserved.
update method of a Resource that triggered reportObserved.Update solidart version
Update solidart version
BUGFIX: Fix the updateValue method of a Signal that triggered reportObserved. (thanks to @9dan)
updateValue method of a Signal that triggered reportObserved. (thanks to @9dan)CHORE: Rename SolidProvider into Provider.
SolidProvider into Provider.SolidSignal in favor of Provider.CHORE: Deprecate createSignal, createComputed, createEffect and createResource
FEAT: Add 3 new signals: ListSignal, SetSignal and MapSignal. Now you can easily be notified of every change of a list, set or map.
Before:
final list = Signal([1, 2]);
// this doesn't work
list.add(3);
// instead you have to provide a new list instance
list.value = [...list, 3];
Now:
final list = ListSignal([1, 2]);
// this now works as expected
list.add(3);
CHORE: Rename the firstWhere method of a ReadSignal into until
CHORE: Rename the firstWhereReady method of a Resource into untilReady
CHORE: Rename the update method of a Signal into updateValue
CHORE: Deprecate createSignal, createComputed, createEffect and createResource
FEAT: Add the method maybeGet() to the Solid widget to get a provider. If the provider can't be found, returns null instead of throwing like get() doe
maybeGet() to the Solid widget to get a provider. If the provider can't be found, returns null instead of throwing like get() doesBUGFIX: Fix a bug in the Resource where the stream subscription was not disposed correctly
Resource where the stream subscription was not disposed correctlyCHORE Improve copyWith methods of ResourceReady and ResourceError
copyWith methods of ResourceReady and ResourceErrorBREAKING CHANGE Removed the signals map from Solid, now to provide signals to descendants use SolidSignal inside providers:
The core of the library has been rewritten in order to support automatic dependency tracking like SolidJS.
The Show widget now takes a functions that returns a bool.
You can easily convert any type to bool, for example:
final count = createSignal(0);
@override
Widget build(BuildContext context) {
return Show(
when: () => count() > 5,
builder: (context) => const Text('Count is greater than 5'),
fallback: (context) => const Text('Count is lower than 6'),
);
}
Converting a ValueNotifier into a Signal now uses the equals comparator to keep the consistency.
Rename resource parameter of ResourceWidgetBuilder into resourceState. (thanks to @manuel-plavsic)
FEAT Allow multiple providers of the same type by specifying an identifier.
SolidProvider<NumberProvider>(
create: () => const NumberProvider(1),
id: 1,
),
SolidProvider<NumberProvider>(
create: () => const NumberProvider(10),
id: 2,
),
final numberProvider1 = context.get<NumberProvider>(1);
final numberProvider2 = context.get<NumberProvider>(2);
BREAKING CHANGE Removed the signals map from Solid, now to provide signals to descendants
use SolidSignal inside providers:
Before:
Solid(
signals: {
SignalId.themeMode: () => createSignal<ThemeMode>(ThemeMode.light),
},
),
Now:
Solid(
providers: [
SolidSignal<Signal<ThemeMode>>(create: () => createSignal(ThemeMode.light)),
],
),
FEAT You can access a specific Signal without specifing an identifier, for example:
// to get the signal
context.get<Signal<ThemeMode>>();
// to observe the signal's value
context.observe<ThemeMode>()
NOTICE: If you have multiple signals of the same type, you must specify a different
idfor each one.
FEAT: Now you can get any instance of (any subclass of) the provider type.
FEAT: The Solid widget now acceps a builder method that provides a descendant context.
CHORE: The ResourceBuilder no longer resolves the resource, because now the Resource knows when to resolve automatically.
FEAT: Add automatic dependency tracking
BREAKING CHANGE: To create derived signals now you should use createComputed instead of signalName.select
This allows you to derive from many signals instead of only 1.
Before:
final count = createSignal(0);
final doubleCount = count.select((value) => value * 2);
Now:
final count = createSignal(0);
final doubleCount = createComputed(() => count() * 2);
FEAT: The createEffect no longer needs a signals array, it automatically track each signal.
Before:
final effect = createEffect(() {
print('The counter is now ${counter.value}');
}, signals: [counter]);
Now:
final disposeFn = createEffect((disposeFn) {
print('The counter is now ${counter.value}');
})
BREAKING CHANGE: The fireImmediately field on effects has been removed. Now an effect runs immediately by default.
FEAT: Add observe method on Signal. Use it to easily observe the previous and current value instead of creating an effect.
final count = createSignal(0);
final disposeFn = count.observe((previousValue, value) {
print('The counter changed from $previousValue to $value');
}, fireImmediately: true);
FEAT: Add firstWhere method on Signal. It returns a future that completes when the condition evaluates to true and it returns the current signal value.
final count = createSignal(0);
// wait until the count is greater than 5
final value = await count.firstWhere((value) => value > 5);
FEAT: Add firstWhereReady method on Resource. Now you can wait until the resource is ready.
final resource = createResource(..);
final data = await resource.firstWhereReady();
FEAT: The Resource now accepts ResourceOptions. You can customize the lazy value of the resource (defaults to true), if you want your resource to resolve immediately.
CHORE: ResourceValue has been renamed into ResourceState. Now you can get the state of the resource with the state getter.
CHORE: Move refreshing from ResourceWidgetBuilder into the ResourceState. (thanks to @manuel-plavsic)
FEAT: Add hasPreviousValue getter to ReadSignal. (thanks to @manuel-plavsic)
FEAT Before, only the fetcher reacted to the source.
Now also the stream reacts to the source changes by subscribing again to the stream.
In addition, the stream parameter of the Resource has been changed from Stream into a Stream Function() in order to be able to listen to a new stream if it changed.
FEAT: Add the select method on the Resource class.
The select function allows filtering the Resource's data by reading only the properties that you care about.
The advantage is that you keep handling the loading and error states.
FEAT: Make the Resource to auto-resolve when accessing its state.
CHORE: The refetch method of a Resource has been renamed to refresh.
FEAT: You can decide whether to use createSignal() or directly the Signal() constructor, now the're equivalent. The same applies to all the other create functions.
FEAT: The Solid widget now acceps a builder method that provides a descendant context.
Solid widget now acceps a builder method that provides a descendant context.ResourceBuilder no longer resolves the resource, because now the Resource knows when to resolve automatically.CHORE: Deprecate the value setter in the Resource in favor of the state setter
Resource in favor of the state setterFEAT: Now you can get any instance of (any subclass of) the provider type.
FIX: A small fix of the Solid widget now allows to correctly retrieve a Computed signal
Solid widget now allows to correctly retrieve a Computed signalcreateComputed now returns a Computed class instead of a ReadSignal.BREAKING CHANGE Removed the signals map from Solid, now to provide signals to descendants use SolidSignal inside providers:
FEAT Allow multiple providers of the same type by specifying an identifier.
SolidProvider<NumberProvider>(
create: () => const NumberProvider(1),
id: 1,
),
SolidProvider<NumberProvider>(
create: () => const NumberProvider(10),
id: 2,
),
final numberProvider1 = context.get<NumberProvider>(1);
final numberProvider2 = context.get<NumberProvider>(2);
BREAKING CHANGE Removed the signals map from Solid, now to provide signals to descendants
use SolidSignal inside providers:
Before:
Solid(
signals: {
SignalId.themeMode: () => createSignal<ThemeMode>(ThemeMode.light),
},
),
Now:
Solid(
providers: [
SolidSignal<Signal<ThemeMode>>(create: () => createSignal(ThemeMode.light)),
],
),
FEAT You can access a specific Signal without specifing an identifier, for example:
// to get the signal
context.get<Signal<ThemeMode>>();
// to observe the signal's value
context.observe<ThemeMode>()
NOTICE: If you have multiple signals of the same type, you must specify a different
idfor each one.
FEAT Before, only the fetcher reacted to the source. Now also the stream reacts to the source changes by subscribing again to the stream. In addition,
fetcher reacted to the source.
Now also the stream reacts to the source changes by subscribing again to the stream.
In addition, the stream parameter of the Resource has been changed from Stream into a Stream Function() in order to be able to listen to a new stream if it changedBUGFIX Refactor the core of the library in order to fix issues with previousValue and hasPreviousValue of Computed and simplify the logic.
previousValue and hasPreviousValue of Computed and simplify the logic.Rename resource parameter of ResourceWidgetBuilder into resourceState. (thanks to @manuel-plavsic)
resource parameter of ResourceWidgetBuilder into resourceState. (thanks to @manuel-plavsic)refreshing from ResourceWidgetBuilder into the ResourceState. (thanks to @manuel-plavsic)hasPreviousValue getter to ReadSignal. (thanks to @manuel-plavsic)Deprecate value getter in the Resource. Use state instead.
ValueNotifier into a Signal now uses the equals comparator to keep the consistency.Deprecate value getter in the Resource. Use state instead.
Add SolidSignalOptions and SolidResourceOptions for signals and resources provided through the Solid widget. With this field you can customize the aut
Add SolidSignalOptions and SolidResourceOptions for signals and resources provided through the Solid widget.
With this field you can customize the autoDispose of each Solid signal individually. (Defaults to true).
Rename until into firstWhere
Rename untilReady into firstWhereReady
FEAT: add where method to Signal. It returns a new ReadSignal with the values filtered by condition.
Use it to filter the value of another signal, e.g.:
final loggedInUser = user.where((value) => value != null);
The initial value may be null because a Signal must always start with an initial value.
The following values will always satisfy the condition.
The returned ReadSignal will automatically dispose when the parent signal disposes.
The Show widget now takes a functions that returns a bool. You can easily convert any type to bool, for example:
The Show widget now takes a functions that returns a bool.
You can easily convert any type to bool, for example:
final count = createSignal(0);
@override
Widget build(BuildContext context) {
return Show(
when: () => count() > 5,
builder: (context) => const Text('Count is greater than 5'),
fallback: (context) => const Text('Count is lower than 6'),
);
}
Nothing published for this version
BREAKING CHANGE: To create derived signals now you should use createComputed instead of signalName.select This allows you to derive from many signals…
This is a development preview of the 1.0.0 release of solidart. The core of the library has been rewritten in order to support automatic dependency tracking like SolidJS.
FEAT: Add automatic dependency tracking
BREAKING CHANGE: To create derived signals now you should use createComputed instead of signalName.select
This allows you to derive from many signals instead of only 1.
Before:
final count = createSignal(0);
final doubleCount = count.select((value) => value * 2);
Now:
final count = createSignal(0);
final doubleCount = createComputed(() => count() * 2);
FEAT: The createEffect no longer needs a signals array, it automatically track each signal.
Before:
final effect = createEffect(() {
print('The counter is now ${counter.value}');
}, signals: [counter]);
Now:
final disposeFn = createEffect((disposeFn) {
print('The counter is now ${counter.value}');
})
BREAKING CHANGE: The createEffect method no longer returns an Effect, you cannot pause or resume it anymore.
Instead it returns a Dispose callback which you can call when you want to stop it.
You can also dispose an effect from the inside of the callback.
BREAKING CHANGE: The fireImmediately field on effects has been removed. Now an effect runs immediately by default.
FEAT: Add observe method on Signal. Use it to easily observe the previous and current value instead of creating an effect.
final count = createSignal(0);
final disposeFn = count.observe((previousValue, value) {
print('The counter changed from $previousValue to $value');
}, fireImmediately: true);
FEAT: Add until method on Signal. It returns a future that completes when the condition evaluates to true and it
returns the current signal value.
final count = createSignal(0);
// wait until the count is greater than 5
final value = await count.until((value) => value > 5);
FEAT: Add untilReady method on Resource. Now you can wait until the resource is ready.
final resource = createResource(..);
final data = await resource.untilReady();
FEAT: The Resource now accepts ResourceOptions. You can customize the lazy value of the resource (defaults to true),
if you want your resource to resolve immediately.
CHORE: ResourceValue has been renamed into ResourceState. Now you can get the state of the resource with the state getter.
FEAT: Add toValueNotifier() extension to Signal to easily convert it to a ValueNotifier.
FEAT: Add toSignal() extension to ValueNotifier to easily convert it to a Signal.
Nothing published for this version
BUGFIX: The Show widget now can work again with a ReadSignal.
Show widget now can work again with a ReadSignal.CHORE: The ResourceBuilder now correctly handles a different Resource when the widget is updated.
ResourceBuilder now correctly handles a different Resource when the widget is updated.BUGFIX: Listening to the source of a Resource was not stopped when the source disposed.
source of a Resource was not stopped when the source disposed.Resource would not perform the asynchronous operation until someone called the fetch method, typically the ResourceBuilder widget. This did not apply to the stream which was listened to when the resource was created. Now the behaviour has been merged and the fetch method has been renamed into resolve.ReadableSignal into ReadSignal.readable method of a Signal into toReadSignal()Add update extension on BuildContext. It's a convenience method to update a Signal value.
Add update extension on BuildContext.
It's a convenience method to update a Signal value.
You can use it to update a signal value, e.g:
context.update<int>('counter', (value) => value * 2);
This is equal to:
// retrieve the signal
final signal = context.get<Signal<int>>('counter');
// update the signal
signal.update((value) => value * 2);
but shorter when you don't need the signal for anything else.
Add assert to resource fetch method to prevent multiple fetches of the same resource.
fetch method to prevent multiple fetches of the same resource.ResourceBuilder that fetched the resource every time even if the resource was already resolved.The select method of a signal now can take a custom options parameter to customize its behaviour.
select method of a signal now can take a custom options parameter to customize its behaviour.ResourceBuilder widget that happens for resources without a fetcher.Now Solid can deal also with SolidProviders. You no longer need an external dependency injector library. I decided to put some boundaries and stop sug
Now Solid can deal also with SolidProviders. You no longer need an external dependency injector library.
I decided to put some boundaries and stop suggesting any external dependency injector library.
This choice is due to the fact that external libraries in turn provide state management and the user is more likely to mistakenly use solidart.
I simplified the usage of InheritedWidgets with a very nice API:
Solid(
providers: [
SolidProvider<NameProvider>(
create: () => const NameProvider('Ale'),
// the dispose method is fired when the [Solid] widget above is removed from the widget tree.
dispose: (provider) => provider.dispose(),
),
SolidProvider<NumberProvider>(
create: () => const NumberProvider(1),
// Do not create the provider lazily, but immediately
lazy: false,
),
],
child: const SomeChildThatNeedsProviders(),
)
final nameProvider = context.get<NameProvider>();
final numberProvider = context.get<NumberProvider>();
return showDialog(
context: context,
builder: (dialogContext) => Solid.value(
// pass a context that has access to providers
context: context,
// pass the list of provider [Type]s
providerTypes: const [NameProvider],
child: Dialog(
child: Builder(builder: (innerContext) {
// retrieve the provider with the innerContext
final nameProvider = innerContext.get<NameProvider>();
return SizedBox.square(
dimension: 100,
child: Center(
child: Text('name: ${nameProvider.name}'),
),
);
}),
),
),
);
You cannot provide multiple providers of the same type in the same Solid widget.
createResource now accepts a stream and can be used to wrap a Stream and correctly handle its state.
createResource now accepts a stream and can be used to wrap a Stream and correctly handle its state.Get a signal value with signalName().
signalName().Your coding agent can read these notes before it upgrades. Set up the MCP server →