You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if you could use a platform (android/iOS) as a variant (automatically) with regards to Assets.
A good example is for icons representing actions like sharing. They have platform specific conventions and it would be great if you could just do "assets/icons/share" and have the one that is relevant to the current platform.
How important is this for you? We have a way to add support for this, so if it's something you definitely need and don't want to work around we can add it, otherwise it's something we would not add in the near future.
We built out a mechanism (happy to share) that meets our requirements for now so we are not in a huge rush. Could mark as lower priority.
@lukef Hi could you please kindly share your mechanism? I am having a possibly related (though different) question here. Thanks!
Can any of you guys please share the mechanism that you used? I have a similar use case where I want to include the assets only on iOS and not on web/android
Thanks!
(Why not duplicate of #8230 : I want to bundle those 1MB photos only in Android. Thus, in the final .ipa file of iOS, there are no such photos taking space.)
Activity
eseidelGoogle commentedon Feb 17, 2017
#7111 is also related to the specific share case.
Hixie commentedon Feb 28, 2017
How important is this for you? We have a way to add support for this, so if it's something you definitely need and don't want to work around we can add it, otherwise it's something we would not add in the near future.
lukef commentedon Mar 1, 2017
We built out a mechanism (happy to share) that meets our requirements for now so we are not in a huge rush. Could mark as lower priority.
Expose platform parameters to buildAssets function to support flutter…
sestegra commentedon Dec 18, 2018
See my proposal #25487
fzyzcjy commentedon Sep 1, 2020
@lukef Hi could you please kindly share your mechanism? I am having a possibly related (though different) question here. Thanks!
xuzhongpeng commentedon Dec 5, 2022
What is the current progress?
rajrushilmakkar commentedon Feb 9, 2023
Can any of you guys please share the mechanism that you used? I have a similar use case where I want to include the assets only on iOS and not on web/android
Thanks!
littleGnAl commentedon Aug 3, 2023
hwkim1127 commentedon Jul 12, 2024
alnitak commentedon Nov 13, 2025
I think this issue can be closed since #176393 has been merged.
AbdeMohlbi commentedon Dec 1, 2025
@tirth-patel-nc can we close this , it seems the mentioned feature have been implemented and merged to the framework
tirth-patel-nc commentedon Dec 3, 2025
in #176393, linked issue is #65065.
From #8230: