bottomActionBar method

  1. @override
Widget bottomActionBar(
  1. BuildContext context
)
override

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

Implementation

@override
Widget bottomActionBar(BuildContext context) {
  final children = <Widget>[
    if (isPermissionLimited) accessLimitedBottomTip(context),
    if (hasBottomActions)
      Container(
        height: bottomActionBarHeight + context.bottomPadding,
        padding: const EdgeInsets.symmetric(horizontal: 20).copyWith(
          bottom: context.bottomPadding,
        ),
        color: theme.bottomAppBarTheme.color?.withOpacity(
          theme.bottomAppBarTheme.color!.opacity *
              (isAppleOS(context) ? .9 : 1),
        ),
        child: Row(
          children: <Widget>[
            if (isPreviewEnabled) previewButton(context),
            if (isPreviewEnabled || !isSingleAssetMode) const Spacer(),
            if (isPreviewEnabled || !isSingleAssetMode)
              confirmButton(context),
          ],
        ),
      ),
  ];
  if (children.isEmpty) {
    return const SizedBox.shrink();
  }
  Widget child = Column(
    mainAxisSize: MainAxisSize.min,
    children: children,
  );
  if (isAppleOS(context)) {
    child = ClipRect(
      child: BackdropFilter(
        filter: ui.ImageFilter.blur(
          sigmaX: appleOSBlurRadius,
          sigmaY: appleOSBlurRadius,
        ),
        child: child,
      ),
    );
  }
  return child;
}