- 1 MaterialApp MaterialApp 是我们app开发中常用的符合MaterialApp Design设计理念的入口Widget。 2 构造函数 MaterialApp({ Key key, this.title = '', this.home, this.colo... 1 MaterialApp MaterialApp 是我们app开发中常用的符合MaterialApp Design设计理念的入口Widget。 2 构造函数 MaterialApp({ Key key, this.title = '', this.home, this.colo...
- 1 SizedBox 两种用法:一是可用来设置两个widget之间的间距,二是可以用来限制子组件的大小 2 构造函数 SizedBox({ Key key, this.width, this.height, Widget child }) 3 常用属性 3.1 width:Siz... 1 SizedBox 两种用法:一是可用来设置两个widget之间的间距,二是可以用来限制子组件的大小 2 构造函数 SizedBox({ Key key, this.width, this.height, Widget child }) 3 常用属性 3.1 width:Siz...
- 1 ButtonBar ButtonBar 可以默认实现一个按钮组,通过 children 属性可以传入多个 Button。 2 构造函数 const ButtonBar({ Key key, this.alignment = MainAxisAlignment.end, ... 1 ButtonBar ButtonBar 可以默认实现一个按钮组,通过 children 属性可以传入多个 Button。 2 构造函数 const ButtonBar({ Key key, this.alignment = MainAxisAlignment.end, ...
- 1 Radio Radio 单选框,允许用户从一组中选择一个选项。 2 构造函数 const Radio({ Key key, this.groupValue , this.activeColor, this.value, this.onChang... 1 Radio Radio 单选框,允许用户从一组中选择一个选项。 2 构造函数 const Radio({ Key key, this.groupValue , this.activeColor, this.value, this.onChang...
- 1 Checkbox Checkbox 是一个复选框组件,通常用于设置的选项里。 2 构造函数 const Checkbox({ Key key, this.activeColor, this.tristate, this.value, this.... 1 Checkbox Checkbox 是一个复选框组件,通常用于设置的选项里。 2 构造函数 const Checkbox({ Key key, this.activeColor, this.tristate, this.value, this....
- 1 FloatingActionButton FloatingActionButton(FAB) 控件是一个纸墨设计中定义的 FAB 按钮。用来显示界面上的主要功能。 2 构造函数 FloatingActionButton({ Key key, this.child, t... 1 FloatingActionButton FloatingActionButton(FAB) 控件是一个纸墨设计中定义的 FAB 按钮。用来显示界面上的主要功能。 2 构造函数 FloatingActionButton({ Key key, this.child, t...
- 1 Drawer 从Scaffold边缘水平滑动以显示应用程序中导航链接的Material Design面板。 2 构造函数 Drawer({ Key key, this.elevation = 16.0, this.child, this.semanticLabe... 1 Drawer 从Scaffold边缘水平滑动以显示应用程序中导航链接的Material Design面板。 2 构造函数 Drawer({ Key key, this.elevation = 16.0, this.child, this.semanticLabe...
- 最近在写flutter入门的项目,打算把常用的widgets和插件用法总结下,方便后期查找,项目大概是这个样子。 搜索页 widgets属性页面写的时候考虑排版,但是文字居多,如果设计下排版,用widgets把样式写好,后期如果需要修改,则改动比较大,所以考虑使用markdown,毕竟也是支持的。 1.安装依赖 根... 最近在写flutter入门的项目,打算把常用的widgets和插件用法总结下,方便后期查找,项目大概是这个样子。 搜索页 widgets属性页面写的时候考虑排版,但是文字居多,如果设计下排版,用widgets把样式写好,后期如果需要修改,则改动比较大,所以考虑使用markdown,毕竟也是支持的。 1.安装依赖 根...
- 1 Center 将其子widget居中显示在自身内部的widget 2 构造函数 Center({ Key key, double widthFactor, double heightFactor, Widget child }) 3 常用属性... 1 Center 将其子widget居中显示在自身内部的widget 2 构造函数 Center({ Key key, double widthFactor, double heightFactor, Widget child }) 3 常用属性...
- 1 PopupMenuButton 当菜单隐藏式,点击或调用onSelected时显示一个弹出式菜单列表。 2 构造函数 PopupMenuButton({ Key key, @required this.itemBuilder, this.initialValue, ... 1 PopupMenuButton 当菜单隐藏式,点击或调用onSelected时显示一个弹出式菜单列表。 2 构造函数 PopupMenuButton({ Key key, @required this.itemBuilder, this.initialValue, ...
- 1 CupertinoActivityIndicator 一个iOS风格的loading指示器。显示一个圆形的转圈菊花 2 构造函数 CupertinoActivityIndicator({ Key key, this.animating = true, this.rad... 1 CupertinoActivityIndicator 一个iOS风格的loading指示器。显示一个圆形的转圈菊花 2 构造函数 CupertinoActivityIndicator({ Key key, this.animating = true, this.rad...
- 1 SizedOverflowBox SizedOverflowBox主要的布局行为有两点:1 尺寸部分。通过将自身的固定尺寸,传递给child,来达到控制child尺寸的目的;undefined 2 超出部分。可以突破父节点尺寸的限制,超出部分也可以被渲染显示,与OverflowBox类似。 2 构造函数 S... 1 SizedOverflowBox SizedOverflowBox主要的布局行为有两点:1 尺寸部分。通过将自身的固定尺寸,传递给child,来达到控制child尺寸的目的;undefined 2 超出部分。可以突破父节点尺寸的限制,超出部分也可以被渲染显示,与OverflowBox类似。 2 构造函数 S...
- 1 Switch Switch 是一个切换按钮组件,通常用于设置的选项里。 2 构造函数 const Switch({ Key key, this.activeColor, this.activeThumbImage, this.activeTrackColor, ... 1 Switch Switch 是一个切换按钮组件,通常用于设置的选项里。 2 构造函数 const Switch({ Key key, this.activeColor, this.activeThumbImage, this.activeTrackColor, ...
- 1 RaisedButton RaisedButton组件主要用于文本布局。 2 构造函数 const RaisedButton({ Key key, @required VoidCallback onPressed, ValueChanged<bool> ... 1 RaisedButton RaisedButton组件主要用于文本布局。 2 构造函数 const RaisedButton({ Key key, @required VoidCallback onPressed, ValueChanged<bool> ...
- 1 Column Column是在垂直方向上排列子widget的列表。 2 构造函数 Column({ Key key, MainAxisAlignment mainAxisAlignment, MainAxisSize mainAxisSize, CrossA... 1 Column Column是在垂直方向上排列子widget的列表。 2 构造函数 Column({ Key key, MainAxisAlignment mainAxisAlignment, MainAxisSize mainAxisSize, CrossA...
上滑加载中
推荐直播
-
华为云码道Skill实战与极速交付,智能开发全链路实战2026/07/22 周三 19:00-21:00
王一男-华为云码道产品规划专家;李炎-华为云码道产品专家;姜浩-华为云HCDG核心组成员
直播深度解读华为云码道6月产品新特性,从Skill市场安装专家技能,带你零距离体验从需求,开发,审查,重构全链路闭环的开发过程。从零构建并交付一个完整项目,让您体验从代码提交到服务上线的“极速”之旅。
回顾中 -
聚开发者之力,创具身新未来2026/07/23 周四 15:00-17:00
张豪杰/程文/王军/刘新春/黄钦开 /张晓天
本次华为云具身智能开发平台CloudRobo培训面向具身智能开发者,带您全流程体验机器人本体R2C小时级接入、环境重建与轨迹生成仿真数据生产、PB级数据管理、数据评测、模型训推、强化学习和Benchmark一键评测等功能,并体验业界主流具身模型应用。
回顾中
热门标签