ns_utils 1.1.2 ns_utils: ^1.1.2 copied to clipboard
ns_utils is a powerful Flutter utility library that simplifies and enhances your Flutter app development experience. It provides a collection of methods and extensions to streamline your code, making [...]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add ns_utils
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
ns_utils: ^1.1.2
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:ns_utils/constants.dart';
import 'package:ns_utils/data_type/stackx.dart';
import 'package:ns_utils/extensions/context.dart';
import 'package:ns_utils/extensions/date_time.dart';
import 'package:ns_utils/extensions/double.dart';
import 'package:ns_utils/extensions/duration.dart';
import 'package:ns_utils/extensions/functions.dart';
import 'package:ns_utils/extensions/int.dart';
import 'package:ns_utils/extensions/list.dart';
import 'package:ns_utils/extensions/map.dart';
import 'package:ns_utils/extensions/string.dart';
import 'package:ns_utils/extensions/widgets/gesture_detector.dart';
import 'package:ns_utils/extensions/widgets/widgets.dart';
import 'package:ns_utils/methods/conversion.dart';
import 'package:ns_utils/methods/helper.dart';
import 'package:ns_utils/page_route/tansparent_route.dart';
import 'package:ns_utils/services/device_service/device_service.dart';
import 'package:ns_utils/services/shared_preferences/sp_service.dart';
import 'package:ns_utils/services/statusbar_service/statusbar_service.dart';
import 'package:ns_utils/utils/focus_detector.dart';
import 'package:ns_utils/utils/sizes.dart';
import 'package:ns_utils/utils/validators.dart';
import 'package:ns_utils/widgets/custom_error_widget.dart';
import 'package:ns_utils/widgets/spacers.dart';