Skip to content

Commit

Permalink
feat(#701): improve tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
tamslo committed Feb 26, 2024
1 parent 43f8fef commit 63b93b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/lib/drug/widgets/tooltip_icon.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import 'package:flutter/material.dart';

import '../../common/module.dart';

class TooltipIcon extends StatelessWidget {
const TooltipIcon(this.message);

Expand All @@ -9,8 +11,9 @@ class TooltipIcon extends StatelessWidget {
Widget build(BuildContext context) {
return Tooltip(
message: message,
margin: EdgeInsets.all(PharMeTheme.smallSpace),
triggerMode: TooltipTriggerMode.tap,
showDuration: const Duration(seconds: 2),
showDuration: const Duration(seconds: 3),
child: Icon(Icons.help_outline_rounded, size: 16),
);
}
Expand Down

0 comments on commit 63b93b9

Please sign in to comment.