The library is made up of three packages:
This package is meant to be used only in Dart applications.
Run this command in the root of your project:
sh
dart pub add solidartdart
import 'package:solidart/solidart.dart';This package extends the functionatilies of solidart and is meant to be used only in Flutter applications.
Run this command in the root of your project:
sh
flutter pub add flutter_solidartdart
import 'package:flutter_solidart/flutter_solidart.dart';This package is a developer tool for users of flutter_solidart, designed to help stop common issues and simplify repetitive tasks.
Success
I highly recommend using this package to avoid errors and understand how to properly use flutter_solidart
Run this command in the root of your Flutter project:
sh
flutter pub add -d solidart_lint custom_lintThen edit your analysis_options.yaml file and add these lines of code:
yaml
analyzer:
plugins:
- custom_lintThen run:
sh
rm pubspec.lock
flutter clean
flutter pub get
dart run custom_lintYou may also update the analysis_options.yaml rules to work well with solidart.
yaml
linter:
rules:
use_late_for_private_fields_and_variables: false
implicit_call_tearoffs: false