Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
does it exist a way to implement a single template that is rendered as material-like on Android and flat--like on ios ?
-
Onsen-ui 2.0 provides material and flat components. If we want to follow vendor design guidelines we should use material for android and flat for ios. How should I do without using full switch android or ios on my templates ? In other words does it exist a way to implement a single template that is rendered as material-like on Android and flat–like on ios ?
-
The team posted here: https://community.onsen.io/topic/186/what-do-you-think-about-onsen-ui-2-0
This:
Other things we’re working on
Automatic style based on platform. This means that the components will automatically change their appearance on iOS and Android. On Android they are Material Design while on iOS they will look like the native flat design of iOS apps.They are trying to get it done for the full release of Onsen 2.0. At this time, (with a lot of extra work and if you are using AngularJS) you could use ons-if-platform as documented here: https://onsen.io/2/reference/ons-if-platform.html
For me, I am just going to wait until the do the full release of 2.0. Good luck!
-
@elbidone @munsterlander gh#1199 Will be merged next week probably :smile:
-
@Fran-Diox This is super! I am so stoked to see the final 2.0. Can’t wait and keep up the good work guys!!! :thumbsup:
-
Waiting for onsen2.0 automatic platform identification. It will be a great feature.