fix: Popup menu without elevation
This commit is contained in:
parent
9aa9426d86
commit
92fa413156
10 changed files with 80 additions and 30 deletions
|
|
@ -2,6 +2,8 @@ import 'package:flutter/material.dart';
|
|||
|
||||
import 'package:matrix/matrix.dart';
|
||||
|
||||
import 'm2_popup_menu_button.dart';
|
||||
|
||||
class LogViewer extends StatefulWidget {
|
||||
const LogViewer({Key? key}) : super(key: key);
|
||||
|
||||
|
|
@ -32,7 +34,7 @@ class LogViewerState extends State<LogViewer> {
|
|||
icon: const Icon(Icons.zoom_out_outlined),
|
||||
onPressed: () => setState(() => fontSize--),
|
||||
),
|
||||
PopupMenuButton<Level>(
|
||||
M2PopupMenuButton<Level>(
|
||||
itemBuilder: (context) => Level.values
|
||||
.map((level) => PopupMenuItem(
|
||||
value: level,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue