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,
|
height: value,
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
child: Material(
|
child: Material(
|
||||||
elevation: widget.elevation,
|
color: Theme.of(context).canvasColor,
|
||||||
child: Container(
|
child: Container(
|
||||||
constraints: BoxConstraints.expand(),
|
constraints: BoxConstraints.expand(),
|
||||||
child: widget.builder(value, _percentage),
|
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: () {
|
onTap: () {
|
||||||
|
|
Loading…
Reference in New Issue