
Flutter
Ginhoor
这个作者很懒,什么都没留下…
展开
-
【Flutter】Stateful widgets与Stateless widgets
前言在创建一个Flutter App的时候,会遇到两种类型的控件有状态控件(stateful widgets)无状态控件(stateless widgets)Stateless Widgets在创建控件的时候,有一些控件不需要管理控件内部状态,这个时候就可以选择无状态控件。无状态控件除了用数据初始化以外的时刻,不需要改变它的状态。在Flutter中,比较常见的有Text,Raise...翻译 2019-02-25 19:13:04 · 319 阅读 · 0 评论 -
Flutter Mac iOS 环境配置
官方文档:https://flutter.io/docs/get-started/install/macos1.需要的命令行工具bashcurlgit 2.xmkdirrmunzipwhich2.SDK下载地址flutter_macos_v1.0.0-stable.ziphttps://storage.googleapis.com/flutter_infra/releases...原创 2019-01-14 18:13:29 · 1226 阅读 · 0 评论 -
ConstrainedBox class
官方文档ConstrainedBox classConstrainedBox classA widget that imposes additional constraints on its child.ConstrainedBox 可以为它的子控件强制加上一个约束条件。For example, if you wanted child to have a minimum height ...翻译 2019-03-03 23:51:30 · 415 阅读 · 0 评论 -
Flexible class
官方文档Flexible classFlexible classA widget that controls how a child of a Row, Column, or Flex flexes.用于控制Row、Column、Flex子控件的控件。Using a Flexible widget gives a child of a Row, Column, or Flex the ...翻译 2019-03-04 00:00:13 · 195 阅读 · 0 评论 -
LayoutBuilder class
官方文档LayoutBuilder classLayoutBuilder classBuilds a widget tree that can depend on the parent widget’s size.构建依赖于父控件大小的控件树Similar to the Builder widget except that the framework calls the builder...翻译 2019-03-04 00:00:54 · 581 阅读 · 0 评论 -
Positioned class
官方文档Positioned classPositioned classA widget that controls where a child of a Stack is positioned.一个用来控制它的子控件在Stack中的放置位置。A Positioned widget must be a descendant of a Stack, and the path from t...翻译 2019-03-04 00:01:24 · 300 阅读 · 0 评论 -
SizedBox class
官方文档SizedBox classSizedBox classA box with a specified size.具有指定大小的盒子If given a child, this widget forces its child to have a specific width and/or height (assuming values are permitted by this ...翻译 2019-03-04 00:01:48 · 324 阅读 · 0 评论 -
SlideTransition class
官方文档SlideTransition classSlideTransition classAnimates the position of a widget relative to its normal position.相对于控件的正常位置进行位置动画。The translation is expressed as a Offset scaled to the child’s si...翻译 2019-03-04 00:02:12 · 438 阅读 · 0 评论