首页 > 编程语言 >视频直播系统源码,flutter Wrap 自动换行组件

视频直播系统源码,flutter Wrap 自动换行组件

时间:2022-11-25 14:24:59浏览次数:36  
标签:Container color height 源码 Wrap 100 flutter

视频直播系统源码,flutter Wrap 自动换行组件

 

先来简单的看一下源码

 


Wrap({
    super.key,
    this.direction = Axis.horizontal,
    this.alignment = WrapAlignment.start,
    this.spacing = 0.0,
    this.runAlignment = WrapAlignment.start,
    this.runSpacing = 0.0,
    this.crossAxisAlignment = WrapCrossAlignment.start,
    this.textDirection,
    this.verticalDirection = VerticalDirection.down,
    this.clipBehavior = Clip.none,
    super.children,
  }) : assert(clipBehavior != null);
 

从上面的源码中,我们可以看到,Wrap 组件没有必传属性,但是我们在使用的时候,往往需要传入 子child 的上下间距,direction 布局方向,开始样式等相关属性

 


 Wrap(
              direction: Axis.horizontal,
              alignment: WrapAlignment.start,
              spacing: 5.0,
              runSpacing: 5.0,
              children: [
                Container(
                  width: 100,
                  height: 100,
                  color: Colors.red,
                ),
                Container(
                  width: 100,
                  height: 100,
                  color: Colors.yellow,
                ),
                Container(
                  width: 100,
                  height: 100,
                  color: Colors.green,
                ),
                Container(
                  width: 100,
                  height: 100,
                  color: Colors.red,
                ),
              ],
            )

 

 以上就是视频直播系统源码,flutter Wrap 自动换行组件, 更多内容欢迎关注之后的文章

 

标签:Container,color,height,源码,Wrap,100,flutter
From: https://www.cnblogs.com/yunbaomengnan/p/16924959.html

相关文章

  • Scrapy爬虫框架,入门案例(非常详细)源码
    一、概述Scrapy,Python开发的一个快速、高层次的屏幕抓取和web抓取框架,用于抓取web站点并从页面中提取结构化的数据。Scrapy用途广泛,可以用于数据挖掘、监测和自动化测试.......
  • 深入理解Kubernetes 4A - Authorization源码解析
    Overview在Kubernetes中,当一个访问请求通过了登录阶段(Authentication),必须还需要请求拥有该对象的访问权限,而授权部分也是KubernetesAPI访问控制中的第二个部分Author......
  • java15源码-SynchronousQueue
    一类图二构造方法publicSynchronousQueue(){this(false);}/***Createsa{@codeSynchronousQueue}withthespecifiedfairnesspoli......
  • Java之HttpClient调用WebService接口发送短信源码实战
    摘要Java之HttpClient调用WebService接口发送短信源码实战一:接口文档二:WSDL三:HttpClient方法HttpClient方法一HttpClient方法二HttpClient方法三HttpClient方法四四:封装soap......
  • Dubbo源码-04-SPI
    一DubboSPI核心核心实现都在ExtensionLoader中,比较重要的3个入口方法分别是ExtensionLoader#getExtensionLoader()扩展实现的加载器ExtensionLoader#getDefaultExte......
  • springboot自定义starter源码笔记
    starter:1、这个场景需要使用到的依赖是什么?2、如何编写自动配置@Configuration//指定这个类是一个配置类@ConditionalOnXXX//在指定条件成立的情况下自动配置类生效@Aut......
  • easylogging++的那些事(四)源码分析(一)主流程
    目录一、easylogging++的初始化二、easylogging++的反初始化在easylogging++的哪些事(三)总体设计我们介绍了easylogging++的总体设计,从今天开始正式进入源码分析部分,首先......
  • Android原生跳转到Flutter页面
    1.启动Flutter页面默认界面startActivity(FlutterActivity.withNewEngine().build(activity!!)) 2.启动Flutter指定的界面比如设置......
  • 情侣纪念日网站html5源码教程
    个人名片:对人间的热爱与歌颂,可抵岁月冗长......
  • app直播源码,edusoho直播回放增加进度条
    app直播源码,edusoho直播回放增加进度条varskinLayoutchildren=[];        if(this.liveInfo.is_play){          skinLayoutchil......