show modal barrier when displaying sheet
This commit is contained in:
@@ -334,31 +334,41 @@ class KagiScreen extends HookConsumerWidget {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: SafeArea(
|
child: Stack(
|
||||||
child: AnimatedIndexedStack(
|
children: [
|
||||||
duration: const Duration(milliseconds: 250),
|
SafeArea(
|
||||||
transitionBuilder: (child, animation, secondaryAnimation) =>
|
child: AnimatedIndexedStack(
|
||||||
SharedAxisTransition(
|
duration: const Duration(milliseconds: 250),
|
||||||
animation: animation,
|
transitionBuilder:
|
||||||
secondaryAnimation: secondaryAnimation,
|
(child, animation, secondaryAnimation) =>
|
||||||
transitionType: SharedAxisTransitionType.horizontal,
|
SharedAxisTransition(
|
||||||
child: child,
|
animation: animation,
|
||||||
|
secondaryAnimation: secondaryAnimation,
|
||||||
|
transitionType: SharedAxisTransitionType.horizontal,
|
||||||
|
child: child,
|
||||||
|
),
|
||||||
|
key: ValueKey(
|
||||||
|
(activeWebView != null)
|
||||||
|
? webViews.keys
|
||||||
|
.toList()
|
||||||
|
.indexOf(activeWebView.page.value.key)
|
||||||
|
: null,
|
||||||
|
),
|
||||||
|
index: (activeWebView != null)
|
||||||
|
? webViews.keys
|
||||||
|
.toList()
|
||||||
|
.indexOf(activeWebView.page.value.key) +
|
||||||
|
1
|
||||||
|
: 0,
|
||||||
|
children: [const LandingContent(), ...webViews.values],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
key: ValueKey(
|
if (displayedSheet != null)
|
||||||
(activeWebView != null)
|
ModalBarrier(
|
||||||
? webViews.keys
|
color: Theme.of(context).dialogTheme.barrierColor ??
|
||||||
.toList()
|
Colors.black54,
|
||||||
.indexOf(activeWebView.page.value.key)
|
),
|
||||||
: null,
|
],
|
||||||
),
|
|
||||||
index: (activeWebView != null)
|
|
||||||
? webViews.keys
|
|
||||||
.toList()
|
|
||||||
.indexOf(activeWebView.page.value.key) +
|
|
||||||
1
|
|
||||||
: 0,
|
|
||||||
children: [const LandingContent(), ...webViews.values],
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user