Minor change.

This commit is contained in:
stonegate 2020-10-10 21:43:45 +08:00
parent 5e6b5981c7
commit 88ce52dcae
2 changed files with 101 additions and 95 deletions

View File

@ -543,7 +543,7 @@ class __PlaylistButtonState extends State<_PlaylistButton> {
@override
Widget build(BuildContext context) {
var audio = context.watch<AudioPlayerNotifier>();
final audio = context.watch<AudioPlayerNotifier>();
final s = context.s;
return Material(
color: Colors.transparent,

View File

@ -103,7 +103,11 @@ class _PopupMenuState extends State<PopupMenu> {
Widget build(BuildContext context) {
var refreshWorker = Provider.of<RefreshWorker>(context, listen: false);
final s = context.s;
return PopupMenuButton<int>(
return Material(
color: Colors.transparent,
borderRadius: BorderRadius.circular(100),
clipBehavior: Clip.hardEdge,
child: PopupMenuButton<int>(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(10))),
elevation: 1,
@ -132,7 +136,8 @@ class _PopupMenuState extends State<PopupMenu> {
if (snapshot.hasData) {
return Text(
snapshot.data,
style: TextStyle(color: Colors.red, fontSize: 12),
style:
TextStyle(color: Colors.red, fontSize: 12),
);
} else {
return Center();
@ -205,6 +210,7 @@ class _PopupMenuState extends State<PopupMenu> {
context, MaterialPageRoute(builder: (context) => Settings()));
}
},
),
);
}
}