-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #304 from xiaoyaocz/dev
Release 1.4.8
- Loading branch information
Showing
13 changed files
with
177 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"version": "1.4.7", | ||
"version_num": 10407, | ||
"version_desc": "- 非横屏隐藏首页左侧分割线 #235\n- 优化设置页面的UI\n- 修复抖音Web链接跳转错误 #248\n- 增加不再提示登录选项 #219\n- 增加数据网络下清晰度设置 #237\n- 增加进入后台自动暂停选项 #240\n- 进入后台时不添加弹幕 #230\n- 修复抖音直播加载问题 #275", | ||
"version": "1.4.8", | ||
"version_num": 10408, | ||
"version_desc": "- 修复抖音内容加载失败问题 #285\n- iOS放开后台播放设置\n- 修复音量拖动调节时卡顿问题 #92 (#294 @abcghy)\n- 弹幕支持使用正则屏蔽 #283 (#295 @abcghy)\n- 定时关闭建议记忆上次设定的时长 #278 (#296 @abcghy)", | ||
"prerelease":false, | ||
"download_url": "https://github.com/xiaoyaocz/dart_simple_live/releases" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/// 这个类的目的是简化 throttle 的操作,以便更好的理解代码 | ||
/// 主要作用:节流,如果在很短时间内都会调用同一个方法,除了第一个方法有用以外 | ||
/// 剩下的方法将会被舍弃,在 [eachDelayMilli] 时间后,才会允许下一次调用 | ||
/// 会保存一个方法,在最后还会调用一次,和普通的 throttle 不太一样 | ||
class DelayedThrottle { | ||
bool isInvoking = false; | ||
int eachDelayMilli; | ||
Future Function()? storeFunc; | ||
|
||
DelayedThrottle(this.eachDelayMilli); | ||
|
||
void invoke(Future Function() longCostFunc) { | ||
if (isInvoking) { | ||
storeFunc = longCostFunc; | ||
return; | ||
} | ||
storeFunc = null; | ||
isInvoking = true; | ||
longCostFunc().then((value) { | ||
Future.delayed(Duration(milliseconds: eachDelayMilli), () { | ||
isInvoking = false; | ||
if (storeFunc != null) { | ||
invoke(storeFunc!); | ||
} | ||
}); | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.