Skip to content

Commit

Permalink
fix example code
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelbeltran committed Dec 12, 2024
1 parent 1ae9aa2 commit 8036587
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/share_plus/share_plus/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ import 'package:share_plus/share_plus.dart';
import 'image_previews.dart';

void main() {
SharePlusWebPlugin.downloadFallbackEnabled = false;
// Set `downloadFallbackEnabled` to `false`
// to disable downloading files if `shareXFiles` fails on web.
Share.downloadFallbackEnabled = true;

runApp(const DemoApp());
}

Expand Down

0 comments on commit 8036587

Please sign in to comment.