Skip to content

Commit

Permalink
chore: Optimize tap region size
Browse files Browse the repository at this point in the history
  • Loading branch information
Losses committed Dec 11, 2024
1 parent 897dc39 commit b7ae70a
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions lib/widgets/navigation_bar/slibing_link.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,19 +96,22 @@ class _SlibingLinkState extends State<SlibingLink> {
key: Key('animation-$childFlipKey'),
opacity: _entryAnimationOpacity,
duration: const Duration(milliseconds: 300),
child: FlipText(
key: Key(childFlipKey),
flipKey: childFlipKey,
text: widget.route.titleBuilder(context),
scale: 1.2,
color: _isFocus ? contentColor : null,
glowColor: contentColor,
glowRadius: _isFocus ? 10 : 0,
alpha: widget.isSelected || _isFocus
? 255
: _isHovered
? 200
: 100,
child: Padding(
padding: EdgeInsets.only(bottom: 12),
child: FlipText(
key: Key(childFlipKey),
flipKey: childFlipKey,
text: widget.route.titleBuilder(context),
scale: 1.2,
color: _isFocus ? contentColor : null,
glowColor: contentColor,
glowRadius: _isFocus ? 10 : 0,
alpha: widget.isSelected || _isFocus
? 255
: _isHovered
? 200
: 100,
),
),
),
),
Expand Down

0 comments on commit b7ae70a

Please sign in to comment.