momentVideoBackButton method

Widget momentVideoBackButton(
  1. BuildContext context
)

The back button when previewing video in SpecialPickerType.wechatMoment. 使用 SpecialPickerType.wechatMoment 预览视频时的返回按钮

Implementation

Widget momentVideoBackButton(BuildContext context) {
  return PositionedDirectional(
    start: 16,
    top: context.topPadding + 16,
    child: GestureDetector(
      onTap: Navigator.of(context).maybePop,
      child: Container(
        padding: const EdgeInsets.all(5),
        decoration: BoxDecoration(
          color: themeData.iconTheme.color,
          shape: BoxShape.circle,
        ),
        child: Icon(
          Icons.keyboard_return_rounded,
          color: themeData.canvasColor,
          size: 18,
        ),
      ),
    ),
  );
}