pubspec.yaml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. name: flutter_tool_base
  2. description: a simple tool lib use some convenient tool
  3. version: 0.0.1
  4. homepage: https://github.com/linbing520/flutter_tool_base
  5. # The following line prevents the package from being accidentally published to
  6. # pub.dev using `pub publish`. This is preferred for private packages.
  7. #publish_to: 'none' # Remove this line if you wish to publish to pub.dev
  8. # The following defines the version and build number for your application.
  9. # A version number is three numbers separated by dots, like 1.2.43
  10. # followed by an optional build number separated by a +.
  11. # Both the version and the builder number may be overridden in flutter
  12. # build by specifying --build-name and --build-number, respectively.
  13. # In Android, build-name is used as versionName while build-number used as versionCode.
  14. # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
  15. # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
  16. # Read more about iOS versioning at
  17. # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
  18. environment:
  19. sdk: ">=2.7.0 <3.0.0"
  20. dependencies:
  21. flutter:
  22. sdk: flutter
  23. # The following adds the Cupertino Icons font to your application.
  24. # Use with the CupertinoIcons class for iOS style icons.
  25. cupertino_icons: ^0.1.3
  26. json_annotation: ^3.0.0
  27. dev_dependencies:
  28. flutter_test:
  29. sdk: flutter
  30. build_runner: ^1.6.5 # 用于自动生成代码
  31. json_serializable: ^3.3.0
  32. # For information on the generic Dart part of this file, see the
  33. # following page: https://dart.dev/tools/pub/pubspec
  34. # The following section is specific to Flutter.
  35. flutter:
  36. # The following line ensures that the Material Icons font is
  37. # included with your application, so that you can use the icons in
  38. # the material Icons class.
  39. uses-material-design: true
  40. # To add assets to your application, add an assets section, like this:
  41. # assets:
  42. # - imgs/empty.png
  43. # - imgs/error.png
  44. # An image asset can refer to one or more resolution-specific "variants", see
  45. # https://flutter.dev/assets-and-images/#resolution-aware.
  46. # For details regarding adding assets from package dependencies, see
  47. # https://flutter.dev/assets-and-images/#from-packages
  48. # To add custom fonts to your application, add a fonts section here,
  49. # in this "flutter" section. Each entry in this list should have a
  50. # "family" key with the font family name, and a "fonts" key with a
  51. # list giving the asset and other descriptors for the font. For
  52. # example:
  53. # fonts:
  54. # - family: Schyler
  55. # fonts:
  56. # - asset: fonts/Schyler-Regular.ttf
  57. # - asset: fonts/Schyler-Italic.ttf
  58. # style: italic
  59. # - family: Trajan Pro
  60. # fonts:
  61. # - asset: fonts/TrajanPro.ttf
  62. # - asset: fonts/TrajanPro_Bold.ttf
  63. # weight: 700
  64. #
  65. # For details regarding fonts from package dependencies,
  66. # see https://flutter.dev/custom-fonts/#from-packages