# flutter_lib **Repository Path**: flutterzen/flutter_lib ## Basic Information - **Project Name**: flutter_lib - **Description**: No description available - **Primary Language**: Dart - **License**: BSD-3-Clause-Clear - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-08-07 - **Last Updated**: 2021-11-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # flutter_lib #### 介绍 Flutter 常用Lib库 、常用命令 #### Lib ```yaml # 汉字转拼音库 https://github.com/flutterchina/lpinyin lpinyin: ^1.0.7 # Dart 常用工具类库 https://github.com/Sky24n/common_utils common_utils: ^1.1.1 # Flutter 常用工具类库 https://github.com/Sky24n/flustars flustars: ^0.2.5+1 # Flutter 国际化/多语言库 https://github.com/Sky24n/fluintl fluintl: ^0.1.3 # Flutter 城市列表 https://github.com/flutterchina/azlistview azlistview: ^0.1.2 # https://github.com/flutterchina/dio dio: 1.0.13 # rxdart https://github.com/ReactiveX/rxdart rxdart: ^0.22.0 # https://github.com/renefloor/flutter_cached_network_image cached_network_image: ^0.8.0 # https://github.com/flutter/plugins/tree/master/packages/url_launcher url_launcher: ^5.0.3 # https://github.com/peng8350/flutter_pulltorefresh pull_to_refresh: 1.1.6 # device_info device_info: ^0.4.0+2 # webview_flutter webview_flutter: ^0.3.9+1 # https://github.com/flutterchina/flukit. flukit: ^1.0.0 ``` #### 命令 ```bash flutter doctor flutter --version flutter create flutter run flutter run --profile flutter pub get flutter build apk flutter build ios flutter build aar ``` #### 环境变量配置 ``` FLUTTER_STORAGE_BASE_URL https://storage.flutter-io.cn PUB_HOSTED_URL https://pub.flutter-io.cn ``` #### Example 1. dio 请求 webservice接口 ```dart void httpRequest() async { Dio dio = Dio(); String params = " {\"OperatorCode\":\"18530881233\",\"Password\":\"888888\"} {\"password\":\"123456\",\"userId\":\"16639439562\"}"; Response response = await dio.post( "http://1.194.232.201:8014/TempControllerAppService.asmx?op=Login", data: params, options: Options(contentType: ContentType.parse("text/xml"))); print("Http post 返回webservice接口数据: " + response.data.toString()); } ```