diff --git a/devtools_options.yaml b/devtools_options.yaml index 7e7e7f6..db23d53 100644 --- a/devtools_options.yaml +++ b/devtools_options.yaml @@ -1 +1,2 @@ extensions: + - provider: false \ No newline at end of file diff --git a/netlify.toml b/netlify.toml index e5d169d..661fee0 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,5 +3,5 @@ package = "netlify-plugin-flutter" [plugins.inputs] channel = "stable" [build] -command = "flutter build web --web-renderer html" +command = "flutter build web --release --web-renderer html" publish = "build/web" \ No newline at end of file diff --git a/pubspec.lock b/pubspec.lock index 05be500..adc4528 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -539,13 +539,13 @@ packages: source: hosted version: "2.1.4" web: - dependency: "direct overridden" + dependency: transitive description: name: web - sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27" + sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152 url: "https://pub.dev" source: hosted - version: "0.5.1" + version: "0.3.0" win32: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index cdc8f42..7c0e1d6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -33,8 +33,8 @@ dependencies: # theme_provider: ^0.6.0 # flutter_speed_dial: ^7.0.0 -dependency_overrides: - web: ^0.5.1 +# dependency_overrides: +# web: ^0.5.1 dev_dependencies: flutter_test: diff --git a/web/index.html b/web/index.html index f0a2f57..9ab4e89 100644 --- a/web/index.html +++ b/web/index.html @@ -56,7 +56,10 @@ serviceWorkerVersion: serviceWorkerVersion, }, onEntrypointLoaded: function(engineInitializer) { - engineInitializer.initializeEngine().then(function(appRunner) { + let config = { + renderer:"html" , + }; + engineInitializer.initializeEngine(config).then(function(appRunner) { appRunner.runApp(); }); } diff --git a/web/zoom.js b/web/zoom.js deleted file mode 100644 index 924b2cd..0000000 --- a/web/zoom.js +++ /dev/null @@ -1,9 +0,0 @@ -function setZoom(zoomLevel) { - document.body.style.zoom = zoomLevel; -} -function getScreenSize() { - return { - width: window.screen.width, - height: window.screen.height - }; -}