Repository navigation
Android's predictive back feature doesn't use the device's corner radius #178463
Copy link
Copy link
Closed
Closed
Copy link
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: fidelityMatching the OEM platforms betterMatching the OEM platforms betterc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Fluttercustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.f: routesNavigator, Router, and related APIs.Navigator, Router, and related APIs.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packagesplatform-androidAndroid applications specificallyAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
Description
Since predictive back is now enabled by default, it would be better to have it polished and match the native behaviour, currently it uses a fixed border radius when the effect is active, which looks bad, Android provided APIs that get the devices corner radius which can be used to achieve a more seamless effect and match the native side.
Current implementation:
in my custom implementation, all I did was use a ClipRRect on a whole page and set the corner radius to the device's using this package corner_radius_plugin, it uses official Android APIs to get the devices corner radius.
the result is a more native behavior:

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: fidelityMatching the OEM platforms betterMatching the OEM platforms betterc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Fluttercustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.f: routesNavigator, Router, and related APIs.Navigator, Router, and related APIs.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packagesplatform-androidAndroid applications specificallyAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
Activity
tirth-patel-nc commentedon Nov 14, 2025
@MaherSafadii thanks for the report. labelling it as a new proposal.
#166608 #97349 might be related.
maRci002 commentedon Nov 14, 2025
Flutter uses a fixed radius for now because device-specific corner radii aren't exposed yet. Once #97349 lands, this code can read the actual device radius instead of the hard-coded value.
flutter/packages/flutter/lib/src/material/predictive_back_page_transitions_builder.dart
Lines 361 to 365 in a5067be
justinmc commentedon Nov 14, 2025
Thank you @maRci002 for the explanation. The issue #97349 is looking for someone to take it on in case anyone is able to! I left a comment there explaining how I think we could solve this.
[Android] Add display corner radii support. (#179219)
[Android] Add display corner radii support. (flutter#179219)
Add displayCornerRadii support to predictive back transitions. (#181326)
Add displayCornerRadii support to predictive back transitions. (flutt…
github-actions commentedon Mar 20, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.Add displayCornerRadii support to predictive back transitions. (flutt…
Add displayCornerRadii support to predictive back transitions. (flutt…
Add displayCornerRadii support to predictive back transitions. (#181326)
Add displayCornerRadii support to predictive back transitions. (#181326)