- 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...
- 自从去年底接触flutter到现在,陆续在学习相关的一些基础知识,具备React经验对flutter的学习有很大帮助,官网也对ReactNative开发者有专门的说明,本文对此讨论一下。 Component (React) vs Widget (Flutter) 在React中的Component概念在Flutter中对应概念... 自从去年底接触flutter到现在,陆续在学习相关的一些基础知识,具备React经验对flutter的学习有很大帮助,官网也对ReactNative开发者有专门的说明,本文对此讨论一下。 Component (React) vs Widget (Flutter) 在React中的Component概念在Flutter中对应概念...
- 1 FlutterLogo FlutterLogo是一个显示Flutter 商标的组件。 2 构造函数 FlutterLogo({ Key key, this.size, this.colors, this.textColor = const Color(0xFF6... 1 FlutterLogo FlutterLogo是一个显示Flutter 商标的组件。 2 构造函数 FlutterLogo({ Key key, this.size, this.colors, this.textColor = const Color(0xFF6...
- 点击上方蓝字关注我们 在Flutter大浪潮下,笔者也开始入坑了,本系列旨在记录学习过程,欢迎一起探讨。当使用flutter create myapp 创建项目后,会自动生成初始化代码。 下面介绍一下代码的目录。 myapp ┬ ├ android - 包含 Android 特... 点击上方蓝字关注我们 在Flutter大浪潮下,笔者也开始入坑了,本系列旨在记录学习过程,欢迎一起探讨。当使用flutter create myapp 创建项目后,会自动生成初始化代码。 下面介绍一下代码的目录。 myapp ┬ ├ android - 包含 Android 特...
上滑加载中
推荐直播
-
华为云码道 × 仓颉编程:工程化AI编码探索2026/05/27 周三 19:00-21:00
刘俊杰-华为云仓颉语言专家/李炎-华为云码道技术专家/王智鹏-OpenCangjie开源社区发起人
本场直播围绕华为云仓颉语言与华为云码道的深度结合,展示华为云智能编程从零基础到高效落地的完整生态能力。以华为云码道为引擎,仓颉语言为载体,带给大家日常提效、趣味创新到极速量产的开发体验。
回顾中
热门标签