fix(mobile): native share functionality on iPad (#11294)

* pass context to share method

* use correct context

* fix: multiselection and logs sharing

* fix: lint
This commit is contained in:
Saschl 2024-07-26 15:43:59 +02:00 committed by GitHub
parent 86a658b891
commit 62ac9bb7cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 27 additions and 17 deletions

View file

@ -91,15 +91,19 @@ class AppLogPage extends HookConsumerWidget {
logMessages.value = [];
},
),
IconButton(
icon: Icon(
Icons.share_rounded,
color: context.primaryColor,
semanticLabel: "Share logs",
size: 20.0,
),
onPressed: () {
immichLogger.shareLogs();
Builder(
builder: (BuildContext iconContext) {
return IconButton(
icon: Icon(
Icons.share_rounded,
color: context.primaryColor,
semanticLabel: "Share logs",
size: 20.0,
),
onPressed: () {
immichLogger.shareLogs(iconContext);
},
);
},
),
],