showShareSheetForAll function

void showShareSheetForAll(
  1. BuildContext context,
  2. List<HttpLogEntry> entries
)

Shows a bottom sheet with share options for entries (e.g. the full list).

Implementation

void showShareSheetForAll(BuildContext context, List<HttpLogEntry> entries) {
  _showSheet(context, [
    _Option(
      icon: Icons.article_outlined,
      label: 'Share All as Text',
      subtitle: '${entries.length} request(s)',
      onTap: () => _share(_toFullTextAll(entries), 'HTTP Inspector Logs'),
    ),
    _Option(
      icon: Icons.data_object_rounded,
      label: 'Share All as JSON',
      subtitle: '${entries.length} request(s)',
      onTap: () => _share(_toJsonAll(entries), 'HTTP Inspector Logs'),
    ),
  ]);
}