update to main menu button

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

@ -297,19 +297,35 @@ class ClientChooserButton extends StatelessWidget {
// onKeysPressed: () => _previousAccount(matrix, context), // onKeysPressed: () => _previousAccount(matrix, context),
// child: const SizedBox.shrink(), // child: const SizedBox.shrink(),
// ), // ),
// Pangea# ClipRRect(
SizedBox( borderRadius: BorderRadius.circular(16),
width: double.infinity, child: Material(
child: PopupMenuButton<Object>( color: Colors.transparent,
onSelected: (o) => _clientSelected(o, context), child:
itemBuilder: _bundleMenuItems, // Pangea#
// #Pangea PopupMenuButton<Object>(
child: ListTile( onSelected: (o) => _clientSelected(o, context),
title: Text(L10n.of(context)!.mainMenu), itemBuilder: _bundleMenuItems,
leading: const Icon(Icons.settings_outlined), // #Pangea
child: ListTile(
mouseCursor: SystemMouseCursors.click,
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