flutter学习笔记(一)

目录结构

  • ios ios代码所在
  • android android代码所在
  • lib 主要的代码编写地
  • test 测试相关文件
  • pubspec.yaml 配置文件(配置依赖)

玩android项目pubspec.yaml文件

name: flutter_wanandroid
description: Flutter Wanandroid App.

# 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.
# Read more about versioning at semver.org.
version: 0.1.5+1

environment:
  sdk: ">=2.1.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
#  用于实现国际化功能
  flutter_localizations:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.2
  # 汉字转拼音库 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
  # Flutter 国际化/多语言库 https://github.com/Sky24n/fluintl
  fluintl: ^0.1.2
  # Flutter 城市列表 https://github.com/flutterchina/azlistview
  azlistview: ^0.1.0


  # https://github.com/flutterchina/dio
  dio: ^1.0.13
  # rxdart https://github.com/ReactiveX/rxdart
  rxdart: ^0.21.0
  # https://github.com/renefloor/flutter_cached_network_image
  cached_network_image: ^0.7.0
  # https://github.com/flutter/plugins/tree/master/packages/url_launcher
  url_launcher: ^5.0.2
  # https://github.com/peng8350/flutter_pulltorefresh
  pull_to_refresh: ^1.1.6
  # device_info
  device_info: ^0.4.0+1
  # webview_flutter
  webview_flutter: ^0.3.4
  # https://github.com/flutterchina/flukit.
  flukit: ^1.0.0

dev_dependencies:
  flutter_test:
    sdk: flutter


# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/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
  assets:
    - assets/images/ali_connors.png
    - assets/images/ali_connors_sml.png
    - assets/images/qrcode.png
    - assets/images/icon_wan_android.png
    - assets/images/ic_launcher_news.png
    - assets/images/guide1.png
    - assets/images/guide2.png
    - assets/images/guide3.png
    - assets/images/guide4.png
    - assets/images/splash_bg.png

    - assets/data/china.json

  # To add assets to your application, add an assets section, like this:
  # assets:
  #  - images/a_dot_burr.jpeg
  #  - images/a_dot_ham.jpeg

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

  # For details regarding adding assets from package dependencies, see
  # https://flutter.io/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: Schyler
  #     fonts:
  #       - asset: fonts/Schyler-Regular.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.io/custom-fonts/#from-packages

你可能感兴趣的:(flutter学习笔记(一))