Skip to content

Commit

Permalink
Transparent bottom #177
Browse files Browse the repository at this point in the history
  • Loading branch information
anandnet committed Sep 27, 2024
1 parent 8ed587f commit a5cb1c8
Showing 1 changed file with 35 additions and 4 deletions.
39 changes: 35 additions & 4 deletions lib/ui/player/player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class Player extends StatelessWidget {
: playerArtImageSize;
return Scaffold(
body: SlidingUpPanel(
boxShadow: const [],
minHeight: 65 + Get.mediaQuery.padding.bottom,
maxHeight: size.height,
isDraggable: !GetPlatform.isDesktop,
Expand All @@ -43,7 +44,7 @@ class Player extends StatelessWidget {
}
},
child: Container(
color: Theme.of(context).bottomSheetTheme.modalBarrierColor,
color: Theme.of(context).primaryColor,
child: Column(
children: [
SizedBox(
Expand Down Expand Up @@ -138,8 +139,38 @@ class Player extends StatelessWidget {

BackdropFilter(
filter: ImageFilter.blur(sigmaX: 10.0, sigmaY: 10.0),
child: Container(
color: Theme.of(context).primaryColor.withOpacity(0.90)),
child: Stack(
children: [
// opacity effect on background
Positioned.fill(
child: Container(
decoration: BoxDecoration(
color:
Theme.of(context).primaryColor.withOpacity(0.85),
),
),
),
// hide queue header
Align(
alignment: Alignment.bottomCenter,
child: Container(
height: 65 + Get.mediaQuery.padding.bottom + 150,
decoration: BoxDecoration(
gradient: LinearGradient(
colors: [
Theme.of(context).primaryColor,
Theme.of(context).primaryColor,
Colors.transparent,
],
begin: Alignment.bottomCenter,
end: Alignment.topCenter,
stops: const [0, 0.4, 1],
),
),
),
),
],
),
),

//Player Top content
Expand Down Expand Up @@ -194,7 +225,7 @@ class Player extends StatelessWidget {
Expanded(child: Container()),
Padding(
padding: EdgeInsets.only(
bottom: 90 + Get.mediaQuery.padding.bottom),
bottom: 80 + Get.mediaQuery.padding.bottom),
child: Container(
constraints:
const BoxConstraints(maxWidth: 500),
Expand Down

0 comments on commit a5cb1c8

Please sign in to comment.