feat: BottomAppBar.border_radius property#5743
Conversation
…or BottomAppBar properties
There was a problem hiding this comment.
Pull Request Overview
This PR adds a border_radius property to the BottomAppBar control, allowing developers to customize the corner rounding of the bottom app bar. The implementation also updates documentation formatting and error messages for consistency.
- Added
border_radiusproperty toBottomAppBarwith corresponding Python and Dart implementations - Updated
clip_behaviorto automatically default toANTI_ALIASwhen border radius is applied - Improved documentation strings across multiple properties for clarity and consistency
Reviewed Changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| sdk/python/packages/flet/src/flet/controls/material/bottom_app_bar.py | Added border_radius property, updated property documentation, and modified clip_behavior default behavior |
| packages/flet/lib/src/controls/bottom_app_bar.dart | Implemented border radius rendering using ClipRRect wrapper with automatic clip behavior handling |
| sdk/python/examples/controls/bottom_app_bar/border_radius.py | Added example demonstrating the new border_radius property usage |
| sdk/python/packages/flet/docs/controls/bottomappbar.md | Added documentation section for custom border radius feature |
| sdk/python/packages/flet/src/flet/controls/material/floating_action_button.py | Standardized error message formatting in documentation |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
sdk/python/packages/flet/src/flet/controls/material/floating_action_button.py
Outdated
Show resolved
Hide resolved
Deploying flet-docs with
|
| Latest commit: |
953181d
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://f3108d13.flet-docs.pages.dev |
| Branch Preview URL: | https://bottom-appbar-radius.flet-docs.pages.dev |
|
Example screenshot must be generated with integration test. See example here: |
|
I'd display "image for docs" here with 50% width (as in other controls): https://0b45a5ba.flet-docs.pages.dev/controls/bottomappbar/ |
Fix #4322
Example Code
Summary by Sourcery
Enable custom border radius on BottomAppBar by introducing a new property, updating rendering logic in both Python and Dart components, and enhancing documentation and default value descriptions.
New Features:
Enhancements:
Documentation: