浏览代码

1.优化下拉刷新图标支持颜色传参

tags/0.0.3+2
“yanghuaxuan” 3 年前
父节点
当前提交
591de2e9f6
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      lib/widgets/refresh/refresh_header/refresh_header.dart

+ 3
- 3
lib/widgets/refresh/refresh_header/refresh_header.dart 查看文件

@@ -5,8 +5,8 @@ import 'package:pull_to_refresh/pull_to_refresh.dart';
class RefreshHeader extends StatelessWidget {
final double offsetY;
final double _height = 44;
const RefreshHeader({Key key, this.offsetY = 0}) : super(key: key);
final Color color;
const RefreshHeader({Key key, this.offsetY = 0,this.color=Colors.white}) : super(key: key);

@override
Widget build(BuildContext context) {
@@ -22,7 +22,7 @@ class RefreshHeader extends StatelessWidget {
height: 36,
child: LoadingIndicator(
indicatorType: Indicator.ballSpinFadeLoader,
color: Colors.white,
color: color,
),
),
),


正在加载...
取消
保存