会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
柏。
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
下一页
2023年7月31日
JDK 版本异常导致 flutter doctor --android-licenses 出错 (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
摘要: flutter doctor --android-licenses Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.U
阅读全文
posted @ 2023-07-31 15:14 柏。
阅读(3024)
评论(0)
推荐(0)
2023年5月25日
org.jsoup.HttpStatusException: HTTP error fetching URL. Status=500
摘要: 在使用Jsoup进行Get请求的时候,在mac调试和打包成jar包运行都没有什么问题,在windows上调试运行也没有问题,但是打包成jar包运行就会出现以下错误: org.jsoup.HttpStatusException: HTTP error fetching URL. Status=500
阅读全文
posted @ 2023-05-25 09:32 柏。
阅读(694)
评论(0)
推荐(0)
2023年5月18日
IDEA/WEBSTORM配置静态的html,提供给同一局域网访问
摘要: 配置端口和勾选不信任的链接 配置Deployment 最重要的一步:重启IDE 访问配置的链接即可,可以把localhost改成本机的ip,供同一局域网的人使用了。
阅读全文
posted @ 2023-05-18 15:52 柏。
阅读(468)
评论(0)
推荐(0)
2023年2月3日
Flutter Completer 的妙用
摘要: 适用场景:1.例如在app启动的时候,需要初始化数据(例如从服务端拉取数据),初始化的时间比较久,或者受限于网络,时间不可控,后面用户点击了某个操作,这个操作依赖于初始化,就需要等待初始化完成,就可用使用Completer类来实现在这种效果。2.将异步监听的方式,改成await的方式,更符合dart
阅读全文
posted @ 2023-02-03 10:39 柏。
阅读(2844)
评论(0)
推荐(0)
2022年9月28日
CSS实现按钮点击时缩小后放大的效果
摘要: #down_button_android { width: 100%; transition: transform 0.3s; } #down_button_android:active { transform: scale(0.8); } 对按钮设置id:down_button_android,并
阅读全文
posted @ 2022-09-28 17:39 柏。
阅读(876)
评论(0)
推荐(0)
2020年9月9日
Flutter toCharArray
摘要: /// 字符串工具 extension StringUtil on String { List<String> toCharList() { return this.runes.map((e) => String.fromCharCode(e)).toList(); } }
阅读全文
posted @ 2020-09-09 15:32 柏。
阅读(314)
评论(0)
推荐(0)
2020年8月13日
Flutter/Dart double 格式化金额显示
摘要: import "package:intl/intl.dart"; extension MoneyDouble on double { /// double 显示金额格式 String get moneyFormat { NumberFormat format = new NumberFormat("
阅读全文
posted @ 2020-08-13 10:55 柏。
阅读(3753)
评论(0)
推荐(0)
2020年4月18日
Flutter Windows应用demo
摘要: 下载flutter sdk: git clone -b master https://github.com/flutter/flutter.git 启用windows支持: flutter config --enable-windows-desktop set ENABLE_FLUTTER_DESK
阅读全文
posted @ 2020-04-18 18:02 柏。
阅读(6985)
评论(0)
推荐(1)
2020年4月8日
android 横向滚动文字的实现
摘要: import android.content.Context;import android.graphics.Canvas;import android.graphics.Paint;import android.util.AttributeSet;import android.view.Displ
阅读全文
posted @ 2020-04-08 16:13 柏。
阅读(2791)
评论(0)
推荐(0)
2020年3月31日
Flutter 在使用MaterialApp之前获取MediaQueryData 2
摘要: 在使用 flutter_screenutil 这个插件的时候,需要注册 ScreenUtil.init(context, width: 750, height: 1560, allowFontScaling: true); 这句话,需要放那里呢?一般情况下都是放到MaterialApp之后的Home
阅读全文
posted @ 2020-03-31 14:36 柏。
阅读(902)
评论(0)
推荐(0)
1
2
3
4
下一页
公告