accessLimitedBottomTip method
The tip widget displays when the access is limited. 当访问受限时在底部展示的提示
Implementation
@override
Widget accessLimitedBottomTip(BuildContext context) {
final double bottomPadding;
if (hasBottomActions) {
bottomPadding = 0;
} else {
bottomPadding = MediaQuery.paddingOf(context).bottom;
}
return GestureDetector(
onTap: () {
Feedback.forTap(context);
PhotoManager.openSetting();
},
child: Container(
padding: const EdgeInsets.symmetric(horizontal: 10)
.add(EdgeInsets.only(bottom: bottomPadding)),
height: permissionLimitedBarHeight + bottomPadding,
color: theme.primaryColor.withOpacity(isAppleOS(context) ? 0.90 : 1),
child: Row(
children: <Widget>[
const SizedBox(width: 5),
Icon(
Icons.warning,
color: Colors.orange[400]!.withOpacity(.8),
),
const SizedBox(width: 15),
Expanded(
child: ScaleText(
textDelegate.accessAllTip,
style: context.textTheme.bodySmall?.copyWith(
fontSize: 14,
),
semanticsLabel: semanticsTextDelegate.accessAllTip,
),
),
Icon(
Icons.keyboard_arrow_right,
color: context.iconTheme.color?.withOpacity(.5),
),
],
),
),
);
}