File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class ShareService {
30
30
for (var asset in assets) {
31
31
if (asset.isLocal) {
32
32
// Prefer local assets to share
33
- File ? f = await asset.local! .file ;
33
+ File ? f = await asset.local! .originFile ;
34
34
downloadedXFiles.add (XFile (f! .path));
35
35
} else if (asset.isRemote) {
36
36
// Download remote asset otherwise
Original file line number Diff line number Diff line change @@ -131,15 +131,14 @@ class ControlBottomAppBar extends HookConsumerWidget {
131
131
132
132
List <Widget > renderActionButtons () {
133
133
return [
134
- if (hasRemote)
135
- ControlBoxButton (
136
- iconData: Platform .isAndroid
137
- ? Icons .share_rounded
138
- : Icons .ios_share_rounded,
139
- label: "share" .tr (),
140
- onPressed: enabled ? () => onShare (true ) : null ,
141
- ),
142
- if (! isInLockedView)
134
+ ControlBoxButton (
135
+ iconData: Platform .isAndroid
136
+ ? Icons .share_rounded
137
+ : Icons .ios_share_rounded,
138
+ label: "share" .tr (),
139
+ onPressed: enabled ? () => onShare (true ) : null ,
140
+ ),
141
+ if (! isInLockedView && hasRemote)
143
142
ControlBoxButton (
144
143
iconData: Icons .link_rounded,
145
144
label: "share_link" .tr (),
You can’t perform that action at this time.
0 commit comments