1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Flutter] Detect whether iOS has Classic Invert enabled in Flutter

Discussão em 'Mobile' iniciado por Stack, Novembro 3, 2024 às 13:02.

  1. Stack

    Stack Membro Participativo

    Problem: Within a Flutter app, I am trying to detect whether an iPhone has Classic Invert enabled.

    I have tried using a media query in app

    final inverted = MediaQuery.invertColorsOf(context);


    and

    if UIAccessibility.isInvertColorsEnabled {}


    in AppDelegate.swift

    However, these detect that Smart Invert is enabled and NOT the Classic Invert which also contradicts this the developer documentation: https://developer.apple.com/documentation/uikit/uiaccessibility/1615167-isinvertcolorsenabled

    How do I detect this Classic Invert mode in a flutter?

    Continue reading...

Compartilhe esta Página