xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

Flutter Widget API

Flutter Widget API

https://api.flutter.dev/

https://api.flutter.dev/flutter/material/material-library.html

https://api.flutter.dev/flutter/gestures/gestures-library.html

https://api.flutter.dev/flutter/cupertino/cupertino-library.html

https://api.flutter.dev/flutter/semantics/semantics-library.html

https://api.flutter.dev/flutter/animation/animation-library.html

https://api.flutter.dev/flutter/widgets/widgets-library.html

Widget

https://flutter.dev/docs/development/ui/widgets


image

pubspec.yaml

https://flutter.dev/docs/development/ui/assets-and-images#specifying-assets

https://dart.dev/tools/pub/pubspec


  # To add assets to your application, add an assets section, like this:
  # assets:
  #  - images/a_dot_burr.jpeg
  #  - images/a_dot_ham.jpeg
  assets:
    # The lib/ is implied, so it should not be included in the asset path.
    # ??? lib/ ??? 好坑呀,不是说不要 lib 吗
    # ❌
    # - imgs/logo.png
    # 👌
    - lib/imgs/logo.png


https://github.com/xgqfrms/flutter/commit/63ba5304914ae6244299f77db6d95d2b96e3463d#diff-074c3ae674b5357a273ad1c307d5415a


posted @ 2020-04-20 01:31  xgqfrms  阅读(245)  评论(3编辑  收藏  举报