alignment property
control the location of the dialog on the screen
center: the dialog locate the center on the screen,The animation type can be set using animationType
bottomCenter、bottomLeft、bottomRight:the dialog locate the bottom on the screen,animation effect is bottom-to-up
topCenter、topLeft、Alignment.topRight:the dialog locate the top on the screen,animation effect is up-to-bottom
centerLeft:the dialog locate the left on the screen,animation effect is left-to-right
centerRight:the dialog locate the right on the screen,animation effect is right-to-left
控制dialog位于屏幕的位置
center: dialog位于屏幕中间,可使用animationType设置动画类型
bottomCenter、bottomLeft、bottomRight:dialog位于屏幕底部,动画默认为位移动画,自下而上
topCenter、topLeft、Alignment.topRight:dialog位于屏幕顶部,动画默认为位移动画,自上而下
centerLeft:dialog位于屏幕左边,动画默认为位移动画,自左而右
centerRight:dialog位于屏幕左边,动画默认为位移动画,自右而左
Implementation
final Alignment alignment;