bottomActionBar method

Widget bottomActionBar(
  1. BuildContext context
)

Action bar widget aligned to bottom. 底部操作栏部件

Implementation

Widget bottomActionBar(BuildContext context) {
  Widget child = Container(
    height: bottomActionBarHeight + context.bottomPadding,
    padding: const EdgeInsets.symmetric(horizontal: 20).copyWith(
      bottom: context.bottomPadding,
    ),
    color: theme.primaryColor.withOpacity(isAppleOS ? 0.90 : 1),
    child: Row(
      children: <Widget>[
        if (!isAppleOS) previewButton(context),
        if (isAppleOS) const Spacer(),
        if (isAppleOS) confirmButton(context),
      ],
    ),
  );
  if (isPermissionLimited) {
    child = Column(
      mainAxisSize: MainAxisSize.min,
      children: <Widget>[accessLimitedBottomTip(context), child],
    );
  }
  child = ClipRect(
    child: BackdropFilter(
      filter: ui.ImageFilter.blur(
        sigmaX: appleOSBlurRadius,
        sigmaY: appleOSBlurRadius,
      ),
      child: child,
    ),
  );
  return child;
}