Compare commits

...

2 Commits

Author SHA1 Message Date
dom
295a587df5 lint
Signed-off-by: dom <githubaccount56556@proton.me>
2026-06-04 19:17:59 +08:00
dom
73d7d78080 fix #2295
Signed-off-by: dom <githubaccount56556@proton.me>
2026-06-04 19:17:59 +08:00
5 changed files with 11 additions and 6 deletions

View File

@@ -57,7 +57,7 @@ abstract final class DynamicsHttp {
tempBannedList: tempBannedList, tempBannedList: tempBannedList,
); );
if (data.loadNext == true) { if (data.loadNext == true) {
return followDynamic( return await followDynamic(
type: type, type: type,
offset: data.offset, offset: data.offset,
mid: mid, mid: mid,

View File

@@ -471,7 +471,7 @@ abstract final class MemberHttp {
try { try {
DynamicsDataModel data = DynamicsDataModel.fromJson(res.data['data']); DynamicsDataModel data = DynamicsDataModel.fromJson(res.data['data']);
if (data.loadNext == true) { if (data.loadNext == true) {
return memberDynamic(offset: data.offset, mid: mid); return await memberDynamic(offset: data.offset, mid: mid);
} }
return Success(data); return Success(data);
} catch (e, s) { } catch (e, s) {

View File

@@ -260,7 +260,7 @@ abstract final class VideoHttp {
} }
return Success(data); return Success(data);
} else if (epid != null && videoType == VideoType.ugc) { } else if (epid != null && videoType == VideoType.ugc) {
return videoUrl( return await videoUrl(
avid: avid, avid: avid,
bvid: bvid, bvid: bvid,
cid: cid, cid: cid,

View File

@@ -387,8 +387,13 @@ class _PayCoinsPageState extends State<PayCoinsPage>
], ],
) )
else else
SizedBox(height: 100, child: _buildCoinWidget(0, 1)), Center(
SizedBox(height: isV ? 25 : 10), child: SizedBox(height: 100, child: _buildCoinWidget(0, 1)),
),
if (isV)
const SizedBox(height: 25)
else
const SizedBox(height: 10),
if (_hasCopyright) if (_hasCopyright)
GestureDetector( GestureDetector(
behavior: HitTestBehavior.opaque, behavior: HitTestBehavior.opaque,

View File

@@ -160,7 +160,7 @@ Future<ui.Image?> _getImg(String url) async {
key: cacheKey, key: cacheKey,
headers: Constants.baseHeaders, headers: Constants.baseHeaders,
); );
return _loadImg(fileInfo.path); return await _loadImg(fileInfo.path);
} catch (_) { } catch (_) {
return null; return null;
} }