show modal barrier when displaying sheet
This commit is contained in:
@@ -334,10 +334,13 @@ class KagiScreen extends HookConsumerWidget {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: SafeArea(
|
child: Stack(
|
||||||
|
children: [
|
||||||
|
SafeArea(
|
||||||
child: AnimatedIndexedStack(
|
child: AnimatedIndexedStack(
|
||||||
duration: const Duration(milliseconds: 250),
|
duration: const Duration(milliseconds: 250),
|
||||||
transitionBuilder: (child, animation, secondaryAnimation) =>
|
transitionBuilder:
|
||||||
|
(child, animation, secondaryAnimation) =>
|
||||||
SharedAxisTransition(
|
SharedAxisTransition(
|
||||||
animation: animation,
|
animation: animation,
|
||||||
secondaryAnimation: secondaryAnimation,
|
secondaryAnimation: secondaryAnimation,
|
||||||
@@ -360,6 +363,13 @@ class KagiScreen extends HookConsumerWidget {
|
|||||||
children: [const LandingContent(), ...webViews.values],
|
children: [const LandingContent(), ...webViews.values],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
if (displayedSheet != null)
|
||||||
|
ModalBarrier(
|
||||||
|
color: Theme.of(context).dialogTheme.barrierColor ??
|
||||||
|
Colors.black54,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user