From c2c32ed1a4a2329efbe39ca14f1436a195311a30 Mon Sep 17 00:00:00 2001 From: tamslo Date: Tue, 10 Dec 2024 11:52:41 +0100 Subject: [PATCH] feat(app): adaptive share icon --- app/lib/drug/pages/drug.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/lib/drug/pages/drug.dart b/app/lib/drug/pages/drug.dart index c7dc0a88..2a20bb01 100644 --- a/app/lib/drug/pages/drug.dart +++ b/app/lib/drug/pages/drug.dart @@ -1,3 +1,5 @@ +import 'dart:io'; + import 'package:provider/provider.dart'; import '../../common/module.dart'; @@ -42,7 +44,7 @@ class DrugPage extends StatelessWidget { onPressed: loading ? null : () => context.read().createAndSharePdf(drug, context), icon: Icon( - Icons.ios_share_rounded, + Platform.isIOS ? Icons.ios_share_rounded : Icons.share_rounded, color: PharMeTheme.primaryColor, ), )