getAppBarLeft method

Widget getAppBarLeft(
  1. BuildContext context
)

导航栏appBar左边部分 ,不满足可以自行重写

Implementation

Widget getAppBarLeft(BuildContext context) {
  Widget child;
  if (_isBackIconShow) {
    if (TextUtil.isEmpty(FimGlobalConfiguration.instance.backIcon)) {
      child = IconButton(
        onPressed: clickAppBarBack,
        tooltip: 'Back',
        icon: Icon(Icons.arrow_back),
      );
    } else {
      child = GestureDetector(
        onTap: clickAppBarBack,
        child: FimLoadImage(
          FimGlobalConfiguration.instance.backIcon,
          fit: BoxFit.scaleDown,
        ),
      );
    }
  }

  return Container(
    width: getAppBarHeight(),
    height: double.infinity,
    child: child,
  );
}