buildSheetBody method
Override to provide the sheet's content. Renders below the
drag-handle pill (SheetThumb) as the home of the sheet's
nested navigation stack.
Implementation
@override
Widget buildSheetBody(BuildContext context) {
return ListenableBuilder(
listenable: this,
builder: (context, _) => SafeArea(
top: false,
child: Column(
children: [
_TopBar(
title: _permission == null || _hasPhotos
? _currentAlbum?.name ?? 'Recents'
: null,
onCancel: handleCancel,
onTitleTap: _albums.length > 1 ? openAlbums : null,
toggle: _hasPhotos && _toggleVisible
? _SelectedToggle(
count: selection.count,
active: _displayMode == DisplayMode.selected,
onTap: toggleDisplayMode,
)
: null,
),
Expanded(child: _buildBody()),
if (_hasPhotos)
ListenableBuilder(
listenable: selection,
builder: (context, _) =>
_SendFooter(count: selection.count, onSend: handleSend),
),
],
),
),
);
}