buildBackButton method

Widget buildBackButton(
  1. BuildContext context,
  2. BoxConstraints constraints
)

The back button near to the buildCaptureButton. 靠近拍照键的返回键

Implementation

Widget buildBackButton(BuildContext context, BoxConstraints constraints) {
  return IconButton(
    onPressed: Navigator.of(context).pop,
    tooltip: MaterialLocalizations.of(context).backButtonTooltip,
    icon: Container(
      alignment: Alignment.center,
      width: 27,
      height: 27,
      decoration: const BoxDecoration(
        color: Colors.white,
        shape: BoxShape.circle,
      ),
      child: const Icon(Icons.keyboard_arrow_down, color: Colors.black),
    ),
  );
}