会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
鲤斌
博客园
首页
新随笔
联系
订阅
管理
随笔 - 210 文章 - 0 评论 - 0 阅读 -
61289
<
2025年2月
>
日
一
二
三
四
五
六
26
27
28
29
30
31
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
1
2
3
4
5
6
7
8
昵称:
鲤斌
园龄:
2年
粉丝:
1
关注:
0
+加关注
搜索
常用链接
我的随笔
我的评论
我的参与
最新评论
我的标签
随笔分类
Flutter(106)
Flutter Provider状态管理(2)
flutter 框架(2)
Flutter 异步 Stream (4)
Flutter+GetX 状态管理(8)
flutter动画(4)
Flutter设计模式(1)
flutter数组(3)
java(21)
llinux(18)
mysql(4)
rabbitMQ(1)
redis(7)
SpringCloud(7)
vue(40)
常用(1)
登录、JWT和token (4)
发送短信、对象存储(1)
微信小程序(9)
随笔档案
2024年9月(1)
2024年8月(7)
2024年7月(8)
2024年6月(2)
2024年5月(3)
2024年4月(4)
2024年3月(7)
2024年2月(2)
2024年1月(34)
2023年12月(27)
2023年11月(29)
2023年10月(2)
2023年9月(17)
2023年8月(9)
2023年7月(4)
2023年5月(2)
2023年4月(4)
2023年3月(31)
2023年2月(17)
阅读排行榜
1. 微信小程序中的数组有许多常用的方法和用法(5959)
2. Flutter Getx 路由管理(1976)
3. Flutter Getx 状态管理 --- (依赖管理) GetxController(1969)
4. linux中创建新用户并且放到用户组中(1963)
5. linux中创建用户组(1883)
推荐排行榜
1. flutter中显示年月日、星期与时间(1)
2024年9月4日
flutter瀑布流布局
摘要: 依赖 flutter_staggered_grid_view: ^0.7.0 #flutter瀑布流 代码例子 Widget _bestContent() { return Obx(() => Container( child: Column( children: [ Container( colo
阅读全文
posted @ 2024-09-04 01:55 鲤斌
阅读(120)
评论(0)
推荐(0)
编辑
2024年8月28日
carousel_slider 轮播图
摘要: 依赖 carousel_slider: ^5.0.0 #创建轮播图 例子 Widget _gamesCard() { CarouselSliderController? carouselController = CarouselSliderController(); return LayoutBui
阅读全文
posted @ 2024-08-28 18:43 鲤斌
阅读(182)
评论(0)
推荐(0)
编辑
2024年8月27日
auto_size_text 自动调整文本大小以适应其容器的 Flutter 插件
摘要: 依赖 auto_size_text: ^3.0.0 //自动调整文本大小 例子 class AutoSizeRichTextExample extends StatelessWidget { @override Widget build(BuildContext context) { return
阅读全文
posted @ 2024-08-27 09:49 鲤斌
阅读(107)
评论(0)
推荐(0)
编辑
2024年8月11日
flutter中文字长度计算
摘要: 计算每个列表文字的长度 List<double> itemWidths = []; // 计算每个列表项的宽度 void calculateItemWidths() { // 清空之前计算的宽度 itemWidths.clear(); update(); // 创建一个 TextPainter 实例
阅读全文
posted @ 2024-08-11 22:25 鲤斌
阅读(141)
评论(0)
推荐(0)
编辑
2024年8月10日
flutter滑动分析
摘要: ListView.builder 优点: 内存管理: ListView.builder 使用了懒加载机制,只渲染当前视口内的列表项,这样可以有效节省内存和性能。适用于长列表。 简单易用: 作为 Flutter 内置的组件,易于使用和配置,不需要额外依赖。 性能优化: 内置的高效滚动性能,不需要手动管
阅读全文
posted @ 2024-08-10 18:37 鲤斌
阅读(32)
评论(0)
推荐(0)
编辑
flutter 中scrollable_positioned_list 控制列表滚动
摘要: scrollable_positioned_list 是 Flutter 中一个强大的列表控件,它允许通过位置来控制列表滚动。它常用于需要精确控制列表滚动位置的应用场景 依赖 scrollable_positioned_list: ^0.3.8 #精确控制列表滚动位置 代码 提前知道每个模块高度 c
阅读全文
posted @ 2024-08-10 18:30 鲤斌
阅读(331)
评论(0)
推荐(0)
编辑
Flutter中scroll_to_index 实现列表滚动到指定索引的库
摘要: scroll_to_index 是一个用于在 Flutter 中实现列表滚动到指定索引的库 依赖 scroll_to_index: ^3.0.1 #滑动位置 使用 class ScrollToIndexExample extends StatefulWidget { @override _Scrol
阅读全文
posted @ 2024-08-10 17:26 鲤斌
阅读(284)
评论(0)
推荐(0)
编辑
2024年7月27日
flutter中使用rabbitmq
摘要: 依赖 dart_amqp: ^0.3.1 #rabbitMq接收发送消息 工具封装 import 'package:dart_amqp/dart_amqp.dart'; /// 封装 RabbitMQ 的服务类 class RabbitMQService { late ConnectionSetti
阅读全文
posted @ 2024-07-27 20:34 鲤斌
阅读(57)
评论(0)
推荐(0)
编辑
2024年7月26日
flutter 根据网址生成二维码
摘要: 依赖 qr_flutter: ^4.1.0 #二维码 代码 Center( child: Column( children: [ Center( child: QrImageView( data: 'https://www.baidu.com/', version: QrVersions.auto,
阅读全文
posted @ 2024-07-26 16:04 鲤斌
阅读(86)
评论(0)
推荐(0)
编辑
2024年7月24日
flutter在监听设备
摘要: 依赖 universal_platform: ^1.1.0 #判断设备 用于检测平台类型(如 Android、iOS、Web) flutter_device_type: ^0.4.0 #设备是否为平板(苹果与安卓) 代码 class MyApp1 extends StatelessWidget {
阅读全文
posted @ 2024-07-24 13:40 鲤斌
阅读(71)
评论(0)
推荐(0)
编辑
下一页
点击右上角即可分享