Skip to content
Snippets Groups Projects
Commit 4d35df36 authored by vjrj's avatar vjrj
Browse files

Show share in android and fix assets in android too

parent f33ca2b5
No related branches found
No related tags found
No related merge requests found
......@@ -197,7 +197,7 @@ ListTile contactToListItem(Contact contact, int index, BuildContext context,
trailing: trailing);
}
bool showShare() => onlyInDevelopment;
bool showShare() => onlyInDevelopment || !kIsWeb;
bool get onlyInDevelopment => !inProduction;
......@@ -207,7 +207,10 @@ bool get onlyInProduction => kReleaseMode;
bool get inProduction => onlyInProduction;
String assets(String str) => (kIsWeb && kReleaseMode) ? 'assets/$str' : str;
String assets(String str) =>
(kIsWeb && kReleaseMode) || (!kIsWeb && Platform.isAndroid)
? 'assets/$str'
: str;
Future<Directory?> getAppSpecificExternalFilesDirectory(
[bool ext = false]) async {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment