Commit f6a9f8ca900732844a95cff04bf674640929a98e

Authored by 刘宏哲
1 parent aba0f1db

feat(app): remove tooltips

@@ -241,42 +241,45 @@ class _FriendCardHeader extends StatelessWidget { @@ -241,42 +241,45 @@ class _FriendCardHeader extends StatelessWidget {
241 ), 241 ),
242 ), 242 ),
243 if (showMoreButton) 243 if (showMoreButton)
244 - PopupMenuButton<FriendCardAction>(  
245 - onSelected: onMoreSelected,  
246 - elevation: 10,  
247 - color: Colors.white,  
248 - surfaceTintColor: Colors.white,  
249 - position: PopupMenuPosition.under,  
250 - shape: RoundedRectangleBorder(  
251 - borderRadius: BorderRadius.circular(12),  
252 - ),  
253 - itemBuilder: (context) => [  
254 - PopupMenuItem(  
255 - height: 42,  
256 - value: FriendCardAction.remove,  
257 - child: Center(child: Text(context.l10n.friendsRemove)),  
258 - ),  
259 - PopupMenuItem(  
260 - height: 42,  
261 - padding: EdgeInsets.symmetric(vertical: 0),  
262 - value: FriendCardAction.editRemark,  
263 - child: Center(child: Text(context.l10n.friendsEditRemark)), 244 + TooltipVisibility(
  245 + visible: false,
  246 + child: PopupMenuButton<FriendCardAction>(
  247 + onSelected: onMoreSelected,
  248 + elevation: 10,
  249 + color: Colors.white,
  250 + surfaceTintColor: Colors.white,
  251 + position: PopupMenuPosition.under,
  252 + shape: RoundedRectangleBorder(
  253 + borderRadius: BorderRadius.circular(12),
264 ), 254 ),
265 - if (!isOnWatchFace) 255 + itemBuilder: (context) => [
266 PopupMenuItem( 256 PopupMenuItem(
267 height: 42, 257 height: 42,
268 - value: FriendCardAction.watchFace,  
269 - child: Center(  
270 - child: Text(context.l10n.friendsShowOnWatchFace), 258 + value: FriendCardAction.remove,
  259 + child: Center(child: Text(context.l10n.friendsRemove)),
  260 + ),
  261 + PopupMenuItem(
  262 + height: 42,
  263 + padding: EdgeInsets.symmetric(vertical: 0),
  264 + value: FriendCardAction.editRemark,
  265 + child: Center(child: Text(context.l10n.friendsEditRemark)),
  266 + ),
  267 + if (!isOnWatchFace)
  268 + PopupMenuItem(
  269 + height: 42,
  270 + value: FriendCardAction.watchFace,
  271 + child: Center(
  272 + child: Text(context.l10n.friendsShowOnWatchFace),
  273 + ),
271 ), 274 ),
  275 + ],
  276 + child: Padding(
  277 + padding: const EdgeInsets.all(6),
  278 + child: Image.asset(
  279 + 'assets/images/common/ic_more_dots.png',
  280 + width: 24,
  281 + height: 24,
272 ), 282 ),
273 - ],  
274 - child: Padding(  
275 - padding: const EdgeInsets.all(6),  
276 - child: Image.asset(  
277 - 'assets/images/common/ic_more_dots.png',  
278 - width: 24,  
279 - height: 24,  
280 ), 283 ),
281 ), 284 ),
282 ), 285 ),