TitleBar.back constructor
TitleBar.back(})
Implementation
TitleBar.back(
BuildContext context, {
String? title,
TextStyle textStyle = const TextStyle(
fontSize: 18.0,
color: Color(0xFF333333),
),
dynamic result,
double height = 56.0,
double elevation = 0.0,
Widget? right,
Widget? center,
Color? shadowColor,
Color backgroundColor = Colors.white,
}) : result = result,
height = height,
elevation = elevation,
backgroundColor = backgroundColor,
shadowColor = shadowColor,
onBack = null,
left = GestureDetector(
onTap: () => Navigator.pop(context, result),
behavior: HitTestBehavior.translucent,
child: Container(
padding: EdgeInsets.symmetric(horizontal: 22),
child: ImageUtil.back(),
),
),
right = right,
center = center ??
Text(
title ?? '',
style: textStyle,
);