|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public static void runApp(Widget app) { |
|
|
|
var instance = WidgetsFlutterBinding.ensureInitialized(); |
|
|
|
var instance = UiWidgetsBinding.ensureInitialized(); |
|
|
|
instance.scheduleAttachRootWidget(app); |
|
|
|
instance.scheduleWarmUpFrame(); |
|
|
|
} |
|
|
|
|
|
|
set { RendererBinding.instance = value; } |
|
|
|
} |
|
|
|
|
|
|
|
public WidgetsBinding(bool inEditorWindow = false) : base(inEditorWindow) { |
|
|
|
protected override void initInstances() { |
|
|
|
base.initInstances(); |
|
|
|
instance = this; |
|
|
|
|
|
|
|
// D.assert(() => {
|
|
|
|
// _debugAddStackFilters();
|
|
|
|
// return true;
|
|
|
|
// }());
|
|
|
|
|
|
|
|
_buildOwner = new BuildOwner(); |
|
|
|
Window.instance.onLocaleChanged += handleLocaleChanged; |
|
|
|
window.onLocaleChanged += handleLocaleChanged; |
|
|
|
// addPersistentFrameCallback((duration) => {
|
|
|
|
// TextBlobMesh.tickNextFrame();
|
|
|
|
// TessellationGenerator.tickNextFrame();
|
|
|
|
// uiTessellationGenerator.tickNextFrame();
|
|
|
|
// uiPathCacheManager.tickNextFrame();
|
|
|
|
// });
|
|
|
|
|
|
|
|
// window.onAccessibilityFeaturesChanged = handleAccessibilityFeaturesChanged;
|
|
|
|
// SystemChannels.navigation.setMethodCallHandler(_handleNavigationInvocation);
|
|
|
|
// FlutterErrorDetails.propertiesTransformers.add(transformDebugCreator);
|
|
|
|
} |
|
|
|
|
|
|
|
public BuildOwner buildOwner { |
|
|
|
|
|
|
readonly BuildOwner _buildOwner = new BuildOwner(); |
|
|
|
BuildOwner _buildOwner = new BuildOwner(); |
|
|
|
|
|
|
|
public FocusManager focusManager { |
|
|
|
get { return _buildOwner.focusManager; } |
|
|
|
|
|
|
_handlePopRouteSub(false); |
|
|
|
} |
|
|
|
|
|
|
|
public readonly WidgetInspectorService widgetInspectorService; |
|
|
|
public WidgetInspectorService widgetInspectorService; |
|
|
|
|
|
|
|
protected override void handleMetricsChanged() { |
|
|
|
base.handleMetricsChanged(); |
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public class WidgetsFlutterBinding : WidgetsBinding { |
|
|
|
public class UiWidgetsBinding : WidgetsBinding { |
|
|
|
new WidgetsFlutterBinding(); |
|
|
|
new UiWidgetsBinding(); |
|
|
|
return WidgetsBinding.instance; |
|
|
|
} |
|
|
|
} |