1
0
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:
Rongjian Zhang 2019-03-02 17:21:50 +08:00
parent 0c54611345
commit e6d6835661

View File

@ -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)];
}