persist selected container
This commit is contained in:
@@ -41,7 +41,7 @@ final class TabRepositoryProvider
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
String _$tabRepositoryHash() => r'22fdd97ad7f235590926915169c9e7230de94bdb';
|
String _$tabRepositoryHash() => r'87d2a4a0bca93c2d925aa1c81ff80d443185950a';
|
||||||
|
|
||||||
abstract class _$TabRepository extends $Notifier<void> {
|
abstract class _$TabRepository extends $Notifier<void> {
|
||||||
void build();
|
void build();
|
||||||
|
|||||||
@@ -817,6 +817,9 @@ class _SheetContainer extends HookConsumerWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context, WidgetRef ref) {
|
Widget build(BuildContext context, WidgetRef ref) {
|
||||||
final colorScheme = Theme.of(context).colorScheme;
|
final colorScheme = Theme.of(context).colorScheme;
|
||||||
|
final modalBarrierColor =
|
||||||
|
Theme.of(context).bottomSheetTheme.modalBarrierColor ??
|
||||||
|
colorScheme.scrim.withValues(alpha: 0.5);
|
||||||
|
|
||||||
bool dismissOnThreshold(DraggableScrollableNotification notification) {
|
bool dismissOnThreshold(DraggableScrollableNotification notification) {
|
||||||
if (notification.extent <= 0.1) {
|
if (notification.extent <= 0.1) {
|
||||||
@@ -833,7 +836,7 @@ class _SheetContainer extends HookConsumerWidget {
|
|||||||
ref.read(bottomSheetControllerProvider.notifier).requestDismiss();
|
ref.read(bottomSheetControllerProvider.notifier).requestDismiss();
|
||||||
},
|
},
|
||||||
child: ColoredBox(
|
child: ColoredBox(
|
||||||
color: colorScheme.scrim.withValues(alpha: 0.5),
|
color: modalBarrierColor,
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
onTap: () {}, // Prevent tap from propagating to parent
|
onTap: () {}, // Prevent tap from propagating to parent
|
||||||
child: Align(
|
child: Align(
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ final class SelectedContainerProvider
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
String _$selectedContainerHash() => r'0ffa17823ec95c94b9cf9b2d005de19d6ff992f8';
|
String _$selectedContainerHash() => r'1e2c67dc70fedb2b910640fbfbe09f2c4806894b';
|
||||||
|
|
||||||
abstract class _$SelectedContainer extends $Notifier<String?> {
|
abstract class _$SelectedContainer extends $Notifier<String?> {
|
||||||
String? build();
|
String? build();
|
||||||
|
|||||||
Reference in New Issue
Block a user