- 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 特...
- 1 Image Image是一个用于展示图片的组件。支持 JPEG、PNG、GIF、Animated GIF、WebP、Animated WebP、BMP 和 WBMP 等格式。 2 构造方法 Image:通过ImageProvider来加载图片 Image.asset:用来加载本地资源图片 Ima... 1 Image Image是一个用于展示图片的组件。支持 JPEG、PNG、GIF、Animated GIF、WebP、Animated WebP、BMP 和 WBMP 等格式。 2 构造方法 Image:通过ImageProvider来加载图片 Image.asset:用来加载本地资源图片 Ima...
- 1 CupertinoAlertDialog iOS风格的alert dialog。 2 构造函数 CupertinoAlertDialog({ Key key, this.title, this.content, this.actions = const <... 1 CupertinoAlertDialog iOS风格的alert dialog。 2 构造函数 CupertinoAlertDialog({ Key key, this.title, this.content, this.actions = const <...
- 1 IconButton IconButton一个Material图标按钮,点击时会有水波动画。 2 构造函数 IconButton({ Key key, this.iconSize = 24.0, this.padding = const EdgeInsets.all(... 1 IconButton IconButton一个Material图标按钮,点击时会有水波动画。 2 构造函数 IconButton({ Key key, this.iconSize = 24.0, this.padding = const EdgeInsets.all(...
- 1 Icon Icon是图标控件,Icon不具有交互属性。 2 构造函数 Icon( Key key, this.size, this.color, this.semanticLabel, this.textDirection,) 3 常用属性&nbs... 1 Icon Icon是图标控件,Icon不具有交互属性。 2 构造函数 Icon( Key key, this.size, this.color, this.semanticLabel, this.textDirection,) 3 常用属性&nbs...
- 1 Card Flutter Card 组件,卡片组件具有圆角和阴影,看起来有立体感。 2 构造函数 Card({ Key key, this.color, this.shadowColor, this.elevation, this.shape, th... 1 Card Flutter Card 组件,卡片组件具有圆角和阴影,看起来有立体感。 2 构造函数 Card({ Key key, this.color, this.shadowColor, this.elevation, this.shape, th...
- 1 AppBar 一个典型的AppBar,带有标题、操作和溢出的下拉菜单。AppBar Material风格应用栏,有工具栏和其他的Widget构成 应用栏通常用于Scaffold.appBar属性,该属性将应用栏放置在屏幕顶部的固定高度小部件中。对于可滚动的应用栏,请参阅SliverAppBar,它将一个... 1 AppBar 一个典型的AppBar,带有标题、操作和溢出的下拉菜单。AppBar Material风格应用栏,有工具栏和其他的Widget构成 应用栏通常用于Scaffold.appBar属性,该属性将应用栏放置在屏幕顶部的固定高度小部件中。对于可滚动的应用栏,请参阅SliverAppBar,它将一个...
- 1 Row Row是一个用于水平展示多个子控件的控件。row这个控件不会滚动。如果你有一行控件在空间不足的情况下可以滚动,考虑使用ListView类。 2 构造函数 Row({ Key key, MainAxisAlignment mainAxisAlignment, ... 1 Row Row是一个用于水平展示多个子控件的控件。row这个控件不会滚动。如果你有一行控件在空间不足的情况下可以滚动,考虑使用ListView类。 2 构造函数 Row({ Key key, MainAxisAlignment mainAxisAlignment, ...
- 1 Chip 中文翻译为碎片的意思,一般也是用作商品或者一些东西的标签。 2 构造函数 Chip({ Key key, this.avatar, @required this.label, this.labelStyle, this.labelPadding,... 1 Chip 中文翻译为碎片的意思,一般也是用作商品或者一些东西的标签。 2 构造函数 Chip({ Key key, this.avatar, @required this.label, this.labelStyle, this.labelPadding,...
- 1 Transform 在绘制子widget之前应用转换的widget 2 构造函数 Transform({ Key key, @required this.transform, this.origin, this.alignment, this.transformHitTests =... 1 Transform 在绘制子widget之前应用转换的widget 2 构造函数 Transform({ Key key, @required this.transform, this.origin, this.alignment, this.transformHitTests =...
上滑加载中
推荐直播
-
华为云码道 × 仓颉编程:工程化AI编码探索2026/05/27 周三 19:00-21:00
刘俊杰-华为云仓颉语言专家/李炎-华为云码道技术专家/王智鹏-OpenCangjie开源社区发起人
本场直播围绕华为云仓颉语言与华为云码道的深度结合,展示华为云智能编程从零基础到高效落地的完整生态能力。以华为云码道为引擎,仓颉语言为载体,带给大家日常提效、趣味创新到极速量产的开发体验。
回顾中 -
一个AI团队帮你写代码:华为云码道Agent Space实战2026/06/25 周四 19:00-21:00
张翰文-华为云码道工程师/郭英旭-青软创新科技集团股份有限公司 软件架构师
本场直播聚焦华为云码道Agent Space两大模式:研发办公、代码开发,亲身体验从需求到代码的AI自动化能力。实操演示基于华为 CodeArts CLI,依托 OpenSpec 规格体系从零搭建业务项目。
即将直播
热门标签