szhassistant 0.0.7 szhassistant: ^0.0.7 copied to clipboard
szh Assistant is used to facilitate the creation of applications and contains some basic things in each application, such as the appbar and dialog, the most used text sizes and the most used colors, a [...]
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add szhassistant
With Flutter:
$ flutter pub add szhassistant
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
szhassistant: ^0.0.7
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:szhassistant/main.dart';
import 'package:szhassistant/router/routers.dart';
import 'package:szhassistant/runMain/conf.dart';
import 'package:szhassistant/theme/colors.dart';
import 'package:szhassistant/theme/textsize.dart';
import 'package:szhassistant/theme/theme.dart';
import 'package:szhassistant/tools/SizeConfig.dart';
import 'package:szhassistant/tools/size.dart';
import 'package:szhassistant/widget/mybar.dart';
import 'package:szhassistant/widget/showdialog.dart';