Skip to content

[Cupertino] Navigation Bar text clips when navigating pages #117709

@timsneath

Description

@timsneath

Issue description

When navigating between two CupertinoNavigationBar widgets, if the user has set the preferred text size to larger than the default size, the text shows with an overflow ellipsis during the animation.

See the following example:
https://user-images.githubusercontent.com/2319867/209760713-b667d9d7-a936-4a43-85e5-57f18e92b5f9.mp4

Expected results

No clipping, as demonstrated in this example of an equivalent SwiftUI app:
https://user-images.githubusercontent.com/2319867/209761230-6f3b7498-99ad-461f-a4a9-95402eb20df7.mp4

Steps to Reproduce

To reproduce this, clone the sample here:
https://github.com/timsneath/landmarks-flutter/tree/e17a132e93d55b1507fdcb4e77772b7507cd168a

Run in the simulator, and choose Features / Increase Preferred Text Size several times to increase the size. Now navigate back and forward between the two pages.

flutter doctor -v

[✓] Flutter (Channel master, 3.7.0-13.0.pre.88, on macOS 13.1 22C65 darwin-arm64, locale en-US)
    • Flutter version 3.7.0-13.0.pre.88 on channel master at /Users/timsneath/flutter
    • Upstream repository [email protected]:flutter/flutter.git
    • Framework revision 0dc973955d (8 hours ago), 2022-12-27 16:26:19 -0500
    • Engine revision 6e6a6538f9
    • Dart version 3.0.0 (build 3.0.0-65.0.dev)
    • DevTools version 2.20.0

[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14B47b
    • CocoaPods version 1.11.3

Metadata

Metadata

Labels

f: cupertinoflutter/packages/flutter/cupertino repositoryf: routesNavigator, Router, and related APIs.found in release: 3.3Found to occur in 3.3found in release: 3.7Found to occur in 3.7frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-iosiOS applications specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions