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

window和web平台问题 #229

Closed
xietian0908 opened this issue Oct 25, 2024 · 5 comments
Closed

window和web平台问题 #229

xietian0908 opened this issue Oct 25, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@xietian0908
Copy link

Version Information

flutter: 3.24.3
flutter_smart_dialog: ^4.9.8+3

Describe the bug/requirement

如何能够让attach dialog 随着窗口尺寸变化 而变化,也就是保持与attach的目标位置始终一致

Problem demo

在线演示demo
image

@xietian0908
Copy link
Author

DialogUtil.showAttach(
context,
adjustBuilder: (p0) {
return AttachAdjustParam(
builder: (context) {
return SettingAttachDialog();
},
);
},
builder: (context, targetWidget, targetHeight) {
return SettingAttachDialog();
},
);

f9fe9dfecadf0eb2f7fe46d7505da9a4.mp4

使用 adjustBuilder可以保持位置 但是会闪烁

@xdd666t
Copy link
Member

xdd666t commented Nov 2, 2024

尝试把动画关掉 useAnimation 设置为false, 或者animationTime设置为0

@xietian0908
Copy link
Author

818ba8fcffc1fe7fbee476e781f75f8a.mp4

试了下还是有些问题
image

xdd666t added a commit that referenced this issue Nov 9, 2024
@xdd666t xdd666t self-assigned this Nov 9, 2024
@xdd666t xdd666t added the enhancement New feature or request label Nov 9, 2024
@xdd666t
Copy link
Member

xdd666t commented Nov 9, 2024

  • 行了, 试下新版本, 不需要用adjustBuilder, 正常用builder就行了
dependencies:
  flutter_smart_dialog: ^4.9.8+5

@xietian0908
Copy link
Author

没问题了👍

@xdd666t xdd666t closed this as completed Nov 11, 2024
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