feat(catalog): Katalogsuche in der App (KAT-01, 3b App) #63
1 changed files with 5 additions and 3 deletions
|
|
@ -245,12 +245,14 @@ class _CatalogSearchViewState extends ConsumerState<CatalogSearchView> {
|
|||
);
|
||||
final state = ref.watch(catalogSearchControllerProvider);
|
||||
_scheduleFocus(state);
|
||||
if (state.status == CatalogSearchStatus.data) {
|
||||
_scheduleAutoLoadCheck();
|
||||
}
|
||||
|
||||
return LayoutBuilder(
|
||||
builder: (context, constraints) {
|
||||
// Also on a size change (without a state change): a larger window
|
||||
// may show the whole list, so no scroll event would ever come.
|
||||
if (state.status == CatalogSearchStatus.data) {
|
||||
_scheduleAutoLoadCheck();
|
||||
}
|
||||
final width = constraints.maxWidth;
|
||||
final expanded = AppWidthClass.of(width) == AppWidthClass.expanded;
|
||||
final padding = AppSpacing.pagePadding(width);
|
||||
|
|
|
|||
Loading…
Reference in a new issue