Added Share Functionality in the Code section by implementing a share-tray by using share_plus package

This commit is contained in:
Mrudul-2
2025-02-13 17:06:22 +05:30
parent d67ea653e5
commit aa9e95df95
4 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,4 @@
import 'package:apidash/widgets/button_share.dart';
import 'package:apidash_design_system/apidash_design_system.dart';
import 'package:flutter/material.dart';
import 'package:highlighter/highlighter.dart' show highlight;
@ -150,6 +151,7 @@ class ViewCodePane extends StatelessWidget {
toCopy: code,
showLabel: showLabel,
),
ShareButton(toShare: code),
SaveInDownloadsButton(
content: stringToBytes(code),
ext: codegenLanguage.ext,