Skip to content

Re-implement stretch overscroll behavior as a custom shader #82906

@Rahiche

Description

@Rahiche

Update August 2023:


Internal: b/195519748

Use case

Staring from Android 12 the default visual overscroll behavior will be Stretch instead of the glow effect.
More about this change: https://developer.android.com/about/versions/12/overscroll

image

Proposal

The default GlowingOverscrollIndicator shouldn't be applied when targeting Android 12
A new StretchOverscrollIndicator should be created and used when targeeting Android 12 + (some additional data about the dragging and flinging values should be provided to the ScrollView builder, see the EdgeEffect Api)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: fidelityMatching the OEM platforms betterc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Fluttercustomer: crowdAffects or could affect many people, though not necessarily a specific customer.e: OS-version specificAffects only some versions of the relevant operating systemengineflutter/engine related. See also e: labels.f: gesturesflutter/packages/flutter/gestures repository.f: material designflutter/packages/flutter/material repository.f: scrollingViewports, list views, slivers, etc.frameworkflutter/packages/flutter repository. See also f: labels.platform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions