remove padding
This commit is contained in:
+29
-32
@@ -192,44 +192,41 @@ class _TabSheetHeader extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (!treeViewEnabled)
|
if (!treeViewEnabled)
|
||||||
Padding(
|
Consumer(
|
||||||
padding: const EdgeInsets.only(top: 12),
|
builder: (context, ref, child) {
|
||||||
child: Consumer(
|
final selectedContainer = ref.watch(
|
||||||
builder: (context, ref, child) {
|
selectedContainerDataProvider.select(
|
||||||
final selectedContainer = ref.watch(
|
(value) => value.valueOrNull,
|
||||||
selectedContainerDataProvider.select(
|
),
|
||||||
(value) => value.valueOrNull,
|
);
|
||||||
),
|
|
||||||
);
|
|
||||||
|
|
||||||
return ContainerChips(
|
return ContainerChips(
|
||||||
selectedContainer: selectedContainer,
|
selectedContainer: selectedContainer,
|
||||||
onSelected: (container) async {
|
onSelected: (container) async {
|
||||||
if (container != null) {
|
if (container != null) {
|
||||||
final result = await ref
|
final result = await ref
|
||||||
.read(selectedContainerProvider.notifier)
|
.read(selectedContainerProvider.notifier)
|
||||||
.setContainerId(container.id);
|
.setContainerId(container.id);
|
||||||
|
|
||||||
if (context.mounted &&
|
if (context.mounted &&
|
||||||
result == SetContainerResult.successHasProxy) {
|
result == SetContainerResult.successHasProxy) {
|
||||||
await ref
|
await ref
|
||||||
.read(startProxyControllerProvider.notifier)
|
.read(startProxyControllerProvider.notifier)
|
||||||
.maybeStartProxy(context);
|
.maybeStartProxy(context);
|
||||||
}
|
|
||||||
} else {
|
|
||||||
ref
|
|
||||||
.read(selectedContainerProvider.notifier)
|
|
||||||
.clearContainer();
|
|
||||||
}
|
}
|
||||||
},
|
} else {
|
||||||
onDeleted: (container) {
|
|
||||||
ref
|
ref
|
||||||
.read(selectedContainerProvider.notifier)
|
.read(selectedContainerProvider.notifier)
|
||||||
.clearContainer();
|
.clearContainer();
|
||||||
},
|
}
|
||||||
);
|
},
|
||||||
},
|
onDeleted: (container) {
|
||||||
),
|
ref
|
||||||
|
.read(selectedContainerProvider.notifier)
|
||||||
|
.clearContainer();
|
||||||
|
},
|
||||||
|
);
|
||||||
|
},
|
||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user