From b5385218649850156d7cfb719738fb3b08043e0a Mon Sep 17 00:00:00 2001 From: PranavDave <69794884+Pranav2918@users.noreply.github.com> Date: Sat, 20 Jun 2026 02:50:10 +0530 Subject: [PATCH] =?UTF-8?q?fix:=20replace=20scrollableBuilder=20with=20bui?= =?UTF-8?q?lder=20in=20CupertinoSheetRoute=20fo=E2=80=A6=20(#2834)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The CupertinoSheetRoute now correctly implements the required builder signature according to the Flutter API. ``` // Before CupertinoSheetRoute( scrollableBuilder: (BuildContext context, ScrollController controller) { // ... }, ) // After CupertinoSheetRoute( builder: (BuildContext context) { // ... }, ) ``` **Changes made:** - Updated the CupertinoSheetRoute constructor to use the correct builder parameter instead of the undefined scrollableBuilder parameter. - Refactored the builder function to remove the unused ScrollController and simplified the internal structure for better readability. ------ ## Pre-launch Checklist - [✓] I read the [Flutter Style Guide] _recently_, and have followed its advice. - [✓] I signed the [CLA]. - [✓] I read the [Contributors Guide]. - [✓] I have added sample code updates to the [changelog]. - [✓] I updated/added relevant documentation (doc comments with `///`). If you need help, consider asking for advice on the #hackers-devrel channel on [Discord]. [Flutter Style Guide]: https://github.com/flutter/flutter/blob/master/docs/contributing/Style-guide-for-Flutter-repo.md [CLA]: https://cla.developers.google.com/ [Discord]: https://github.com/flutter/flutter/blob/master/docs/contributing/Chat.md [Contributors Guide]: https://github.com/flutter/samples/blob/main/CONTRIBUTING.md [changelog]: ../CHANGELOG.md Co-authored-by: Eric Windmill