accessLimitedBottomTip method
The tip widget displays when the access is limited. 当访问受限时在底部展示的提示
Implementation
Widget accessLimitedBottomTip(BuildContext context) {
return GestureDetector(
onTap: () {
Feedback.forTap(context);
PhotoManager.openSetting();
},
child: Container(
padding: const EdgeInsets.symmetric(horizontal: 10),
height: permissionLimitedBarHeight,
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),
),
],
),
),
);
}