用最好的代码实现每一个flutter widget。
- SafeArea
- Expanded
- Wrap
- AnimatedContainer
- Opacity
- FutureBuilder
- FadeTransition
- FloatingActionButton
- PageView
- Table
- SliverAppBar
- SliverListAndSliverGrid
- FadeInImage
- StreamBuilder
- InheritedModel
- ClipRRect
- Hero
- CustomPaint
- Tooltip
- FittedBox
- LayoutBuilder
- AbsorbPointer
- Transform
- BackdropFilter
- Align
- Positioned
- AnimatedBuilder
- Dismissible
- SizedBox
- ValueListenableBuilder
- Draggable
- AnimatedList
- Flexible
- MediaQuery
- Spacer
- InheritedWidget
- AnimatedIcon
- AspectRatio
- LimitedBox
- Placeholder
- RichText
- ReorderableListView
- AnimatedSwitcher *
- AnimatedPositioned
- AnimatedPadding
- IndexedStack
- Semantics
- ConstrainedBox
- Stack
- AnimatedOpacity
- FractionallySizedBox
- ListView
- ListTile
- Container
- SelectableText
- DataTable
- Slider
- AlertDialog
- AboutDialog
假设新增控件widget,
- 需在
lib\pages
里实现,写出逐字稿和翻译 - 将
img\resource
里的对应图片重命名为该控件的全小写下划线命名,并转移到assets\images
目录下 - 在
lib\entity\WidgetModel.dart
的WidgetNames
内添加控件的全大写下划线命名 - 复制枚举类型
WidgetNames
到test\routes_generate.dart
里,运行程序,生成字符串到路由的列表,复制到lib\Routes.dart
下, - 修改
lib\main.dart
里_MyHomePageState
类里的subtitlesIndex
子标题属性,注意下标
- 设置联网权限
lib\pages\SliverAppBarDemo.dart
的图片高度获取的实现
由于学习了新的使用方法,动画将更加流畅从 AnimatedPositioned
开始将使用一些令人舒适的动画效果,当然也伴随着较高成本的学习量,希望您能更上学习节奏
安卓打包命令:
> flutter build apk --split-per-abi