getTitle method

Widget getTitle()

Implementation

Widget getTitle() {
  if (controller.pickerMode && controller.selectedFiles.isEmpty) {
    return Text(
      controller.config.tapPhotoSelect,
      style: controller.config.appbarTextStyle,
    );
  } else if (controller.pickerMode && controller.selectedFiles.isNotEmpty) {
    return Text(
      "${controller.selectedFiles.length} ${controller.config.selected}",
      style: controller.config.appbarTextStyle,
    );
  } else {
    return const SizedBox();
  }
}