pubspec.yaml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. name: electronic_assistant
  2. description: "A new Flutter project."
  3. # The following line prevents the package from being accidentally published to
  4. # pub.dev using `flutter pub publish`. This is preferred for private packages.
  5. publish_to: 'none' # Remove this line if you wish to publish to pub.dev
  6. # The following defines the version and build number for your application.
  7. # A version number is three numbers separated by dots, like 1.2.43
  8. # followed by an optional build number separated by a +.
  9. # Both the version and the builder number may be overridden in flutter
  10. # build by specifying --build-name and --build-number, respectively.
  11. # In Android, build-name is used as versionName while build-number used as versionCode.
  12. # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
  13. # In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion.
  14. # Read more about iOS versioning at
  15. # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
  16. # In Windows, build-name is used as the major, minor, and patch parts
  17. # of the product and file versions while build-number is used as the build suffix.
  18. version: 1.0.0+1
  19. environment:
  20. sdk: '>=3.4.3 <4.0.0'
  21. # Dependencies specify other packages that your package needs in order to work.
  22. # To automatically upgrade your package dependencies to the latest versions
  23. # consider running `flutter pub upgrade --major-versions`. Alternatively,
  24. # dependencies can be manually updated by changing the version numbers below to
  25. # the latest version available on pub.dev. To see which dependencies have newer
  26. # versions available, run `flutter pub outdated`.
  27. dependencies:
  28. flutter:
  29. sdk: flutter
  30. cupertino_icons: ^1.0.6
  31. # 状态管理
  32. get: ^4.6.6
  33. # 网络请求
  34. dio: ^5.6.0
  35. retrofit: '>=4.0.0 <5.0.0'
  36. pretty_dio_logger: ^1.4.0
  37. json_annotation: ^4.8.1
  38. # 包信息
  39. package_info: ^2.0.2
  40. # 屏幕适配
  41. flutter_screenutil: ^5.9.3
  42. # dialog
  43. flutter_smart_dialog: ^4.9.8
  44. #tencent mmkv
  45. mmkv: ^1.3.9
  46. #上、下拉刷新
  47. pull_to_refresh: ^2.0.0
  48. #lottie
  49. lottie: ^3.1.2
  50. #解压
  51. archive: ^3.6.1
  52. #录音
  53. record: ^5.1.2
  54. #uuid
  55. uuid: ^4.5.0
  56. dev_dependencies:
  57. flutter_test:
  58. sdk: flutter
  59. # The "flutter_lints" package below contains a set of recommended lints to
  60. # encourage good coding practices. The lint set provided by the package is
  61. # activated in the `analysis_options.yaml` file located at the root of your
  62. # package. See that file for information about deactivating specific lint
  63. # rules and activating additional ones.
  64. flutter_lints: ^3.0.0
  65. retrofit_generator: '>=7.0.0 <8.0.0'
  66. build_runner: '>=2.3.0 <4.0.0'
  67. json_serializable: ^6.6.2
  68. flutter_gen_runner:
  69. flutter_launcher_icons: "^0.13.1"
  70. #----------启动图标配置---------------
  71. flutter_launcher_icons:
  72. android: true
  73. ios: true
  74. image_path: "assets/images/logo.png"
  75. min_sdk_android: 21
  76. #----------gen配置---------------
  77. flutter_gen:
  78. output: lib/resource/
  79. colors:
  80. inputs:
  81. - assets/color/common_color.xml
  82. - assets/color/color.xml
  83. # The following section is specific to Flutter packages.
  84. flutter:
  85. # The following line ensures that the Material Icons font is
  86. # included with your application, so that you can use the icons in
  87. # the material Icons class.
  88. uses-material-design: true
  89. assets:
  90. - assets/images/
  91. - assets/anim/
  92. # An image asset can refer to one or more resolution-specific "variants", see
  93. # https://flutter.dev/assets-and-images/#resolution-aware
  94. # For details regarding adding assets from package dependencies, see
  95. # https://flutter.dev/assets-and-images/#from-packages
  96. # To add custom fonts to your application, add a fonts section here,
  97. # in this "flutter" section. Each entry in this list should have a
  98. # "family" key with the font family name, and a "fonts" key with a
  99. # list giving the asset and other descriptors for the font. For
  100. # example:
  101. # fonts:
  102. # - family: Schyler
  103. # fonts:
  104. # - asset: fonts/Schyler-Regular.ttf
  105. # - asset: fonts/Schyler-Italic.ttf
  106. # style: italic
  107. # - family: Trajan Pro
  108. # fonts:
  109. # - asset: fonts/TrajanPro.ttf
  110. # - asset: fonts/TrajanPro_Bold.ttf
  111. # weight: 700
  112. #
  113. # For details regarding fonts from package dependencies,
  114. # see https://flutter.dev/custom-fonts/#from-packages