rlstyles 1.0.0+1 rlstyles: ^1.0.0+1 copied to clipboard
使用rn的写法来开发flutter减少地狱嵌套
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add rlstyles
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
rlstyles: ^1.0.0+1
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:rlstyles/ContainerView.dart';
import 'package:rlstyles/HexColor.dart';
import 'package:rlstyles/ImageView.dart';
import 'package:rlstyles/Router.dart';
import 'package:rlstyles/ScrollView.dart';
import 'package:rlstyles/Styles.dart';
import 'package:rlstyles/TextView.dart';
import 'package:rlstyles/Tool.dart';
import 'package:rlstyles/View.dart';
import 'package:rlstyles/main.dart';
import 'package:rlstyles/utils.dart';