上一页 1 2 3 4 5 6 7 8 9 10 ··· 30 下一页

2022年7月26日

Objective-C 入门

摘要: NSString 字符串 C 中字符串的存储方式 使用字符数组 使用字符指针 NS 前缀 NeXTSTEP -> Cocoa -> Fundation 框架 @符号 将 C 字符串转成 OC 字符串 OC中绝大部分关键字都是以@开头 代码示例: NSString *s1 = @"jack"; //使 阅读全文

posted @ 2022-07-26 21:49 Lemo_wd 阅读(40) 评论(0) 推荐(0) 编辑

2022年1月23日

flutter —— getx 中各种工具方法

摘要: 本地化 略(建议配合 get_cli 相关命令使用) 更新 locale var locale = Locale('en', 'US'); Get.updateLocale(locale); 获取系统的 locale return GetMaterialApp( locale: Get.device 阅读全文

posted @ 2022-01-23 14:53 Lemo_wd 阅读(1322) 评论(0) 推荐(0) 编辑

flutter —— 使用 getx 进行路由管理

摘要: 路由 基础方法 Get.toNamed("/NextScreen"); Get.offNamed("/NextScreen"); Get.offAllNamed("/NextScreen"); 路由传参 Get.toNamed("/NextScreen", arguments: 'Get is th 阅读全文

posted @ 2022-01-23 14:31 Lemo_wd 阅读(2528) 评论(0) 推荐(0) 编辑

flutter —— 使用 getx 进行状态管理

摘要: 简单状态管理器 GetxController 有一个 update 方法,用于触发更新操作。 类似于 ChangeNotifier 中的 notifyListeners 方法 源码 abstract class GetxController extends DisposableInterface w 阅读全文

posted @ 2022-01-23 14:00 Lemo_wd 阅读(2165) 评论(0) 推荐(0) 编辑

2022年1月16日

flutter 基础 —— CustomScrollView 与 Slivers

摘要: 一、CustomScrollView 的作用 创建一个公共的 Scrollable 和 Viewport ,然后它的 slivers 参数接受一个 Sliver 数组 二、常用 Sliver 组件对照表 滚动 sliver Sliver名称功能对应的可滚动组件 SliverList 列表 ListV 阅读全文

posted @ 2022-01-16 16:39 Lemo_wd 阅读(396) 评论(0) 推荐(0) 编辑

2022年1月12日

flutter 基础 —— CustomPaint 动画效果

摘要: 路径动画 示例: 代码 //路径动画 var path = Path() ..moveTo(50, 50) ..lineTo(100, 100) ..lineTo(200, 90); var rect1 = Rect.fromCircle(center: Offset(80, 450), radiu 阅读全文

posted @ 2022-01-12 23:12 Lemo_wd 阅读(460) 评论(0) 推荐(0) 编辑

flutter 基础 —— CustomPaint 解析

摘要: 基础介绍 实现自定义组件大致有三种方式,第一种是组合现有的组件;第二种是直接构建 RenderObject,比如 ColoredBox 组件;第三种就是下面介绍的,CustomPaint,它与第二种类似,都是通过 canvas 去绘制图形。 坐标 (注意Y轴正方向是向下,数学中是向上) Custom 阅读全文

posted @ 2022-01-12 10:52 Lemo_wd 阅读(559) 评论(0) 推荐(0) 编辑

2021年7月16日

rust 基础 —— iterator 迭代器

摘要: 一、自定义迭代器 实现 Iterator trait 即可 pub struct Counter { pub count: usize, } impl Iterator for Counter { type Item = usize; fn next(&mut self) -> Option<Sel 阅读全文

posted @ 2021-07-16 22:38 Lemo_wd 阅读(97) 评论(0) 推荐(0) 编辑

2021年7月3日

MySQL 杂记 —— 读写锁与库存设计

摘要: 假设有A、B两个用户同时各购买一件 id=1 的商品,用户A获取到的库存量为 1000,用户B获取到的库存量也为 1000,用户A完成购买后修改该商品的库存量为 999,用户B完成购买后修改该商品的库存量为 999,此时库存量数据产生了不一致。 分析: MySQL 默认的事务隔离级别是可重复读,但是 阅读全文

posted @ 2021-07-03 22:13 Lemo_wd 阅读(323) 评论(0) 推荐(0) 编辑

2021年6月20日

solr 基础 —— filed 与 schema

摘要: 1. filed 的定义 定义一个 field,名字为 text_general <fieldType name="text_general" class="solr.TextField" positionIncrementGap="100"> <analyzer type="index"> <to 阅读全文

posted @ 2021-06-20 11:43 Lemo_wd 阅读(358) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 10 ··· 30 下一页
< 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

导航

统计

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