build method
Implementation
@override
ContentLayerWidget build(BuildContext context, DocumentContext editorContext) {
if (defaultTargetPlatform != TargetPlatform.android ||
SuperMessageAndroidControlsScope.maybeNearestOf(context) == null) {
// There's no controls scope. This probably means SuperMessage is configured with
// a non-Android gesture mode. Build nothing.
return const ContentLayerProxyWidget(child: EmptyBox());
}
return AndroidToolbarFocalPointDocumentLayer(
document: editorContext.document,
selection: editorContext.composer.selectionNotifier,
toolbarFocalPointLink: SuperMessageAndroidControlsScope.rootOf(context).toolbarFocalPoint,
showDebugLeaderBounds: showDebugLeaderBounds,
);
}