Setup
The library is made up of four packages:
solidart
This package is meant to be used only in Dart applications.
Install
Run this command in the root of your project:
dart pub add solidartImport it
import 'package:solidart/solidart.dart';flutter_solidart
This package extends the functionatilies of solidart and is meant to be used only in Flutter applications.
Install
Run this command in the root of your project:
flutter pub add flutter_solidartImport it
import 'package:flutter_solidart/flutter_solidart.dart';solidart_hooks
Flutter Hooks bindings for Solidart, suitable for ephemeral state and for writing less boilerplate.
Install
Run this command in the root of your project:
flutter pub add solidart_hooksImport it
import 'package:solidart_hooks/solidart_hooks.dart';solidart_lint
This package is a developer tool for users of flutter_solidart, designed to help stop common issues and simplify repetitive tasks.
Install
Run this command in the root of your Flutter project:
flutter pub add -d solidart_lint custom_lintThen edit your analysis_options.yaml file and add these lines of code:
analyzer: plugins: - custom_lintThen run:
rm pubspec.lockflutter cleanflutter pub getdart run custom_lintUpdate lints (suggested)
You may also update the analysis_options.yaml rules to work well with solidart.
linter: rules: use_late_for_private_fields_and_variables: false implicit_call_tearoffs: false specify_nonobvious_property_types: false