mirror of
https://github.com/git-touch/git-touch
synced 2025-01-31 08:04:51 +01:00
fix: refresh scaffold when trailing builder null
This commit is contained in:
parent
0c54611345
commit
e6d6835661
@ -67,13 +67,13 @@ class _RefreshScaffoldState<T> extends State<RefreshScaffold<T>> {
|
||||
}
|
||||
|
||||
Widget _buildTrailing() {
|
||||
if (payload == null) return null;
|
||||
if (payload == null || widget.trailingBuilder == null) return null;
|
||||
|
||||
return widget.trailingBuilder(payload);
|
||||
}
|
||||
|
||||
List<Widget> _buildActions() {
|
||||
if (payload == null) return null;
|
||||
if (payload == null || widget.trailingBuilder == null) return null;
|
||||
|
||||
return [widget.trailingBuilder(payload)];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user