TitleBar.leftTitle constructor

TitleBar.leftTitle({
  1. String? title,
  2. TextStyle textStyle = const TextStyle(fontSize: 18.0, color: Color(0xFF333333)),
  3. dynamic result,
  4. double height = 56.0,
  5. double elevation = 0.0,
  6. Widget? right,
  7. Color? shadowColor,
  8. Color backgroundColor = Colors.white,
})

Implementation

TitleBar.leftTitle({
  String? title,
  TextStyle textStyle = const TextStyle(
    fontSize: 18.0,
    color: Color(0xFF333333),
  ),
  dynamic result,
  double height = 56.0,
  double elevation = 0.0,
  Widget? right,
  Color? shadowColor,
  Color backgroundColor = Colors.white,
})  : result = result,
      height = height,
      elevation = elevation,
      backgroundColor = backgroundColor,
      shadowColor = shadowColor,
      onBack = null,
      center = null,
      right = right,
      left = Container(
        padding: EdgeInsets.symmetric(horizontal: 22),
        child: Text(
          title ?? '',
          style: textStyle,
        ),
      );