getAppBarCenter method

Widget getAppBarCenter(
  1. BuildContext context
)

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

Implementation

Widget getAppBarCenter(BuildContext context) {
  ThemeData themeData = Theme.of(context);
  return Container(
    child: Text(
      _appBarTitle,
      textAlign: TextAlign.center,
      style: TextStyle(
        fontSize: _appBarCenterTextSize != null
            ? _appBarCenterTextSize
            : themeData.textTheme.headline1.fontSize,
        color: _appBarContentColor != null
            ? _appBarContentColor
            : themeData.textTheme.headline1.color,
        fontWeight: FontWeight.bold,
      ),
    ),
  );
}