From 2b451d2daeb33776926001ec621bd26a2baae85b Mon Sep 17 00:00:00 2001 From: Parker Lougheed Date: Mon, 3 Jun 2024 16:46:28 -0500 Subject: [PATCH] Migrate bootstrapping in element embedding sample (#2315) Migrating the Angular sample is blocked on https://github.com/flutter/flutter/issues/149443 Contributes to https://github.com/flutter/samples/issues/2297. --- .../element_embedding_demo/pubspec.yaml | 1 - .../element_embedding_demo/web/css/style.css | 2 +- .../element_embedding_demo/web/index.html | 25 ++++++++----------- .../flutter/web/flutter_bootstrap.js | 0 4 files changed, 12 insertions(+), 16 deletions(-) create mode 100644 web_embedding/ng-flutter/flutter/web/flutter_bootstrap.js diff --git a/web_embedding/element_embedding_demo/pubspec.yaml b/web_embedding/element_embedding_demo/pubspec.yaml index 5dde63f0d..f35e99415 100644 --- a/web_embedding/element_embedding_demo/pubspec.yaml +++ b/web_embedding/element_embedding_demo/pubspec.yaml @@ -7,7 +7,6 @@ environment: sdk: ^3.4.0-0 dependencies: - cupertino_icons: ^1.0.2 flutter: sdk: flutter diff --git a/web_embedding/element_embedding_demo/web/css/style.css b/web_embedding/element_embedding_demo/web/css/style.css index d93d9b1e6..9ada86b76 100644 --- a/web_embedding/element_embedding_demo/web/css/style.css +++ b/web_embedding/element_embedding_demo/web/css/style.css @@ -162,7 +162,7 @@ h1 { } #flutter_target.resize { width: 480px; - height: 320px; + height: 336px; } #flutter_target.spin { animation: spin 6400ms ease-in-out infinite; } #flutter_target.shadow { position: relative; } diff --git a/web_embedding/element_embedding_demo/web/index.html b/web_embedding/element_embedding_demo/web/index.html index 32f4f86ba..784fd50c2 100644 --- a/web_embedding/element_embedding_demo/web/index.html +++ b/web_embedding/element_embedding_demo/web/index.html @@ -20,9 +20,6 @@ Element embedding - - - @@ -81,17 +78,17 @@ diff --git a/web_embedding/ng-flutter/flutter/web/flutter_bootstrap.js b/web_embedding/ng-flutter/flutter/web/flutter_bootstrap.js new file mode 100644 index 000000000..e69de29bb