feat: 分类页面优化,播放器详情处理当前集,首页的优化。图片导入。
This commit is contained in:
1 parent
4ccea08472
commit
2f1ec27802
28 files changed
+868
-568
No files matched your search
@@ -0,0 +1,37 @@
|
||||
import 'package:easy_refresh/easy_refresh.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:skywood/main/lib_file.dart';
|
||||
|
||||
/// 自定义 GIF Header
|
||||
class GifHeader extends Header {
|
||||
const GifHeader({
|
||||
super.triggerOffset = 80,
|
||||
super.clamping = false,
|
||||
this.height = 80,
|
||||
this.size = 74,
|
||||
});
|
||||
|
||||
final double height;
|
||||
final double size;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context, IndicatorState state) {
|
||||
if (state.mode == IndicatorMode.inactive ||
|
||||
state.mode == IndicatorMode.processed ||
|
||||
state.mode == IndicatorMode.done) {
|
||||
return const SizedBox.shrink();
|
||||
}
|
||||
|
||||
return SizedBox(
|
||||
height: height,
|
||||
child: Center(
|
||||
child: Image.asset(
|
||||
ConstImg.loading,
|
||||
width: size,
|
||||
height: size,
|
||||
fit: BoxFit.contain,
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user