nian_common_utils 0.0.5 nian_common_utils: ^0.0.5 copied to clipboard
念安科技-通用工具包
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add nian_common_utils
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
nian_common_utils: ^0.0.5
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:nian_common_utils/manager/db/manager.dart';
import 'package:nian_common_utils/utils/cache_utils.dart';
import 'package:nian_common_utils/utils/color_utils.dart';
import 'package:nian_common_utils/utils/device_utils.dart';
import 'package:nian_common_utils/utils/dio_utils/dio_utils.dart';
import 'package:nian_common_utils/utils/dio_utils/response_handle.dart';
import 'package:nian_common_utils/utils/encrypt_util.dart';
import 'package:nian_common_utils/utils/file_utils.dart';
import 'package:nian_common_utils/utils/image_utils.dart';
import 'package:nian_common_utils/utils/loading_utils.dart';
import 'package:nian_common_utils/utils/log_utils/app_log_utils.dart';
import 'package:nian_common_utils/utils/log_utils/format_dio_logger/constants.dart';
import 'package:nian_common_utils/utils/log_utils/format_dio_logger/format_dio_logger.dart';
import 'package:nian_common_utils/utils/log_utils/format_dio_logger/pretty_util.dart';
import 'package:nian_common_utils/utils/network_utils.dart';
import 'package:nian_common_utils/utils/notify_in_app_utils/notify_in_app_utils.dart';
import 'package:nian_common_utils/utils/notify_utils/notify_utils.dart';
import 'package:nian_common_utils/utils/notify_utils/payload.dart';
import 'package:nian_common_utils/utils/num_utils.dart';
import 'package:nian_common_utils/utils/other_utils.dart';
import 'package:nian_common_utils/utils/permission_utils.dart';
import 'package:nian_common_utils/utils/queue_utils.dart';
import 'package:nian_common_utils/utils/sp_utils.dart';
import 'package:nian_common_utils/utils/status_bar_utils.dart';
import 'package:nian_common_utils/utils/string_utils.dart';
import 'package:nian_common_utils/utils/time_countdown.dart';
import 'package:nian_common_utils/utils/time_utils.dart';
import 'package:nian_common_utils/utils/timeline_util.dart';
import 'package:nian_common_utils/utils/toast_utils.dart';
import 'package:nian_common_utils/utils/tutorial_utils.dart';
import 'package:nian_common_utils/utils/version_utils.dart';
import 'package:nian_common_utils/utils/widget_utils.dart';