flutter_state_view

flutter state view with loading,empty,error show <br/>

使用方法:<br/>

    StateView(
      state: state,
      loadingLabel:'加载中...',
      emptyLabel: '空空如也',
      errorLabel: '我错了',
      onRetry: this.onRetry,
      child: Text('成功页面!'),
    ),
    

效果图如下:<br/> image image image

Getting Started

Libraries

flutter_state_view
main