会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
茅屋哥
博客园
首页
新随笔
联系
订阅
管理
2025年12月19日
Flutter环境
摘要: 全局修改flutter项目运行的java环境 flutter config --jdk-dir "jdkhome目录"
阅读全文
posted @ 2025-12-19 14:03 呢哇哦比较
阅读(1)
评论(0)
推荐(0)
2025年12月18日
Row下的两个Text文本自适应宽度,并以中间为基准滚动
摘要: Row( children: [ Expanded( child: LayoutBuilder( builder: (BuildContext context, BoxConstraints constraints) => IntlWidget( maxWidth: constraints.maxW
阅读全文
posted @ 2025-12-18 17:21 呢哇哦比较
阅读(3)
评论(0)
推荐(0)
2025年12月5日
Flutter部件出场即动画,不显示时不占用空间不占内存
摘要: /// flutter_animate 插件 if (show) Container( width: 200, height: 100, color: Colors.orange, child: Center(child: Text('flutter_animate')), ) .animate()
阅读全文
posted @ 2025-12-05 16:08 呢哇哦比较
阅读(3)
评论(0)
推荐(0)
2025年11月9日
dart语法
摘要: 1. Dart是代码类型安全的语言,但可用var定义而不用显示指定 2. Dart的流程控制语句 if...else if for (final item in items) while() 3. Dart建议为每个函数参数和返回值都指定类型 4. 胖箭头 => 用于仅包含一条语句的函数,该语法在将
阅读全文
posted @ 2025-11-09 14:37 呢哇哦比较
阅读(46)
评论(0)
推荐(0)
2025年9月1日
工具类
摘要: 邮箱正则 bool _isValidEmail(String text) { return RegExp( r'(?<name>[a-zA-Z0-9]+)' r'@' r'(?<domain>[a-zA-Z0-9]+)' r'\.' r'(?<topLevelDomain>[a-zA-Z0-9]+)
阅读全文
posted @ 2025-09-01 16:07 呢哇哦比较
阅读(7)
评论(0)
推荐(0)
2025年8月12日
python3安装第三方包命令
摘要: 直接获取国外的资源包 python3 -m pip install 包名 使用国内镜像获取资源包 阿里云镜像 python3 -m pip install -i https://mirrors.aliyun.com/pypi/simple/ 包名 豆瓣镜像 python3 -m pip instal
阅读全文
posted @ 2025-08-12 11:36 呢哇哦比较
阅读(12)
评论(0)
推荐(0)
python对文件的操作相关
摘要: 1.获取所有的文件夹和文件-递归 def get_all_contents_recursive(folder_path): """ 递归获取文件夹下所有子文件夹和文件 返回: {"子文件夹": [路径列表], "文件": [路径列表]} """ result = {"子文件夹": [], "文件":
阅读全文
posted @ 2025-08-12 11:33 呢哇哦比较
阅读(7)
评论(0)
推荐(0)
python对图片的颜色操作相关
摘要: 1.更换图片的颜色,包括 jpg png gif svg # jpg,png替换 from PIL import Image , ImageSequence import numpy as np from scipy.ndimage import binary_erosion, binary_dil
阅读全文
posted @ 2025-08-12 11:31 呢哇哦比较
阅读(23)
评论(0)
推荐(0)
2025年7月11日
Flutter部件
摘要: > 所有的State类型部件都可通过其GlobalKey去调用里面的方法 final GlobalKey<ScaffoldState> _scaffoldKey = GlobalKey<ScaffoldState>(); _scaffoldKey.currentState!.openDrawer()
阅读全文
posted @ 2025-07-11 15:30 呢哇哦比较
阅读(41)
评论(0)
推荐(0)
2025年7月5日
Flutter-Getx的使用
摘要: 依赖 dependencies: get: 导入 import 'package:get/get.dart'; 1.全局配置 MaterialApp --》 GetMaterialApp GetMaterialApp不是使用Get的必要项 如果你只是使用 Get 进行状态管理或依赖管理,则不需要使用
阅读全文
posted @ 2025-07-05 16:46 呢哇哦比较
阅读(162)
评论(0)
推荐(0)
下一页
公告