随笔 - 223  文章 - 0 评论 - 6 阅读 - 39万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

06 2020 档案
Flutter TextField边框颜色
摘要:1. Theme 修改主题颜色可以修改 TextField 选中时整体颜色(边框+prefixIcon) Theme( data: new ThemeData(primaryColor: Colors.red), child: TextField( controller: accountContro 阅读全文
posted @ 2020-06-16 15:46 浅唱年华1920 阅读(2362) 评论(0) 推荐(0) 编辑
flutter 全屏背景图(包括appbar和状态栏)
摘要:flutter全屏背景图(包括appbar和状态栏)以及沉浸状态栏的设置 上面这个主要思路: 用一个 Container 组件 设置一张背景图, 包裹 Scaffold 组件, 在 Scaffold 组件中设置 背景色 和 appbar 背景色 都为透明,然后设置 appbar 没有阴影 即: el 阅读全文
posted @ 2020-06-16 15:17 浅唱年华1920 阅读(4345) 评论(0) 推荐(0) 编辑
js 随机数
摘要:Math.floor(Math.random() * (max - min + 1)) + min 例如 95 - 100 的随机数 Math.floor(Math.random() * (100 - 95 + 1)) + 95 小数 例如 0.9 - 1 Math.floor(Math.rando 阅读全文
posted @ 2020-06-15 16:25 浅唱年华1920 阅读(152) 评论(0) 推荐(0) 编辑
canvas点击事件,以及点击之后获取数据的方法
摘要:canvas点击事件 可以看这里。 canvas 点击事件中主要有2个问题: 1. 如何点击到自己想要的元素(圆或者矩形)等,的时候 响应点击事件 2. 点击到的时候 如何获取数据。 1. 第一个 canvas 提供了一个 方法 isPointInPath():如果指定的点位于当前路径,返回true 阅读全文
posted @ 2020-06-14 15:14 浅唱年华1920 阅读(5371) 评论(0) 推荐(0) 编辑
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused 解决方法
摘要:参考 https://www.jianshu.com/p/c2e829027b0a 报错信息就是 安装 Homebrew 打不开这个地址 https://raw.githubusercontent.com 我用的方法一:记录下 1.打开网站 https://www.ipaddress.com/ 查询 阅读全文
posted @ 2020-06-08 10:50 浅唱年华1920 阅读(3226) 评论(0) 推荐(0) 编辑
从git 获取flutter sdk
摘要:git clone -b stable https://github.com/flutter/flutter.git 阅读全文
posted @ 2020-06-08 10:24 浅唱年华1920 阅读(580) 评论(0) 推荐(0) 编辑
webGL 投影
摘要:阴影需要什么? 1.只有支持阴影的灯光才可以 pointLight,spotlight,directionallight 点光源,聚光灯,平行光 2.添加摄像机辅助器 THREE.CameraHelper var helper = new THREE.CameraHelper(directional 阅读全文
posted @ 2020-06-04 09:52 浅唱年华1920 阅读(272) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示