selectedAppBar method

dynamic selectedAppBar(
  1. BuildContext context
)

Implementation

selectedAppBar(BuildContext context) {
  return AppBar(
    // leadingWidth: 25,
    leading: IconButton(
      icon: const Icon(Icons.clear),
      onPressed: () {
        controller.clearAllChatSelection();
      },
    ),
    title: Text(
      controller.selectedChatList.length.toString(),
      style: AppStyleConfig.chatPageStyle.chatUserAppBarStyle.titleTextStyle,
    ),
    actions: [
      (controller.arguments?.menuActionsEnabled).checkNull()
          ? CustomActionBarIcons(
              popupMenuThemeData:
                  AppStyleConfig.chatPageStyle.popupMenuThemeData,
              availableWidth: NavUtils.width / 2, // half the screen width
              actionWidth: 48, // default for IconButtons
              actions: actionBarItems(context, isSelected: true))
          : const SizedBox(),
    ],
  );
}