chore: Follow up user bottom sheet
This commit is contained in:
parent
010ae8fb09
commit
9e0acdfd5f
2 changed files with 19 additions and 5 deletions
|
|
@ -7,8 +7,12 @@ import 'package:share_plus/share_plus.dart';
|
|||
import 'package:fluffychat/utils/platform_infos.dart';
|
||||
|
||||
abstract class FluffyShare {
|
||||
static Future<void> share(String text, BuildContext context) async {
|
||||
if (PlatformInfos.isMobile) {
|
||||
static Future<void> share(
|
||||
String text,
|
||||
BuildContext context, {
|
||||
bool copyOnly = false,
|
||||
}) async {
|
||||
if (PlatformInfos.isMobile && !copyOnly) {
|
||||
final box = context.findRenderObject() as RenderBox;
|
||||
return Share.share(
|
||||
text,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue