To get started, as this packages are contained in private repo, so we need to connect using SSH in our project
Make sure to set up SSH with a common host atoa.github.com, so to avoid conflicts while using dependencies in project
- Example(SSH Config):-
# Work - Work
Host atoa.github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_work
- Add dependecies
dependencies:
regal: ^3.7.8Need to include the import the package to the dart file where it will be used, use the below command,
import 'package:regal/regal.dart';2. Custom Semantics Lint - Custom lint to add semanticsLabel or Wrap with Semantics widget for improving accessibility
- Add below lines to analysis_options.yaml
analyzer:
plugins:
- custom_lint- Add below lines to pubspec.yaml under
dev_dependencies
custom_semantics_lints:
git:
url: git@atoa.github.com:ATOAPaymentsLimited/atoa-flutter-packages.git
ref: v3.7.9
path: packages/custom_semantics_lintsflutter_lints: ^2.0.0- Add dependecies
dependencies:
ledger_design_system: ^1.0.7Need to include the import the package to the dart file where it will be used, use the below command,
import 'package:ledger_design_system/ledger_design_system.dart';