Changed the way elevation is displayed
This commit is contained in:
parent
2c41644d05
commit
3a0944ec11
|
@ -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: () {
|
||||
|
|
Loading…
Reference in New Issue