tuiBuild method

  1. @override
Widget tuiBuild(
  1. BuildContext context,
  2. TUIKitBuildValue value
)
override

Implementation

@override
Widget tuiBuild(BuildContext context, TUIKitBuildValue value) {
  return Material(
    color: Colors.transparent,
    child: Container(
      color: Colors.transparent,
      child: Center(
        child: AnimatedOpacity(
          opacity: show ? 1.0 : 0.0,
          duration: const Duration(milliseconds: 300),
          child: GestureDetector(
            child: IconButton(
              iconSize: 86,
              icon: Image.asset('images/play.png', package: 'tencent_cloud_chat_uikit'),
              onPressed: onPressed,
            ),
          ),
        ),
      ),
    ),
  );
}