foss42 / apidash

API Dash is a beautiful open-source cross-platform API Client built using Flutter which can help you easily create & customize your API requests, visually inspect responses and generate API integration code. A lightweight alternative to postman/insomnia.
https://apidash.dev
Apache License 2.0
1.43k stars 269 forks source link

Fix: Fixed codegen dropdown button overflow #348

Closed alainjr10 closed 5 months ago

alainjr10 commented 5 months ago

PR Description

This PR attempts to solve the issue of the codeview pane dropdown button overflowing when the screen is resized. I achieved this by setting the expanded value of the dropdown to true. This however makes the text to fold to two lines, one way of solving this is allowing it wrap, which then means the height of the dropdown becomes small to accommodate. With this in mind, I increased the height of sizedbox for the header to the kTabHeight value, when the code pane is reduced to 340 and below

Related Issues

Checklist

Added/updated tests?

We encourage you to add relevant test cases.

animator commented 5 months ago

Thanks for the PR. LGTM 🚀