|
|
@ -117,7 +117,7 @@ class MyClassicHeader extends RefreshIndicator { |
|
|
|
const MyClassicHeader({ |
|
|
|
const MyClassicHeader({ |
|
|
|
Key key, |
|
|
|
Key key, |
|
|
|
RefreshStyle refreshStyle: RefreshStyle.Follow, |
|
|
|
RefreshStyle refreshStyle: RefreshStyle.Follow, |
|
|
|
double height: 60.0, |
|
|
|
double height: 70.0, |
|
|
|
Duration completeDuration: const Duration(milliseconds: 600), |
|
|
|
Duration completeDuration: const Duration(milliseconds: 600), |
|
|
|
this.outerBuilder, |
|
|
|
this.outerBuilder, |
|
|
|
this.textStyle: const TextStyle(color: Colors.grey), |
|
|
|
this.textStyle: const TextStyle(color: Colors.grey), |
|
|
@ -219,7 +219,7 @@ class _ClassicHeaderState extends RefreshIndicatorState<MyClassicHeader> { |
|
|
|
), |
|
|
|
), |
|
|
|
textWidget |
|
|
|
textWidget |
|
|
|
]; |
|
|
|
]; |
|
|
|
final Widget container = Row( |
|
|
|
final Widget container = Padding(padding: EdgeInsets.only(top: MediaQuery.of(context).padding.top,),child: Row( |
|
|
|
// spacing: widget.spacing, |
|
|
|
// spacing: widget.spacing, |
|
|
|
// textDirection: widget.iconPos == IconPosition.left |
|
|
|
// textDirection: widget.iconPos == IconPosition.left |
|
|
|
// ? TextDirection.ltr |
|
|
|
// ? TextDirection.ltr |
|
|
@ -236,7 +236,7 @@ class _ClassicHeaderState extends RefreshIndicatorState<MyClassicHeader> { |
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
children: children, |
|
|
|
children: children, |
|
|
|
); |
|
|
|
),); |
|
|
|
return widget.outerBuilder != null |
|
|
|
return widget.outerBuilder != null |
|
|
|
? widget.outerBuilder(container) |
|
|
|
? widget.outerBuilder(container) |
|
|
|
: Container( |
|
|
|
: Container( |
|
|
|