design: Adjust design to new material 3 capabilities of Flutter 3.7
This commit is contained in:
parent
d226bf6020
commit
b176811f7c
10 changed files with 34 additions and 97 deletions
|
|
@ -16,7 +16,6 @@ import 'package:fluffychat/widgets/content_banner.dart';
|
|||
import 'package:fluffychat/widgets/layouts/max_width_body.dart';
|
||||
import 'package:fluffychat/widgets/matrix.dart';
|
||||
import '../../utils/url_launcher.dart';
|
||||
import '../../widgets/m2_popup_menu_button.dart';
|
||||
|
||||
class ChatDetailsView extends StatelessWidget {
|
||||
final ChatDetailsController controller;
|
||||
|
|
@ -198,7 +197,7 @@ class ChatDetailsView extends StatelessWidget {
|
|||
Text(L10n.of(context)!.setCustomEmotes),
|
||||
onTap: controller.goToEmoteSettings,
|
||||
),
|
||||
M2PopupMenuButton(
|
||||
PopupMenuButton(
|
||||
onSelected: controller.setJoinRulesAction,
|
||||
itemBuilder: (BuildContext context) =>
|
||||
<PopupMenuEntry<JoinRules>>[
|
||||
|
|
@ -232,7 +231,7 @@ class ChatDetailsView extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
),
|
||||
M2PopupMenuButton(
|
||||
PopupMenuButton(
|
||||
onSelected:
|
||||
controller.setHistoryVisibilityAction,
|
||||
itemBuilder: (BuildContext context) =>
|
||||
|
|
@ -285,7 +284,7 @@ class ChatDetailsView extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
if (room.joinRules == JoinRules.public)
|
||||
M2PopupMenuButton(
|
||||
PopupMenuButton(
|
||||
onSelected: controller.setGuestAccessAction,
|
||||
itemBuilder: (BuildContext context) =>
|
||||
<PopupMenuEntry<GuestAccess>>[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue