Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SmartDialog.showAttach 增加对齐位置的选项,而不是默认中心对齐。 #90

Closed
leavky opened this issue Nov 10, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@leavky
Copy link

leavky commented Nov 10, 2022

版本信息

  • Flutter版本:3
  • flutter_smart_dialog版本:4.5.5+6

需求

非常感觉作者这个功能强大的包。希望 SmartDialog.showAttach 实现下拉按钮的时候,希望增加左对齐的选项,而不是默认中心对齐。在web与桌面上,按钮通常都是左对齐的,虽然可以通过自定义位置计算得到,但显得繁琐。在桌面上通常是这样子的,
image
希望可以增加一个参数,指定对齐位置。

@xdd666t
Copy link
Member

xdd666t commented Nov 12, 2022

  • 这个加上了,更新下版本吧
dependencies:
  flutter_smart_dialog: ^4.7.1
  • 使用:配置在attach全局属性内,需要设置下
SmartDialog.config
  ..custom = SmartConfigCustom()
  ..attach = SmartConfigAttach(
    attachAlignmentType: SmartAttachAlignmentType.inside,
  )
  ..loading = SmartConfigLoading()
  ..toast = SmartConfigToast();

image

@leavky
Copy link
Author

leavky commented Nov 13, 2022

好的,谢谢修改,祝您生活愉快。

@leavky leavky closed this as completed Nov 13, 2022
@xdd666t xdd666t self-assigned this Nov 13, 2022
@xdd666t xdd666t added the enhancement New feature or request label Nov 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants