update to main menu button

pull/1091/head
Gabby Gurdin 2 years ago
parent 55bb8191e6
commit 62514c4555

@ -297,20 +297,36 @@ class ClientChooserButton extends StatelessWidget {
// onKeysPressed: () => _previousAccount(matrix, context), // onKeysPressed: () => _previousAccount(matrix, context),
// child: const SizedBox.shrink(), // child: const SizedBox.shrink(),
// ), // ),
ClipRRect(
borderRadius: BorderRadius.circular(16),
child: Material(
color: Colors.transparent,
child:
// Pangea# // Pangea#
SizedBox( PopupMenuButton<Object>(
width: double.infinity,
child: PopupMenuButton<Object>(
onSelected: (o) => _clientSelected(o, context), onSelected: (o) => _clientSelected(o, context),
itemBuilder: _bundleMenuItems, itemBuilder: _bundleMenuItems,
// #Pangea // #Pangea
child: ListTile( child: ListTile(
title: Text(L10n.of(context)!.mainMenu), mouseCursor: SystemMouseCursors.click,
leading: const Icon(Icons.settings_outlined), leading: const Icon(Icons.settings_outlined),
title: Text(L10n.of(context)!.mainMenu),
), ),
// Pangea#
), ),
), ),
// child: Material(
// color: Colors.transparent,
// borderRadius: BorderRadius.circular(99),
// child: Avatar(
// mxContent: snapshot.data?.avatarUrl,
// name: snapshot.data?.displayName ??
// matrix.client.userID!.localpart,
// size: 32,
// fontSize: 12,
// ),
// ),
// Pangea#
),
], ],
), ),
); );

Loading…
Cancel
Save