This question is related to the following StackOverflow issue: bottom sheet with initial height half of screen and if it scroll then height is increase to full screen
It is about a constraint that is set within the Flutter code about bottom sheets, that I do not want to have. I understand the solution mentioned in the link above, but I don't know how to implement it in a nice way.
Right now my 'solution' is to completely copy the bottom_sheet.dart file from the official Flutter codebase and remove just the line 169 with the maxHeight property: https://github.com/flutter/flutter/blob/1ad538e454c77496fbd068b9e8b5f8b61c2f6d96/packages/flutter/lib/src/material/bottom_sheet.dart#L169
Any ideas to do this in a more elegant way?
Thanks!