Dart+flutter教程

2019-04-13  本文已影响0人  一个简单搬运工

https://www.jianshu.com/p/8a62b1a2fd75

https://www.jianshu.com/p/3d927a7bf020

https://blog.csdn.net/shanyuu/article/details/82903116

dart单继承,为了实现多继承,不同类具有相同的功能,需要使用接口或者Mixin

https://blog.csdn.net/awftnaaa/article/details/52885155

http://kevinwu.cn/p/ae2ce64/#%E5%9C%BA%E6%99%AF%E6%89%A9%E5%B1%95

dart文件操作

https://blog.csdn.net/s1120080286/article/details/83239453

Stream操作原理

https://www.jianshu.com/p/a5d7758938ef

Dart教程

https://www.jianshu.com/p/023cea0b4a52

import+part

https://www.jianshu.com/p/52b4e21a8160

https://www.jianshu.com/p/9e5f4c81cc7d

构造函数
https://www.jianshu.com/p/a7cc623132b0

dart定义函数类型

flutter控制缩放、位置的widget:FittedBox

定义Button的shape和触摸色改变

snackBar显示,context不能是scaffold的context

BottomSheet显示

提示的信息的widget

https://www.jianshu.com/p/dd1ebfaf38e2

CardView

Checkbox,Radio,Progressbar

https://www.jianshu.com/p/c57968e19027

TextField

https://www.jianshu.com/p/ddf22d88ee22

dart混入 with实现多继承

flutter动画

三种实现方式:1、addListener+setState(会导致当前层级的其它widget重绘);2、继承AnimatedWidget,3、使用AnimatedBuilder

https://www.jianshu.com/p/322e85c7fb6f

https://www.jianshu.com/p/3f2ae714f804

级联操作符

flutter三种交互传值

https://www.jianshu.com/p/51ac309786c6

flutter资源加载

图片:配置文件pubspec增加配置

加载字体

加载源文件

https://www.jianshu.com/p/ec5ffb25451e

image圆角CircleAvatar

stack布局

alignment设置布局相对方位:position设置绝对位置(类似margin)

https://www.jianshu.com/p/b98105721549

Alignment位置确定:数值从-1.0到1.0,0代表中间

FractionalOffset是Alignment的子类:数值从0.0到1.0,0.5代表中间

dart继承和方法调用顺序的理解

https://kevinwu.cn/p/ae2ce64/#%E9%A1%BA%E5%BA%8F%E7%9A%84%E7%90%86%E8%A7%A3

with优先级最高 ,越靠右越高,extend次之,implement最低

工厂构造函数factory关键字

工厂方法可以实现避免创建工厂类,可以在父类中定义factory构造方法,返回具体实现的子类

深入理解Flutter Platform Channel
https://segmentfault.com/a/1190000016190851

https://www.jianshu.com/p/39575a90e820

国际化

https://juejin.im/post/5c7a1558e51d453ed5290574

https://www.jianshu.com/p/8356a3bc8f6c

https://juejin.im/post/5c701379f265da2d9b5e196a

上一篇下一篇

猜你喜欢

热点阅读