Код: Выделить всё
i need image out like this but during the scroll it gets misaligned
showcaseview: ^3.0.0
final GlobalKey iconShowcaseKey = GlobalKey();
/////
VisibilityDetector(
key: Key(
'visibility_detector'),
onVisibilityChanged: (visibilityInfo) {
var visiblePercentage =
visibilityInfo.visibleFraction * 100;
// Check if more than 50% of the widget is visible
if (visiblePercentage > 50) {
ShowCaseWidget.of(context).startShowCase([iconShowcaseKey]);
print(" 50% visible");
}
},
child: Showcase(
key: iconShowcaseKey,
descriptionPadding:
EdgeInsets.all(2.sp),
tooltipPosition: TooltipPosition.bottom,
overlayOpacity: 0,
tooltipBackgroundColor: ColorConstants.blackColor,
descTextStyle: TextStyle(
fontSize: 10.sp,
fontWeight: FontWeight.w500,
color: Colors.white,
),
titleTextStyle: TextStyle(
fontSize: 12.sp,
fontWeight: FontWeight.w500,
color: Color(0XFF3E3E3E),
),
child:Container(
height:100,
width:80,
color:Colors.red),
description:"Click for options",
)
)
)
Подробнее здесь: https://stackoverflow.com/questions/791 ... mobile-app