Commit f6a9f8ca900732844a95cff04bf674640929a98e

Authored by 刘宏哲
1 parent aba0f1db

feat(app): remove tooltips

... ... @@ -241,42 +241,45 @@ class _FriendCardHeader extends StatelessWidget {
),
),
if (showMoreButton)
PopupMenuButton<FriendCardAction>(
onSelected: onMoreSelected,
elevation: 10,
color: Colors.white,
surfaceTintColor: Colors.white,
position: PopupMenuPosition.under,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(12),
),
itemBuilder: (context) => [
PopupMenuItem(
height: 42,
value: FriendCardAction.remove,
child: Center(child: Text(context.l10n.friendsRemove)),
),
PopupMenuItem(
height: 42,
padding: EdgeInsets.symmetric(vertical: 0),
value: FriendCardAction.editRemark,
child: Center(child: Text(context.l10n.friendsEditRemark)),
TooltipVisibility(
visible: false,
child: PopupMenuButton<FriendCardAction>(
onSelected: onMoreSelected,
elevation: 10,
color: Colors.white,
surfaceTintColor: Colors.white,
position: PopupMenuPosition.under,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(12),
),
if (!isOnWatchFace)
itemBuilder: (context) => [
PopupMenuItem(
height: 42,
value: FriendCardAction.watchFace,
child: Center(
child: Text(context.l10n.friendsShowOnWatchFace),
value: FriendCardAction.remove,
child: Center(child: Text(context.l10n.friendsRemove)),
),
PopupMenuItem(
height: 42,
padding: EdgeInsets.symmetric(vertical: 0),
value: FriendCardAction.editRemark,
child: Center(child: Text(context.l10n.friendsEditRemark)),
),
if (!isOnWatchFace)
PopupMenuItem(
height: 42,
value: FriendCardAction.watchFace,
child: Center(
child: Text(context.l10n.friendsShowOnWatchFace),
),
),
],
child: Padding(
padding: const EdgeInsets.all(6),
child: Image.asset(
'assets/images/common/ic_more_dots.png',
width: 24,
height: 24,
),
],
child: Padding(
padding: const EdgeInsets.all(6),
child: Image.asset(
'assets/images/common/ic_more_dots.png',
width: 24,
height: 24,
),
),
),
... ...