flutter-tizen / engine

The Flutter engine
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
6 stars 19 forks source link

Rework the high contrast accessibility feature #265

Closed swift-kim closed 2 years ago

swift-kim commented 2 years ago

Currently a boldText flag is being passed to the engine when the High Contrast option is set in the TV settings. A highContrast flag must used instead.

Contributes to https://github.com/flutter-tizen/flutter-tizen/issues/151. Should be rebased upon https://github.com/flutter-tizen/engine/pull/264.

The invertColors feature support will be added after this change.

Code example:

return MaterialApp(
  theme: ThemeData(colorScheme: const ColorScheme.light()),
  highContrastTheme:
      ThemeData(colorScheme: const ColorScheme.highContrastLight()),
  ...
);