signals_lint

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

signals lint

Linter and developer tools for signals.
Getting started #
Run this command in the root of your Flutter project:
flutter pub add -d signals_lint custom_lint
copied to clipboard
Then edit your analysis_options.yaml file and add these lines of code:
analyzer:
plugins:
- custom_lint
copied to clipboard
Then run:
flutter clean
flutter pub get
dart run custom_lint
copied to clipboard
Fixes #
Wrap with Watch #
Wrap any Widget with Watch to automatically rebuild it when a signal is emitted.
Before:
class Widget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Text(
'Hello World',
style: TextStyle(
color: Colors.black,
),
);
}
}
copied to clipboard
After:
class Widget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Watch((context) => Text(
'Hello World',
style: TextStyle(
color: Colors.black,
),
));
}
}
copied to clipboard
Other packages #



Package
Pub




signals



signals_core



signals_flutter

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.