discontinuedPackage androssy_widgets has been discontinued.
attach method
Implementation
@override
Widget? attach(BuildContext context, ThumbnailViewController controller) {
return StackLayout(
width: double.infinity,
height: double.infinity,
layoutGravity: controller.gravity ?? Alignment.center,
children: [
ImageView(
width: double.infinity,
height: double.infinity,
borderRadius: controller.borderRadius,
scaleType: controller.scaleType,
foreground: controller.foreground,
placeholder: controller.placeholder,
placeholderType: controller.placeholderType,
imageType: ImageType.network,
image: controller.url,
),
FloatingActionButton(
backgroundColor: Colors.black.withOpacity(0.65),
splashColor: Colors.transparent,
elevation: 0,
onPressed: () => onClick?.call(context),
child: const RawIcon(
icon: Icons.play_arrow_rounded,
size: 32,
tint: Colors.white,
),
),
],
);
}