getCenterIconWidget method
Implementation
SizedBox? getCenterIconWidget() {
if (TUIMediaThumbnailType.document == mediaType) {
return SizedBox(
width: size.width,
height: size.height,
child: const Center(
child: SizedBox(
width: 24,
height: 24,
child: Center(
child: Icon(
FluentIcons.document_16_regular,
color: Colors.black,
),
),
),
),
);
} else if (TUIMediaThumbnailType.audio == mediaType) {
return SizedBox(
width: size.width,
height: size.height,
child: const Center(
child: SizedBox(
width: 24,
height: 24,
child: Center(
child: Icon(
FluentIcons.device_eq_20_filled,
color: Colors.black,
),
),
),
),
);
} else if (TUIMediaThumbnailType.video == mediaType) {
return SizedBox(
width: size.width,
height: size.height,
child: Center(
child: Container(
decoration: decorateIcon(),
width: 24,
height: 24,
child: const Center(
child: Icon(
FluentIcons.play_16_regular,
color: Colors.white,
size: 12,
),
),
),
),
);
}
return null;
}