basic_utils_flutter 0.0.4 basic_utils_flutter: ^0.0.4 copied to clipboard
Basic utils for flutter_project (AppRoutes-Localization-Dialogs-Validator)
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add basic_utils_flutter
With Flutter:
$ flutter pub add basic_utils_flutter
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
basic_utils_flutter: ^0.0.4
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:basic_utils_flutter/app_export.dart';
import 'package:basic_utils_flutter/constants/color_constants.dart';
import 'package:basic_utils_flutter/constants/constants.dart';
import 'package:basic_utils_flutter/constants/image_constants.dart';
import 'package:basic_utils_flutter/dialog/dialog_utils.dart';
import 'package:basic_utils_flutter/dialog/progress_dialog_utils.dart';
import 'package:basic_utils_flutter/localization/app_localization.dart';
import 'package:basic_utils_flutter/localization/en_us/en_us_translations.dart';
import 'package:basic_utils_flutter/localization/it/it_translations.dart';
import 'package:basic_utils_flutter/routes/app_routes.dart';
import 'package:basic_utils_flutter/routes/navigator_service.dart';
import 'package:basic_utils_flutter/size/size_utils.dart';
import 'package:basic_utils_flutter/theme/app_decoration.dart';
import 'package:basic_utils_flutter/theme/app_style.dart';
import 'package:basic_utils_flutter/validator/validator_functions.dart';