dxvid-pts / miniplayer

A lightweight flutter package to simplify the creation of a miniplayer.
https://pub.dev/packages/miniplayer
MIT License
107 stars 79 forks source link

Bug: doesn't adhere to darktheme #13

Closed MagnusJohansson closed 3 years ago

MagnusJohansson commented 3 years ago

Hi,

just tested this package with a device with system dark theme. However, it doesn't change the background color of the player, it seems to be hard coded to white.

Fix: in miniplayer.dart https://github.com/peterscodee/miniplayer/blob/4fa9d07e59d74c0a566ccdb6469fa1338b417c38/lib/miniplayer.dart#L206

Please consider changing: color: Colors.white,

to

color: Theme.of(context).canvasColor

Thanks.

dxvid-pts commented 3 years ago

Thank you for submitting!