fairy_flutter_comm 0.0.1-dev fairy_flutter_comm: ^0.0.1-dev copied to clipboard
This is a fullter tool class, which encapsulates various tool processing classes.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add fairy_flutter_comm
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
fairy_flutter_comm: ^0.0.1-dev
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:fairy_flutter_comm/comm_http.dart';
import 'package:fairy_flutter_comm/comm_utils.dart';
import 'package:fairy_flutter_comm/generated/intl/messages_all.dart';
import 'package:fairy_flutter_comm/generated/intl/messages_en.dart';
import 'package:fairy_flutter_comm/generated/l10n.dart';
import 'package:fairy_flutter_comm/http/api_request.dart';
import 'package:fairy_flutter_comm/http/bean/dto/result_dto.dart';
import 'package:fairy_flutter_comm/http/bean/dto/result_dto.g.dart';
import 'package:fairy_flutter_comm/http/bean/dto/result_list_dto.dart';
import 'package:fairy_flutter_comm/http/bean/dto/result_list_dto.g.dart';
import 'package:fairy_flutter_comm/http/bean/param/empty_param.dart';
import 'package:fairy_flutter_comm/http/bean/param/empty_param.g.dart';
import 'package:fairy_flutter_comm/http/bean/param/id_param.dart';
import 'package:fairy_flutter_comm/http/bean/param/id_param.g.dart';
import 'package:fairy_flutter_comm/http/bean/param/token_param.dart';
import 'package:fairy_flutter_comm/http/bean/param/token_param.g.dart';
import 'package:fairy_flutter_comm/http/exception/biz_exception.dart';
import 'package:fairy_flutter_comm/http/http_config.dart';
import 'package:fairy_flutter_comm/http/http_platform.dart';
import 'package:fairy_flutter_comm/http/http_server.dart';
import 'package:fairy_flutter_comm/http/i_throw_handler.dart';
import 'package:fairy_flutter_comm/http/intercepter/token_intercepter.dart';
import 'package:fairy_flutter_comm/utils/color_utils.dart';
import 'package:fairy_flutter_comm/utils/date_utils.dart';
import 'package:fairy_flutter_comm/utils/encrypt_utils.dart';
import 'package:fairy_flutter_comm/utils/enums/account_regex.dart';
import 'package:fairy_flutter_comm/utils/enums/date_format.dart';
import 'package:fairy_flutter_comm/utils/enums/num_format.dart';
import 'package:fairy_flutter_comm/utils/exten/k_double.dart';
import 'package:fairy_flutter_comm/utils/exten/k_object.dart';
import 'package:fairy_flutter_comm/utils/exten/k_widget.dart';
import 'package:fairy_flutter_comm/utils/json_utils.dart';
import 'package:fairy_flutter_comm/utils/money_utils.dart';
import 'package:fairy_flutter_comm/utils/num_utils.dart';
import 'package:fairy_flutter_comm/utils/random_utils.dart';
import 'package:fairy_flutter_comm/utils/regex/regex_const.dart';
import 'package:fairy_flutter_comm/utils/regex_utils.dart';
import 'package:fairy_flutter_comm/utils/sp_utils.dart';
import 'package:fairy_flutter_comm/utils/status_bar_utils.dart';
import 'package:fairy_flutter_comm/utils/system_utils.dart';
import 'package:fairy_flutter_comm/utils/text_utils.dart';
import 'package:fairy_flutter_comm/utils/timer_utils.dart';
import 'package:fairy_flutter_comm/utils/xlog.dart';
import 'package:fairy_flutter_comm/xutils.dart';