design: Adjust design to new material 3 capabilities of Flutter 3.7

This commit is contained in:
Christian Pauly 2023-02-02 09:47:35 +01:00
commit b176811f7c
10 changed files with 34 additions and 97 deletions

View file

@ -2,8 +2,6 @@ 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);
@ -34,7 +32,7 @@ class LogViewerState extends State<LogViewer> {
icon: const Icon(Icons.zoom_out_outlined),
onPressed: () => setState(() => fontSize--),
),
M2PopupMenuButton<Level>(
PopupMenuButton<Level>(
itemBuilder: (context) => Level.values
.map((level) => PopupMenuItem(
value: level,