improve layout
This commit is contained in:
@@ -277,6 +277,7 @@ class SearchScreen extends HookConsumerWidget {
|
|||||||
pinned: true,
|
pinned: true,
|
||||||
automaticallyImplyLeading: false,
|
automaticallyImplyLeading: false,
|
||||||
toolbarHeight: isEditMode ? 0 : kToolbarHeight + 56,
|
toolbarHeight: isEditMode ? 0 : kToolbarHeight + 56,
|
||||||
|
titleSpacing: 0.0,
|
||||||
title: isEditMode
|
title: isEditMode
|
||||||
? null
|
? null
|
||||||
: Column(
|
: Column(
|
||||||
@@ -331,26 +332,30 @@ class SearchScreen extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
SizedBox(
|
Padding(
|
||||||
height: 48,
|
padding: const EdgeInsets.only(left: 16.0),
|
||||||
child: ContainerChips(
|
child: SizedBox(
|
||||||
selectedContainer: selectedContainer.value,
|
height: 48,
|
||||||
onSelected: (container) async {
|
child: ContainerChips(
|
||||||
if (container != null) {
|
selectedContainer: selectedContainer.value,
|
||||||
if (await ref
|
onSelected: (container) async {
|
||||||
.read(
|
if (container != null) {
|
||||||
selectedContainerProvider.notifier,
|
if (await ref
|
||||||
)
|
.read(
|
||||||
.authenticateContainer(container)) {
|
selectedContainerProvider
|
||||||
|
.notifier,
|
||||||
|
)
|
||||||
|
.authenticateContainer(container)) {
|
||||||
|
selectedContainer.value = container;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
selectedContainer.value = container;
|
selectedContainer.value = container;
|
||||||
}
|
}
|
||||||
} else {
|
},
|
||||||
selectedContainer.value = container;
|
onDeleted: (container) {
|
||||||
}
|
selectedContainer.value = null;
|
||||||
},
|
},
|
||||||
onDeleted: (container) {
|
),
|
||||||
selectedContainer.value = null;
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user