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

Fixed popup overflow by suggestions #35

Merged
merged 12 commits into from
May 29, 2023
Merged

Conversation

mitryp
Copy link
Contributor

@mitryp mitryp commented May 25, 2023

Fixes #32
Fixes #36

Wrapped the popup content in a SingleChildScrollView;
Constrained the height of the popup;
Added the maxHeight optional parameter to the LanguageToolMistakePopup;

Changed the MistakeBuilderCallback typedef to match the signature of the LanguageToolMistakePopup unnamed constructor for simpler interoperability.

Wrapped the popup content in a SingleChildScrollView;
Constrained the height of the popup;

Changed the `MistakeBuilderCallback` typedef to match the signature of the `LanguageToolMistakePopup` unnamed constructor for simpler interoperability.
Changed `Wrap` to `SliverList.builder` with a `CustomScrollView`
Copy link
Collaborator

@solid-vovabeloded solid-vovabeloded left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done, @mitryp. I've added a couple of suggestions here - please, take a look.

lib/utils/mistake_popup.dart Outdated Show resolved Hide resolved
lib/utils/mistake_popup.dart Outdated Show resolved Hide resolved
@solid-vovabeloded
Copy link
Collaborator

If there is only one suggestion it is displayed like this:
image

@mitryp
Copy link
Contributor Author

mitryp commented May 26, 2023

I must have missed something. Will fix

Copy link
Collaborator

@solid-vovabeloded solid-vovabeloded left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done investigating the problem, @mitryp. I've added one more suggestion here - please, take a look.

lib/utils/mistake_popup.dart Outdated Show resolved Hide resolved
Copy link
Collaborator

@solid-vovabeloded solid-vovabeloded left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just remove the commented code.

lib/utils/mistake_popup.dart Outdated Show resolved Hide resolved
@mitryp mitryp merged commit c546aaa into main May 29, 2023
1 check passed
@mitryp mitryp deleted the fix/popup-suggestions-overflow branch May 29, 2023 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Opening and closing the mistake popup freezes the app Mistake replacements overflow the screen
2 participants