Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Commit

Permalink
fix(Explore): Add better curve
Browse files Browse the repository at this point in the history
  • Loading branch information
moverval committed Jan 3, 2024
1 parent b8043be commit b8f8ab1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/pages/Explore.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ class _ExploreState extends State<Explore> {
value: 'addBeer',
onTap: () {
OverlayEntry? addBeerOverlay;
addBeerOverlay = createAddBeerOverlay(context, () => Rut.of(context).showOverlay(null), null, null);
addBeerOverlay = createAddBeerOverlay(
context,
() => Rut.of(context).showOverlay(null),
null,
null);
Rut.of(context).showOverlayEntry(addBeerOverlay);
},
child: Row(
Expand Down Expand Up @@ -127,6 +131,7 @@ class _ExploreState extends State<Explore> {
Positioned(
bottom: 0,
child: AnimatedContainer(
curve: Curves.easeInOutCubic,
duration: const Duration(milliseconds: 500),
height: _tabListExpanded.value
? MediaQuery.of(context).size.height * 0.7
Expand All @@ -136,13 +141,13 @@ class _ExploreState extends State<Explore> {
clipBehavior: Clip.none,
children: [
GestureDetector(
behavior: HitTestBehavior.translucent,
onTap: () {
_tabListExpanded.value = true;
},
child: AbsorbPointer(
absorbing: !_tabListExpanded.value,
child: Container(
clipBehavior: Clip.none,
decoration: const BoxDecoration(
color: Colors.white,
),
Expand Down

0 comments on commit b8f8ab1

Please sign in to comment.