Flutter Widget API
Flutter Widget API
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
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/12735478.html
未经授权禁止转载,违者必究!