Skip to content

Update Cupertino examples for light mode #103036

@TahaTesser

Description

@TahaTesser

As an aside, I noticed that since my system brightness is dark, some cupertino samples use dark mode as well. I wonder if we should just hardcode the theme to be light...

Originally posted by @guidezpl in #72926 (comment)

Currently, Cupertino examples adapt to system brightness, which the examples dark in the light API page theme.

Light Dark

Solution

Add a hardcoded theme with Brightness.light in the examples

Metadata

Metadata

Assignees

Labels

d: api docsIssues with https://api.flutter.dev/d: examplesSample code and demosf: cupertinoflutter/packages/flutter/cupertino repositoryframeworkflutter/packages/flutter repository. See also f: labels.

Type

No type

Projects

Status

Done (PR merged)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions