Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 976d7e9

Browse files
committed
Wire DimensionsProvider into engine.window.
1 parent 4dc017a commit 976d7e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/web_ui/lib/src/engine/initialization.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import 'package:ui/src/engine/window.dart';
2121
import 'package:ui/ui.dart' as ui;
2222

2323
import 'dom.dart';
24+
import 'view_embedder/dimensions_provider/dimensions_provider.dart';
2425

2526
/// The mode the app is running in.
2627
/// Keep these in sync with the same constants on the framework-side under foundation/constants.dart.
@@ -143,6 +144,9 @@ Future<void> initializeEngineServices({
143144

144145
// Store `jsConfiguration` so user settings are available to the engine.
145146
configuration.setUserConfiguration(jsConfiguration);
147+
window.configureDimensionsProvider(DimensionsProvider.create(
148+
hostElement: configuration.hostElement,
149+
));
146150

147151
// Setup the hook that allows users to customize URL strategy before running
148152
// the app.

0 commit comments

Comments
 (0)