Newer
Older
flutterBaseApp / pubspec.yaml
name: base_app
description: A new Flutter project.

# The following line prevents the package from being accidentally published to
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev

# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.0+1

environment:
  sdk: ">=2.7.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  flutter_localizations:
    sdk: flutter
  # iOS style icons.
  cupertino_icons: ^0.1.3
  # Flutter 常用工具类库 https://github.com/Sky24n/flustars
  flustars: ^0.3.2
  # toast
  oktoast: ^2.1.7
  # http请求
  dio: 1.0.13
  # 数据库
  sqflite: ^1.3.0+2
  # 单图上传
  image_picker: ^0.6.7
  # 图片预览
  photo_view: ^0.9.2
  #非对称加密包
  encrypt: ^4.0.2
  # Flutter 城市列表 https://github.com/flutterchina/azlistview
  azlistview: ^0.1.2
  # 汉字转拼音库 https://github.com/flutterchina/lpinyin
  lpinyin: ^1.0.9
  # bloc用rxdart插件 https://github.com/ReactiveX/rxdart
  rxdart: ^0.22.6
  # Flutter 国际化/多语言库 https://github.com/Sky24n/fluintl
  fluintl: ^0.1.3
  # UI工具包含下拉刷新,轮播图,快速滚动条,渐变进度条,城市选择器等https://github.com/flutterchina/flukit.
  flukit: ^1.0.2
  # 显示来自网络的图片并将它们保存在缓存 https://github.com/renefloor/flutter_cached_network_image
  cached_network_image: 2.0.0
  # 拨电话、发邮件、打开网址、打开第三方 https://github.com/flutter/plugins/tree/master/packages/url_launcher
  url_launcher: ^5.4.5
  # 分享share
  share: ^0.6.4+1
  # webview_flutter
  webview_flutter: ^0.3.21
  # 安装apk插件
  install_apk_plugin: ^1.0.1
  # 上拉加载和下拉刷新的组件 https://github.com/peng8350/flutter_pulltorefresh
  pull_to_refresh: 1.1.6
  # 权限请求插件
  permission_handler: ^5.0.0+hotfix.6
  # flutter map 基于leaflet的地图包
  flutter_map: ^0.11.0
  #获取定位包
  # location: ^3.2.4



dev_dependencies:
  flutter_test:
    sdk: flutter

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:

  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true

  # To add assets to your application, add an assets section, like this:
  assets:
    - assets/images/ic_login_bg.png
    - assets/images/guide1.png
    - assets/images/guide2.png
    - assets/images/guide3.png
    - assets/images/splash_bg.png
    - assets/images/default_avatar.jpg
    - assets/images/logo.png
    - assets/images/ic_data_empty.png
    - assets/images/ic_network_error.png
    - assets/images/qidian.png
    - assets/images/zhongdian.png
    - assets/images/jingshi.png
    - assets/keys/public_key.pem
    - assets/icons/camera.png
    - assets/icons/card.png
    - assets/icons/global.png
    - assets/icons/image.png
    - assets/icons/magic.png
    - assets/icons/position.png
    - assets/icons/scan.png
    - assets/icons/setting.png
    - assets/icons/warning.png
    - assets/icons/text.png

  # An image asset can refer to one or more resolution-specific "variants", see
  # https://flutter.dev/assets-and-images/#resolution-aware.

  # For details regarding adding assets from package dependencies, see
  # https://flutter.dev/assets-and-images/#from-packages

  # To add custom fonts to your application, add a fonts section here,
  # in this "flutter" section. Each entry in this list should have a
  # "family" key with the font family name, and a "fonts" key with a
  # list giving the asset and other descriptors for the font. For
  # example:
  fonts:
    - family: IconFont
      fonts:
        - asset: assets/font/iconfont.ttf
  #       - asset: fonts/Schyler-Italic.ttf
  #         style: italic
  #   - family: Trajan Pro
  #     fonts:
  #       - asset: fonts/TrajanPro.ttf
  #       - asset: fonts/TrajanPro_Bold.ttf
  #         weight: 700
  #
  # For details regarding fonts from package dependencies,
  # see https://flutter.dev/custom-fonts/#from-packages