如何在 iOS 上实现一个相当于 Flutter 中 Android(Material)抽屉的菜单小部件?
最佳答案
iOS 中没有直接的替代菜单小部件,因为 Apple doesn't recommend drawers at all .
A drawer is a type of interface element that contains options or information related to a specific window. A drawer is hidden by default, and can only be revealed when the parent window is visible on screen. When revealed, typically in response to a button, menu, or action, the drawer slides out from one of side of the parent window. A drawer can’t be moved separately or detached from its parent window.
Avoid using drawers. Drawers are seldom used in modern apps and their use is discouraged. Panels, popovers, sidebars, and split views are preferred for displaying supplementary window content.
快速解决方案
示例
Flutter团队准备了comprehensive example of Android / iOS multiplatform app design .
关于android - Flutter 多平台 Android/iOS 抽屉式菜单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58117191/