ListPageScaffold<T> constructor
const
ListPageScaffold<T>({ - Key? key,
- required String title,
- required String searchHint,
- required ValueChanged<String> onSearchChanged,
- required AsyncValue<List<T>> provider,
- Widget itemBuilder(
- BuildContext context,
- T item
)?,
- Widget? customBody,
- SliverGridDelegate? gridDelegate,
- List<Widget> actions = const [],
- Widget? sortBar,
- String emptyMessage = 'No items found',
- Future<void> onRefresh()?,
- VoidCallback? onFetchNextPage,
- Widget? floatingActionButton,
- EdgeInsetsGeometry padding = const EdgeInsets.all(AppTheme.spacingMedium),
- bool hideAppBar = false,
})
Implementation
const ListPageScaffold({
super.key,
required this.title,
required this.searchHint,
required this.onSearchChanged,
required this.provider,
this.itemBuilder,
this.customBody,
this.gridDelegate,
this.actions = const [],
this.sortBar,
this.emptyMessage = 'No items found',
this.onRefresh,
this.onFetchNextPage,
this.floatingActionButton,
this.padding = const EdgeInsets.all(AppTheme.spacingMedium),
this.hideAppBar = false,
});