2020年12月4日

10*:flutter之BottomNavigationBar和 BottomNavigationBarItem

摘要: 问题 目录 预备 正文 1:BottomNavigationBar 首先,bottomNavigationBar 是属于 Scaffold 中的一个位于底部的控件。通常和 BottomNavigationBarItem 配合使用 BottomNavigationBar构造方法 BottomNavig 阅读全文

posted @ 2020-12-04 20:46 风zk 阅读(960) 评论(0) 推荐(0) 编辑

09*:Flutter之AppBar、工具栏、导航栏

摘要: 问题 目录 1:参数详解 预备 Flutter AppBar组件是应用的工具栏,是由多个组件组成。下面详细介绍appBar使用方法、TabBar使用方法、去掉头部的appBar、仿美团发现AppBar(可滚动TabBar) 官方常用属性图文简要说明: 正文 1:参数详解 AppBar 属性 说明 l 阅读全文

posted @ 2020-12-04 20:45 风zk 阅读(764) 评论(0) 推荐(0) 编辑

08*:flutter之Image:(Image、Image.network)

摘要: 问题 目录 1:构造器 2:属性详解 预备 正文 1:构造器 一、构造函数 const Image({ Key key, @required this.image, this.frameBuilder, this.loadingBuilder, this.semanticLabel, this.ex 阅读全文

posted @ 2020-12-04 20:44 风zk 阅读(1569) 评论(0) 推荐(0) 编辑

07*:Flutter之TextField

摘要: 问题 目录 预备 正文 一:参数详解 TextField同时也使用Text 的部分属性: TextField用于文本输入,它提供了很多属性,我们先简单介绍一下主要属性的作用,然后通过几个示例来演示一下关键属性的用法。 1:TextField构造器 const TextField({ Key key, 阅读全文

posted @ 2020-12-04 20:43 风zk 阅读(1290) 评论(0) 推荐(0) 编辑

06*:Flutter之ListView:(itemCount、IndexedWidgetBuilder)(ListView.builder、ListView.separated、ListTile)

摘要: 问题 目录 1:ListView默认构造方法 2:ListView.builder 3:ListView.separated 4: ListTile 预备 正文 ListView 列表 1:ListView默认构造方法 ListView({ //可滚动widget公共参数 Key key, Axis 阅读全文

posted @ 2020-12-04 20:42 风zk 阅读(1530) 评论(0) 推荐(0) 编辑

05*:Flutter之基础布局Container:(Container:padding、margins、borders)(Row、Column、Stack【Align、Positioned】)(MainAxisAlignment、CrossAxisAlignment)(Flex、expanded)(Wrap、Flow)

摘要: 问题 (Container:padding、margins、borders) (Row、Column、Stack【Align、Positioned】) (MainAxisAlignment、CrossAxisAlignment) 目录 1:Container(盒子模型) 2:row、column线性 阅读全文

posted @ 2020-12-04 20:40 风zk 阅读(579) 评论(0) 推荐(0) 编辑

04*:Flutter之基础Text:style: TextStyle(decorationStyle: TextDecorationStyle.wavy,fontSize: 18,decoration: TextDecoration.underline,), TextSpan

摘要: 问题 目录 预备 TextOverflow overflow 文本溢出时的表现形式。 TextOverflow.ellipsis:文本溢出显示省略号 TextOverflow.clip:文本溢出时直接裁剪掉超出部分,不作任何处理 TextOverflow.fade:溢出文本淡入透明 TextOver 阅读全文

posted @ 2020-12-04 20:39 风zk 阅读(1154) 评论(0) 推荐(0) 编辑

01*:Flutte之Linux、Flutter常见命令、Flutter环境搭建

摘要: 问题 目录 1:Linux 2:Flutter常见命令 3:Flutter环境搭建 预备 正文 1:Linux补充 1:多用户系统 Ubuntu的主要目录 /:根目录,一般根目录下只存放目录,在 linux 下有且只有一个根目录,所有的东西都是从这里开始 /bin、/usr/bin:可执行二进制文件 阅读全文

posted @ 2020-12-04 20:38 风zk 阅读(658) 评论(0) 推荐(0) 编辑

02*:Flutter之介绍和dart介绍和创建flutter项目 :(var int double String)( num、list、map)(?、as、 is、??、.. 函数 )

摘要: 问题 目录 1:Flutter介绍 2:什么是Dart 3:Flutter、React-Native、Android原生比较 4:Flutter项目创建 预备 正文 一:Flutter介绍 Flutter是谷歌的移动UI框架,可以快速在iOS和Android上构建高质量的原生用户界面。 Flutte 阅读全文

posted @ 2020-12-04 20:37 风zk 阅读(193) 评论(0) 推荐(0) 编辑

03*:Flutter 初探:(StatelessWidget、StatefulWidget)(【runApp()-->>MaterialApp()-->> Scaffold()】启动-风格-容器)

摘要: 问题 目录 1:runApp()函数启动项目 2:MaterialApp() [məˈtɪəriəl] 材料,素材 3:Scaffold()[ˈskæfəʊld] 预备 正文 由上面的架构图可以看出来,flutter最上层是google 的纸墨设计Material Design(MaterialAp 阅读全文

posted @ 2020-12-04 20:36 风zk 阅读(193) 评论(0) 推荐(0) 编辑

032*:MVP、MVVM+RAC、MVC

摘要: 问题 MVVM和MVP的最大区别是采用了双向绑定机制,View的变动,自动反映在ViewModel上。 1: MVP: 在数据模型M中发起请求,在Presenter组织好数据,通过协议,哪个view遵守了Presenter的协议,数据返回给指定的view; 2: MVVM: 1:一个View对应一个 阅读全文

posted @ 2020-12-04 20:32 风zk 阅读(220) 评论(0) 推荐(0) 编辑

031*:组件化(url-block 、target-action、protocol-class)

摘要: 问题 简单来说:一个模块对应一个 Mediator的分类 ,一个分类对应一个target,一个target可以包含多个action,每个action都是进行界面跳转。 1、url-block 路由:路由 2、target-action:runtime+分类。 3、protocol-class匹配:通 阅读全文

posted @ 2020-12-04 20:30 风zk 阅读(427) 评论(0) 推荐(0) 编辑

030*:界面优化(CoreImage、CoreGraphics、OpenGL ES、metal、CoreAnimation【CALayer】)(预排版,异步渲染,按需加载,动态添加控件,避免使用透明度和圆角,离屏渲染,异步渲染合成一张图片)

摘要: 问题 (CoreImage、CoreGraphics、OpenGL ES、metal、CoreAnimation【CALayer】) 1: 目录 1:卡顿的原理 2:卡顿监控 3:卡顿的优化 预备 正文 一:卡顿的原理 1:界面卡顿 通常来说,计算机中的显示过程是下面这样的,通过CPU、GPU、显示 阅读全文

posted @ 2020-12-04 20:20 风zk 阅读(338) 评论(0) 推荐(0) 编辑

029*:runloop:获取(CFRunLoopGetMain、CFRunLoopGetCurrent)创建(__CFRunLoopCreate __CFRunLoop结构体 )(CFRunloop、CFRunLoopMode、CFRunloopItem)(CFRunLoopRun -> CFRunLoopRunSpecific -> __CFRunLoopRun)

摘要: 问题 0:Runloop生命周期 kCFRunLoopEntry -- 进入runloop循环 kCFRunLoopBeforeTimers -- 处理定时调用前回调 kCFRunLoopBeforeSources -- 处理input sources的事件 kCFRunLoopBeforeWait 阅读全文

posted @ 2020-12-04 20:19 风zk 阅读(249) 评论(0) 推荐(0) 编辑

028*:NSAutoReleasePool(objc_autoreleasePoolPush、objc_autoreleasePoolPop)AutoreleasePoolPageData(56) 哨兵元素 autoreleaseFast(autoreleaseNoPage、autoreleaseNewPage、autoreleaseFullPage)

摘要: 问题 1:每个线程创建的时候就会创建一个autorelease pool,并且在线程退出的时候,清空autorelease pool。所以子线程的autorelease对象,要么在子线程中设置runloop清楚 2:AutoreleasePoolPage 面试题1:临时变量什么时候释放?面试题2:简 阅读全文

posted @ 2020-12-04 20:18 风zk 阅读(139) 评论(0) 推荐(0) 编辑

027*:内存管理 retainCount(TaggedPointer、retain、release、dealloc)(strong & weak )__main_block_impl_0(id类型-__block-->> __Block_byref_a_0-->>forwarding指针指向copy后的地址)SideTables 、extra_rc(引用计数)

摘要: 问题 retainCount (TaggedPointer、retain、release、dealloc) (strong & weak ) __main_block_impl_0(id类型-__block-->> __Block_byref_a_0-->>forwarding指针指向copy后的地 阅读全文

posted @ 2020-12-04 20:16 风zk 阅读(149) 评论(0) 推荐(0) 编辑

导航