bottomActionBar method
Action bar widget aligned to bottom. 底部操作栏部件
Implementation
Widget bottomActionBar(BuildContext context) {
Widget child = Container(
width: Screens.width,
height: bottomActionBarHeight + Screens.bottomSafeHeight,
padding: EdgeInsetsDirectional.only(
start: 20.0,
end: 20.0,
bottom: Screens.bottomSafeHeight,
),
color: theme.primaryColor.withOpacity(isAppleOS ? 0.90 : 1.0),
child: Row(children: <Widget>[
if (!isSingleAssetMode || !isAppleOS) previewButton(context),
if (isAppleOS) const Spacer(),
if (isAppleOS) confirmButton(context),
]),
);
if (isAppleOS) {
child = ClipRect(
child: BackdropFilter(
filter: ui.ImageFilter.blur(
sigmaX: appleOSBlurRadius,
sigmaY: appleOSBlurRadius,
),
child: child,
),
);
}
return child;
}