A core library of R class which is generated by Flr(Flutter-R) in flutter project.
Because the Flutter SDK is currently in an unstable state, so I create the following dependency relationship table for developer to select the correct version of r_dart_library
based on the relationship table and the Flutter SDK version of Flutter project.
由于Flutter SDK目前处于不稳定的状态,所以我创建了下面这个依赖版本关系表,让开发者根据这个关系表和Flutter项目的Flutter SDK版本选择r_dart_library
的正确版本。
r_dart_library version | requires Flutter SDK version | requires Dart SDK version |
---|---|---|
[0.1.0, 0.1.1] | <1.10.15 | <2.12.0 |
[0.2.0, 0.2.1] | >=1.10.15 | <2.12.0 |
[0.4.0] | >=1.10.15 | >=2.12.0 |
-
Depend on it
Add this to your package's pubspec.yaml file:
dependencies: r_dart_library: git: url: https://github.com/YK-Unit/r_dart_library.git ref: 0.1.0
-
Install it You can install packages from the command line with Flutter:
flutter pub get
Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
-
Import it
Now in your Dart code, you can use:
import 'package:r_dart_library/asset_svg.dart';