Add padding workaround for bottom app bar elevation (#309)
diff --git a/lib/studies/reply/adaptive_nav.dart b/lib/studies/reply/adaptive_nav.dart
index 46afc05..b03fcd2 100644
--- a/lib/studies/reply/adaptive_nav.dart
+++ b/lib/studies/reply/adaptive_nav.dart
@@ -737,61 +737,63 @@
return SizeTransition(
sizeFactor: bottomAppBarCurve,
axisAlignment: -1,
- child: BottomAppBar(
- shape: const WaterfallNotchedRectangle(),
- notchMargin: 6,
- child: Container(
- color: Colors.transparent,
- height: kToolbarHeight,
- child: Row(
- mainAxisSize: MainAxisSize.max,
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
- children: [
- InkWell(
- key: const ValueKey('ReplyLogo'),
- borderRadius: const BorderRadius.all(Radius.circular(16)),
- onTap: toggleBottomDrawerVisibility,
- child: Row(
- children: [
- const SizedBox(width: 16),
- RotationTransition(
- turns: Tween(
- begin: 0.0,
- end: 1.0,
- ).animate(dropArrowCurve),
- child: const Icon(
- Icons.arrow_drop_up,
- color: ReplyColors.white50,
+ child: Padding(
+ padding: const EdgeInsetsDirectional.only(top: 2),
+ child: BottomAppBar(
+ shape: const WaterfallNotchedRectangle(),
+ notchMargin: 6,
+ child: Container(
+ color: Colors.transparent,
+ height: kToolbarHeight,
+ child: Row(
+ mainAxisSize: MainAxisSize.max,
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ InkWell(
+ borderRadius: const BorderRadius.all(Radius.circular(16)),
+ onTap: toggleBottomDrawerVisibility,
+ child: Row(
+ children: [
+ const SizedBox(width: 16),
+ RotationTransition(
+ turns: Tween(
+ begin: 0.0,
+ end: 1.0,
+ ).animate(dropArrowCurve),
+ child: const Icon(
+ Icons.arrow_drop_up,
+ color: ReplyColors.white50,
+ ),
),
- ),
- const SizedBox(width: 8),
- const _ReplyLogo(),
- const SizedBox(width: 10),
- AnimatedOpacity(
- opacity:
- bottomDrawerVisible || onMailView ? 0.0 : 1.0,
- duration: _kAnimationDuration,
- curve: standardEasing,
- child: Text(
- navigationDestinations[selectedIndex].name,
- style: Theme.of(context)
- .textTheme
- .bodyText1
- .copyWith(color: ReplyColors.white50),
+ const SizedBox(width: 8),
+ const _ReplyLogo(),
+ const SizedBox(width: 10),
+ AnimatedOpacity(
+ opacity:
+ bottomDrawerVisible || onMailView ? 0.0 : 1.0,
+ duration: _kAnimationDuration,
+ curve: standardEasing,
+ child: Text(
+ navigationDestinations[selectedIndex].name,
+ style: Theme.of(context)
+ .textTheme
+ .bodyText1
+ .copyWith(color: ReplyColors.white50),
+ ),
),
- ),
- ],
- ),
- ),
- Expanded(
- child: Container(
- color: Colors.transparent,
- child: _BottomAppBarActionItems(
- drawerVisible: bottomDrawerVisible,
+ ],
),
),
- ),
- ],
+ Expanded(
+ child: Container(
+ color: Colors.transparent,
+ child: _BottomAppBarActionItems(
+ drawerVisible: bottomDrawerVisible,
+ ),
+ ),
+ ),
+ ],
+ ),
),
),
),