@@ -700,10 +700,7 @@ void main() {
700
700
return Tooltip (
701
701
key: tooltipKey,
702
702
message: tooltipText,
703
- child: const SizedBox (
704
- width: 0.0 ,
705
- height: 0.0 ,
706
- ),
703
+ child: const SizedBox .shrink (),
707
704
);
708
705
},
709
706
),
@@ -733,26 +730,22 @@ void main() {
733
730
home: Tooltip (
734
731
key: tooltipKey,
735
732
message: tooltipText,
736
- child: const SizedBox (
737
- width: 0.0 ,
738
- height: 0.0 ,
739
- ),
733
+ child: const SizedBox .shrink (),
740
734
),
741
735
),
742
736
);
743
737
tooltipKey.currentState? .ensureTooltipVisible ();
744
738
await tester.pump (const Duration (seconds: 2 )); // faded in, show timer started (and at 0.0)
745
739
746
740
final RenderParagraph tooltipRenderParagraph = tester.renderObject <RenderParagraph >(find.text (tooltipText));
747
- expect (tooltipRenderParagraph.textSize.height, equals (10 .0 ));
741
+ expect (tooltipRenderParagraph.textSize.height, equals (12 .0 ));
748
742
749
- final RenderBox tip = tester.renderObject (
743
+ final RenderBox tooltipContainer = tester.renderObject (
750
744
_findTooltipContainer (tooltipText),
751
745
);
752
- expect (tip.size.height, equals (24.0 ));
753
- expect (tip.size.width, equals (46.0 ));
754
- expect (tip, paints..rrect (
755
- rrect: RRect .fromRectAndRadius (tip.paintBounds, const Radius .circular (4.0 )),
746
+ expect (tooltipContainer.size.height, equals (24.0 ));
747
+ expect (tooltipContainer, paints..rrect (
748
+ rrect: RRect .fromRectAndRadius (tooltipContainer.paintBounds, const Radius .circular (4.0 )),
756
749
color: const Color (0xe6616161 ),
757
750
));
758
751
}, variant: const TargetPlatformVariant (< TargetPlatform > {TargetPlatform .macOS, TargetPlatform .linux, TargetPlatform .windows}));
0 commit comments