Skip to content

Android's predictive back feature doesn't use the device's corner radius #178463

Description

@MaherSafadii

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:

Image

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:

Image

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: fidelityMatching the OEM platforms betterc: proposalA detailed proposal for a change to Fluttercustomer: crowdAffects or could affect many people, though not necessarily a specific customer.f: material designflutter/packages/flutter/material repository.f: routesNavigator, Router, and related APIs.frameworkflutter/packages/flutter repository. See also f: labels.platform-androidAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions