momentVideoBackButton method
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: Semantics(
sortKey: ordinalSortKey(0),
child: IconButton(
onPressed: Navigator.of(context).maybePop,
padding: EdgeInsets.zero,
constraints: BoxConstraints.tight(const Size.square(28)),
tooltip: MaterialLocalizations.of(context).backButtonTooltip,
iconSize: 18,
icon: Container(
padding: const EdgeInsets.all(5),
decoration: BoxDecoration(
color: themeData.iconTheme.color,
shape: BoxShape.circle,
),
child: Icon(
Icons.keyboard_return_rounded,
color: themeData.canvasColor,
),
),
),
),
);
}