Skip to content

CupertinoScaffold overrides app theme miking everything black and white #456

Open

Description

@andreykuzovlevv

so basically Theme.of(context).colorScheme not working properly

Activity

  1. LondonX commented on Sep 20, 2025

    @LondonX

    Here is my trick:

    GetCupertinoApp(
          home: Builder(
            builder: (context) {
              final theme = CupertinoTheme.of(context);
              return CupertinoScaffold(
                body: CupertinoTheme(data: theme, child: const HomeView()),
              );
            },
          ),
        );

    Simply wrap CupertinoScaffold with a Builder, get theme inside builder and outside CupertinoScaffold, and pass into CupertinoTheme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions