Changed the way elevation is displayed

This commit is contained in:
peterscodee 2020-08-27 11:41:09 +02:00
parent 2c41644d05
commit 3a0944ec11
1 changed files with 10 additions and 1 deletions

View File

@ -100,10 +100,19 @@ class _MiniplayerState extends State<Miniplayer> with TickerProviderStateMixin {
height: value,
child: GestureDetector(
child: Material(
elevation: widget.elevation,
color: Theme.of(context).canvasColor,
child: Container(
constraints: BoxConstraints.expand(),
child: widget.builder(value, _percentage),
decoration: BoxDecoration(
boxShadow: <BoxShadow>[
BoxShadow(
color: Colors.black45,
blurRadius: widget.elevation,
offset: Offset(0.0, 4))
],
color: Colors.white,
),
),
),
onTap: () {