@ -141,12 +141,7 @@ class _FilesBrowserViewState extends State<FilesBrowserView> {
],
isLoading: files.loading,
error: files.error,
onRetry: () async {
await widget.bloc.refresh();
},
onRefresh: () async {
onRefresh: widget.bloc.refresh,
builder: (final context, final widget) => widget,
topScrollingChildren: [
Align(
@ -41,10 +41,6 @@ class _NewsArticlesViewState extends State<NewsArticlesView> {
items: feeds.data == null ? null : sorted,
isLoading: articles.loading || feeds.loading,
error: articles.error ?? feeds.error,
await widget.newsBloc.refresh();
@ -45,12 +45,7 @@ class NewsFeedsView extends StatelessWidget {
items: sorted,
isLoading: feeds.loading || folders.loading,
error: feeds.error ?? folders.error,
await bloc.refresh();
onRefresh: bloc.refresh,
builder: (final context, final feed) => _buildFeed(
context,
feed,
@ -47,12 +47,7 @@ class NewsFoldersView extends StatelessWidget {
builder: _buildFolder,
),
@ -30,12 +30,7 @@ class NotesCategoriesView extends StatelessWidget {
isLoading: notes.loading,
error: notes.error,
builder: _buildCategory,
@ -60,12 +60,7 @@ class NotesView extends StatelessWidget {
builder: _buildNote,
@ -39,12 +39,7 @@ class _NotificationsMainPageState extends State<NotificationsMainPage> {
items: notifications.data,
isLoading: notifications.loading,
error: notifications.error,
builder: _buildNotification,
@ -5,7 +5,6 @@ class CustomListView<T> extends StatelessWidget {
required this.items,
required this.isLoading,
required this.error,
required this.onRetry,
required this.onRefresh,
required this.builder,
this.scrollKey,
@ -18,7 +17,6 @@ class CustomListView<T> extends StatelessWidget {
final List<T>? items;
final bool isLoading;
final dynamic error;
final Function() onRetry;
final Future Function() onRefresh;
final Widget Function(BuildContext, T data) builder;
final String? scrollKey;
@ -52,7 +50,7 @@ class CustomListView<T> extends StatelessWidget {
ExceptionWidget(
error,
onRetry: onRetry,
onRetry: onRefresh,
if (items != null) ...[
for (final item in items!) ...[