createAppBar method

PreferredSize? createAppBar(
  1. BuildContext context, {
  2. Color? navbackcolor,
  3. String? title,
})

创建导航栏

Implementation

PreferredSize? createAppBar(
  BuildContext context, {
  Color? navbackcolor,
  String? title,
}) {
  if (title != null) {
    return AppBarGenerator.getNoramlAppBar(
      context: context,
      title: title,
      backgroundColor: navbackcolor,
      actions: createAppBaractions(),
      leading: createAppBarleading(),
      textColor: createAppBarTextColor(),
      leadingIconColor: createLeadingIconColor(),
      leadingCallback: () {
        configleadingCallbak(context);
      },
      titlew: createAppBarTitleWidget(),
      bottom: createAppBarBottomWidget(),
    );
  }
  return null;
}