ns_utils 1.0.0-nullsafety ns_utils: ^1.0.0-nullsafety copied to clipboard
Set of methods/extentions for flutter that makes using framework in a much easier and clean way also adds additional functionality.
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.0.0-nullsafety
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/crossplat_object_id/crossplat_objectid.dart';
import 'package:ns_utils/utils/crossplat_object_id/src/objectid.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';