Flutter macOS Embedder
FlutterViewWrapper Class Reference
Inheritance diagram for FlutterViewWrapper:

Instance Methods

(void) - setBackgroundColor:
 

Detailed Description

FlutterViewWrapper is a convenience class that wraps a FlutterView and provides a mechanism to attach AppKit views such as FlutterTextField without affecting the accessibility subtree of the wrapped FlutterView itself.

The FlutterViewController uses this class to create its content view. When any of the accessibility services (e.g. VoiceOver) is turned on, the accessibility bridge creates FlutterTextFields that interact with the service. The bridge has to attach the FlutterTextField somewhere in the view hierarchy in order for the FlutterTextField to interact correctly with VoiceOver. Those FlutterTextFields will be attached to this view so that they won't affect the accessibility subtree of FlutterView.

Definition at line 154 of file FlutterViewController.mm.

Method Documentation

◆ setBackgroundColor:

- (void) setBackgroundColor: (NSColor*)  color

Definition at line 267 of file FlutterViewController.mm.

267  :(NSColor*)color {
268  [_flutterView setBackgroundColor:color];
269 }

The documentation for this class was generated from the following file: