bottomActionBar method
Action bar widget aligned to bottom. 底部操作栏部件
Implementation
Widget bottomActionBar(BuildContext context) {
final children = <Widget>[
if (isPermissionLimited) accessLimitedBottomTip(context),
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>[
previewButton(context),
if (!isSingleAssetMode) const Spacer(),
if (!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;
}