dart.dev/

Dart是一种专为构建用户界面优化的编程语言,支持成熟的异步等待和隔离并发处理。它拥有易学的语法,如扩展操作符和平台定制UI的功能。开发过程高效,提供热重载功能,结合强大的静态分析和工具。Dart可以在所有平台上实现快速运行,支持AOT编译和JavaScript编译,同时也能用于后台代码编写。

Dart官方网站

Optimized for UI
为用户界面做了优化

  • Mature and complete async-await for user interfaces containing event-driven code, paired with isolate-based concurrency
    当用户界面有事件驱动代码时,有完善成熟的异步等待功能, 还配有独立的并发处理(async顾名思义是“异步”的意思,async用于声明一个函数是异步的。而await从字面意思上是“等待”的意思,就是用于等待异步完成。并且await只能在async函数中使用)
  • A programming language optimized for building user interfaces with features such as the spread operator for expanding collections, and collection if for customizing UI for each platform
    一种针对用户界面优化了的编程语言, 带有特有功能.像为每个平台用spread operator来扩展收藏, 用collection if 来定制UI.
  • A programming language that is easy to learn, with a familiar syntax
    一种易于学习,并且语法简单的编程语言

Productive development
高效开发

  • Make changes to your source code iteratively, using hot reload to instantly see the effect in the running app
    当代码变化迭代时, 使用热部署立即在运行的应用上看到效果.
  • Write code using a flexible type system with rich static analysis and powerful, configurable tooling
    使用灵活的编辑系统写代码.提供丰富的静态分析和强大的配置工具
  • Do profiling, logging, and debugging with your code editor of choice
    使用精致的代码编辑器进行文档编辑, 记日志, 和 debug.

Fast on all platforms
在所有平台上都很快

  • AOT-compile apps to native machine code for instant startup
    AOT-compile 编译应用到原生代码, 可以立即启动.
  • Target the web with complete, mature, fast compilers for JavaScript
    JavaScript编译器 可以完整,成熟,快速的执行到web端.
  • Run backend code supporting your app, written using a single programming language
    启动后台代码支持你的应用,使用一种简单的编程语言
name: study03 description: "A new Flutter project." # The following line prevents the package from being accidentally published to # pub.dev using `flutter 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 is used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. version: 1.0.0+1 environment: sdk: ">=2.12.0 <3.0.0" # Dependencies specify other packages that your package needs in order to work. # To automatically upgrade your package dependencies to the latest versions # consider running `flutter pub upgrade --major-versions`. Alternatively, # dependencies can be manually updated by changing the version numbers below to # the latest version available on pub.dev. To see which dependencies have newer # versions available, run `flutter pub outdated`. dependencies: flutter: 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 dio: ^2.0.10 flutter_swiper: ^1.1.4 flutter_screenutil: ^0.5.1 url_launcher: ^5.0.1 flutter_easyrefresh: ^1.2.7 provide: ^1.0.2 fluttertoast: ^3.0.1 fluro: ^2.0.5 flutter_html: ^0.9.6 shared_preferences: ^0.5.2 dev_dependencies: flutter_test: sdk: flutter # The "flutter_lints" package below contains a set of recommended lints to # encourage good coding practices. The lint set provided by the package is # activated in the `analysis_options.yaml` file located at the root of your # package. See that file for information about deactivating specific lint # rules and activating additional ones. flutter_lints: ^5.0.0 # 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 packages. 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: # - 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.dev/to/resolution-aware-images # For details regarding adding assets from package dependencies, see # https://flutter.dev/to/asset-from-package # 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.dev/to/font-from-package 这是目前的文件内容,然后还是出现:The current Dart SDK version is 3.7.2. Because study03 depends on provide >=1.0.1 which doesn't support null safety, version solving failed. The lower bound of "sdk: '>=2.0.0 <3.0.0'" must be 2.12.0 or higher to enable null safety. For details, see https://dart.dev/null-safety Failed to update packages. exit code 1
06-09
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值