Bump deps and min SDKs, move web apps to new bootstrapping logic (#2292)

Also removed the web measurement experiment from the material 3 demo
pull/2293/head
Kevin Moore 6 months ago committed by GitHub
parent 4776ad597b
commit a858f4701e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -4,7 +4,7 @@ description: An example Flutter module that uses a plugin.
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -6,7 +6,7 @@ description: A Flutter module using the Pigeon package to demonstrate
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -4,7 +4,7 @@ description: An example Flutter module.
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -4,7 +4,7 @@ description: A module that is embedded in the multiple_flutters_ios and multiple
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -4,7 +4,7 @@ description: An example Flutter module that uses a plugin.
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -4,7 +4,7 @@ description: An example Flutter module.
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -4,7 +4,7 @@ publish_to: 'none'
version: 0.1.0 version: 0.1.0
environment: environment:
sdk: '>=3.2.3 <4.0.0' sdk: ^3.4.0-0
dependencies: dependencies:
async: ^2.11.0 async: ^2.11.0
@ -18,7 +18,7 @@ dependencies:
flutter_markdown: ^0.6.20 flutter_markdown: ^0.6.20
flutter_svg: ^2.0.9 flutter_svg: ^2.0.9
google_fonts: 6.1.0 google_fonts: 6.1.0
google_generative_ai: ^0.2.0 google_generative_ai: ^0.4.0
image_picker: ^1.0.7 image_picker: ^1.0.7
material_symbols_icons: ^4.2719.1 material_symbols_icons: ^4.2719.1
path: ^1.9.0 path: ^1.9.0

@ -31,29 +31,8 @@
<title>gemini_io_talk</title> <title>gemini_io_talk</title>
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
<script>
// The value below is injected by flutter build, do not touch.
const serviceWorkerVersion = null;
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head> </head>
<body> <body>
<script> <script src="flutter_bootstrap.js" async></script>
window.addEventListener('load', function(ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
onEntrypointLoaded: function(engineInitializer) {
engineInitializer.initializeEngine().then(function(appRunner) {
appRunner.runApp();
});
}
});
});
</script>
</body> </body>
</html> </html>

@ -3,7 +3,7 @@ description: Analysis defaults for flutter/samples
publish_to: none publish_to: none
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
# NOTE: Code is not allowed in this package. Do not add more dependencies. # NOTE: Code is not allowed in this package. Do not add more dependencies.
# The `flutter_lints` dependency is required for `lib/flutter.yaml`. # The `flutter_lints` dependency is required for `lib/flutter.yaml`.

@ -6,7 +6,7 @@ publish_to: "none"
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -4,7 +4,7 @@ version: 1.0.0+1
publish_to: none publish_to: none
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -31,29 +31,8 @@
<title>animations</title> <title>animations</title>
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
<script>
// The value below is injected by flutter build, do not touch.
const serviceWorkerVersion = null;
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head> </head>
<body> <body>
<script> <script src="flutter_bootstrap.js" async></script>
window.addEventListener('load', function(ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
onEntrypointLoaded: function(engineInitializer) {
engineInitializer.initializeEngine().then(function(appRunner) {
appRunner.runApp();
});
}
});
});
</script>
</body> </body>
</html> </html>

@ -3,12 +3,12 @@ description: A sample command-line application.
version: 1.0.0 version: 1.0.0
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
args: ^2.4.2 args: ^2.4.2
image: ^4.1.7 image: ^4.1.7
dev_dependencies: dev_dependencies:
lints: ^3.0.0 lints: ^4.0.0
test: ^1.24.0 test: ^1.24.0

@ -4,7 +4,7 @@ publish_to: 'none'
version: 0.1.0 version: 0.1.0
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:
@ -14,7 +14,7 @@ dependencies:
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:
sdk: flutter sdk: flutter
flutter_lints: ^3.0.0 flutter_lints: ^4.0.0
vector_graphics_compiler: ^1.1.11+1 vector_graphics_compiler: ^1.1.11+1
grayscale_transformer: grayscale_transformer:
path: ./grayscale_transformer path: ./grayscale_transformer

@ -6,7 +6,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
cupertino_icons: ^1.0.2 cupertino_icons: ^1.0.2

@ -4,7 +4,7 @@ publish_to: "none"
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
cupertino_icons: ^1.0.2 cupertino_icons: ^1.0.2

@ -31,29 +31,8 @@
<title>client</title> <title>client</title>
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = null;
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head> </head>
<body> <body>
<script> <script src="flutter_bootstrap.js" async></script>
window.addEventListener('load', function(ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
onEntrypointLoaded: function(engineInitializer) {
engineInitializer.initializeEngine().then(function(appRunner) {
appRunner.runApp();
});
}
});
});
</script>
</body> </body>
</html> </html>

@ -4,7 +4,7 @@ version: 1.0.0
publish_to: "none" publish_to: "none"
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
args: ^2.0.0 args: ^2.0.0

@ -3,7 +3,7 @@ description: Common data models required by our client and server
version: 1.0.0 version: 1.0.0
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
freezed_annotation: ^2.1.0 freezed_annotation: ^2.1.0

@ -20,7 +20,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
# Dependencies specify other packages that your package needs in order to work. # Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions # To automatically upgrade your package dependencies to the latest versions

@ -31,29 +31,8 @@
<title>context_menus</title> <title>context_menus</title>
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = null;
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head> </head>
<body> <body>
<script> <script src="flutter_bootstrap.js" async></script>
window.addEventListener('load', function(ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
onEntrypointLoaded: function(engineInitializer) {
engineInitializer.initializeEngine().then(function(appRunner) {
appRunner.runApp();
});
}
});
});
</script>
</body> </body>
</html> </html>

@ -19,7 +19,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
# Dependencies specify other packages that your package needs in order to work. # Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions # To automatically upgrade your package dependencies to the latest versions

@ -31,29 +31,8 @@
<title>deeplink_store_example</title> <title>deeplink_store_example</title>
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = null;
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head> </head>
<body> <body>
<script> <script src="flutter_bootstrap.js" async></script>
window.addEventListener('load', function(ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
onEntrypointLoaded: function(engineInitializer) {
engineInitializer.initializeEngine().then(function(appRunner) {
appRunner.runApp();
});
}
});
});
</script>
</body> </body>
</html> </html>

@ -4,7 +4,7 @@ publish_to: 'none'
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
built_collection: ^5.1.1 built_collection: ^5.1.1

@ -4,7 +4,7 @@ publish_to: 'none'
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
built_collection: ^5.1.1 built_collection: ^5.1.1

@ -9,13 +9,13 @@ dependencies:
flutter: flutter:
sdk: flutter sdk: flutter
flutter_markdown: ^0.7.1 flutter_markdown: ^0.7.1
google_generative_ai: ^0.3.3 google_generative_ai: ^0.4.0
url_launcher: ^6.2.6 url_launcher: ^6.2.6
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:
sdk: flutter sdk: flutter
flutter_lints: ^3.0.0 flutter_lints: ^4.0.0
flutter: flutter:
uses-material-design: true uses-material-design: true

@ -31,29 +31,8 @@
<title>dynamic_theme</title> <title>dynamic_theme</title>
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
<script>
// The value below is injected by flutter build, do not touch.
const serviceWorkerVersion = null;
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head> </head>
<body> <body>
<script> <script src="flutter_bootstrap.js" async></script>
window.addEventListener('load', function(ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
onEntrypointLoaded: function(engineInitializer) {
engineInitializer.initializeEngine().then(function(appRunner) {
appRunner.runApp();
});
}
});
});
</script>
</body> </body>
</html> </html>

@ -4,7 +4,7 @@ description: Demonstrates how to use the federated_plugin plugin.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev publish_to: 'none' # Remove this line if you wish to publish to pub.dev
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -5,7 +5,7 @@ version: 0.0.1
publish_to: "none" publish_to: "none"
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -4,7 +4,7 @@ version: 0.0.1
homepage: homepage:
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -4,7 +4,7 @@ version: 0.0.1
homepage: homepage:
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -4,7 +4,7 @@ version: 0.0.1
publish_to: none publish_to: none
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -4,7 +4,7 @@ version: 0.0.1
homepage: homepage:
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -6,7 +6,7 @@ version: 1.0.0+1
publish_to: "none" publish_to: "none"
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -19,7 +19,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
# Dependencies specify other packages that your package needs in order to work. # Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions # To automatically upgrade your package dependencies to the latest versions

@ -4,7 +4,7 @@ version: 0.0.1
publish_to: none publish_to: none
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -4,7 +4,7 @@ publish_to: 'none'
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -4,7 +4,7 @@ version: 1.0.0+1
publish_to: none publish_to: none
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
cloud_firestore: ^4.15.6 cloud_firestore: ^4.15.6

@ -3,7 +3,7 @@ description: A new Flutter project.
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -4,7 +4,7 @@ publish_to: "none"
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -31,29 +31,8 @@
<title>form_app</title> <title>form_app</title>
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
<script>
// The value below is injected by flutter build, do not touch.
const serviceWorkerVersion = null;
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head> </head>
<body> <body>
<script> <script src="flutter_bootstrap.js" async></script>
window.addEventListener('load', function(ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
onEntrypointLoaded: function(engineInitializer) {
engineInitializer.initializeEngine().then(function(appRunner) {
appRunner.runApp();
});
}
});
});
</script>
</body> </body>
</html> </html>

@ -7,7 +7,7 @@ publish_to: 'none'
version: 0.0.1+1 version: 0.0.1+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -32,28 +32,8 @@
<title>game_template</title> <title>game_template</title>
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = null;
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head> </head>
<body> <body>
<script> <script src="flutter_bootstrap.js" async></script>
window.addEventListener('load', function(ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
onEntrypointLoaded: function(engineInitializer) {
engineInitializer.initializeEngine().then(function(appRunner) {
appRunner.runApp();
});
}
});
});
</script>
</body> </body>
</html> </html>

@ -9,13 +9,13 @@ dependencies:
flutter: flutter:
sdk: flutter sdk: flutter
flutter_markdown: ^0.7.1 flutter_markdown: ^0.7.1
google_generative_ai: ^0.3.3 google_generative_ai: ^0.4.0
url_launcher: ^6.2.6 url_launcher: ^6.2.6
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:
sdk: flutter sdk: flutter
flutter_lints: ^3.0.0 flutter_lints: ^4.0.0
flutter: flutter:
uses-material-design: true uses-material-design: true

@ -31,29 +31,8 @@
<title>gemini_tasks</title> <title>gemini_tasks</title>
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
<script>
// The value below is injected by flutter build, do not touch.
const serviceWorkerVersion = null;
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head> </head>
<body> <body>
<script> <script src="flutter_bootstrap.js" async></script>
window.addEventListener('load', function(ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
onEntrypointLoaded: function(engineInitializer) {
engineInitializer.initializeEngine().then(function(appRunner) {
appRunner.runApp();
});
}
});
});
</script>
</body> </body>
</html> </html>

@ -4,7 +4,7 @@ publish_to: 'none'
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -35,28 +35,8 @@
<title>google_maps_in_flutter</title> <title>google_maps_in_flutter</title>
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = null;
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head> </head>
<body> <body>
<script> <script src="flutter_bootstrap.js" async></script>
window.addEventListener('load', function(ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
onEntrypointLoaded: function(engineInitializer) {
engineInitializer.initializeEngine().then(function(appRunner) {
appRunner.runApp();
});
}
});
});
</script>
</body> </body>
</html> </html>

@ -5,7 +5,7 @@ publish_to: none
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -31,29 +31,8 @@
<title>infinite_list</title> <title>infinite_list</title>
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
<script>
// The value below is injected by flutter build, do not touch.
const serviceWorkerVersion = null;
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head> </head>
<body> <body>
<script> <script src="flutter_bootstrap.js" async></script>
window.addEventListener('load', function(ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
onEntrypointLoaded: function(engineInitializer) {
engineInitializer.initializeEngine().then(function(appRunner) {
appRunner.runApp();
});
}
});
});
</script>
</body> </body>
</html> </html>

@ -6,7 +6,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -4,7 +4,7 @@ version: 1.0.0+1
publish_to: none publish_to: none
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -32,9 +32,6 @@ migrate_working_dir/
.pub/ .pub/
/build/ /build/
# Web related
lib/generated_plugin_registrant.dart
# Symbolication related # Symbolication related
app.*.symbols app.*.symbols

@ -2,34 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import 'dart:convert';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:web_startup_analyzer/web_startup_analyzer.dart';
import 'constants.dart'; import 'constants.dart';
import 'home.dart'; import 'home.dart';
void main() async { void main() async {
var analyzer = WebStartupAnalyzer(additionalFrameCount: 10); runApp(const App());
debugPrint(json.encode(analyzer.startupTiming));
analyzer.onFirstFrame.addListener(() {
debugPrint(json.encode({'firstFrame': analyzer.onFirstFrame.value}));
});
analyzer.onFirstPaint.addListener(() {
debugPrint(json.encode({
'firstPaint': analyzer.onFirstPaint.value?.$1,
'firstContentfulPaint': analyzer.onFirstPaint.value?.$2,
}));
});
analyzer.onAdditionalFrames.addListener(() {
debugPrint(json.encode({
'additionalFrames': analyzer.onAdditionalFrames.value,
}));
});
runApp(
const App(),
);
} }
class App extends StatefulWidget { class App extends StatefulWidget {

@ -17,8 +17,6 @@ dependencies:
cupertino_icons: ^1.0.2 cupertino_icons: ^1.0.2
url_launcher: ^6.1.8 url_launcher: ^6.1.8
web_startup_analyzer:
path: ../web/_packages/web_startup_analyzer
dev_dependencies: dev_dependencies:
analysis_defaults: analysis_defaults:

@ -31,37 +31,8 @@
<title>material_3_demo</title> <title>material_3_demo</title>
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = null;
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
<script type="text/javascript" src="assets/packages/web_startup_analyzer/lib/web_startup_analyzer.js"></script>
</head> </head>
<body> <body>
<script> <script src="flutter_bootstrap.js" async></script>
var flutterWebStartupAnalyzer = new FlutterWebStartupAnalyzer();
var analyzer = flutterWebStartupAnalyzer;
window.addEventListener('load', function(ev) {
analyzer.markStart("loadEntrypoint");
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
onEntrypointLoaded: function(engineInitializer) {
analyzer.markFinished("loadEntrypoint");
analyzer.markStart("initializeEngine");
engineInitializer.initializeEngine().then(function(appRunner) {
analyzer.markFinished("initializeEngine");
analyzer.markStart("appRunnerRunApp");
appRunner.runApp();
});
}
});
});
</script>
</body> </body>
</html> </html>

@ -4,7 +4,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
adaptive_navigation: ^0.0.3 adaptive_navigation: ^0.0.3

@ -31,29 +31,8 @@
<title>navigation_and_routing</title> <title>navigation_and_routing</title>
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
<script>
// The value below is injected by flutter build, do not touch.
const serviceWorkerVersion = null;
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head> </head>
<body> <body>
<script> <script src="flutter_bootstrap.js" async></script>
window.addEventListener('load', function(ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
onEntrypointLoaded: function(engineInitializer) {
engineInitializer.initializeEngine().then(function(appRunner) {
appRunner.runApp();
});
}
});
});
</script>
</body> </body>
</html> </html>

@ -4,7 +4,7 @@ description: A new Flutter project.
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -34,29 +34,8 @@
<!-- Google Maps: https://pub.dev/packages/google_maps_flutter_web --> <!-- Google Maps: https://pub.dev/packages/google_maps_flutter_web -->
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY"></script> <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY"></script>
<script>
// The value below is injected by flutter build, do not touch.
const serviceWorkerVersion = null;
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head> </head>
<body> <body>
<script> <script src="flutter_bootstrap.js" async></script>
window.addEventListener('load', function(ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
onEntrypointLoaded: function(engineInitializer) {
engineInitializer.initializeEngine().then(function(appRunner) {
appRunner.runApp();
});
}
});
});
</script>
</body> </body>
</html> </html>

@ -4,7 +4,7 @@ description: A new Flutter project.
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -3,7 +3,7 @@ description: A project showcasing a Flutter app following different platform IA
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
english_words: ^4.0.0 english_words: ^4.0.0

@ -31,29 +31,8 @@
<title>platform_design</title> <title>platform_design</title>
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
<script>
// The value below is injected by flutter build, do not touch.
const serviceWorkerVersion = null;
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head> </head>
<body> <body>
<script> <script src="flutter_bootstrap.js" async></script>
window.addEventListener('load', function(ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
onEntrypointLoaded: function(engineInitializer) {
engineInitializer.initializeEngine().then(function(appRunner) {
appRunner.runApp();
});
}
});
});
</script>
</body> </body>
</html> </html>

@ -4,7 +4,7 @@ description: A new Flutter project.
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -5,7 +5,7 @@ publish_to: none
version: 1.0.0 version: 1.0.0
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -32,28 +32,8 @@
<title>provider_counter</title> <title>provider_counter</title>
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = null;
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head> </head>
<body> <body>
<script> <script src="flutter_bootstrap.js" async></script>
window.addEventListener('load', function(ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
onEntrypointLoaded: function(engineInitializer) {
engineInitializer.initializeEngine().then(function(appRunner) {
appRunner.runApp();
});
}
});
});
</script>
</body> </body>
</html> </html>

@ -5,7 +5,7 @@ publish_to: none
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -31,29 +31,8 @@
<title>provider_shopper</title> <title>provider_shopper</title>
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
<script>
// The value below is injected by flutter build, do not touch.
const serviceWorkerVersion = null;
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head> </head>
<body> <body>
<script> <script src="flutter_bootstrap.js" async></script>
window.addEventListener('load', function(ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
onEntrypointLoaded: function(engineInitializer) {
engineInitializer.initializeEngine().then(function(appRunner) {
appRunner.runApp();
});
}
});
});
</script>
</body> </body>
</html> </html>

@ -4,7 +4,7 @@ publish_to: 'none'
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -32,28 +32,8 @@
<title>simple_shader</title> <title>simple_shader</title>
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = null;
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head> </head>
<body> <body>
<script> <script src="flutter_bootstrap.js" async></script>
window.addEventListener('load', function(ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
onEntrypointLoaded: function(engineInitializer) {
engineInitializer.initializeEngine().then(function(appRunner) {
appRunner.runApp();
});
}
});
});
</script>
</body> </body>
</html> </html>

@ -4,7 +4,7 @@ publish_to: 'none'
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
auto_size_text: ^3.0.0 auto_size_text: ^3.0.0

@ -32,28 +32,8 @@
<title>simplistic_calculator</title> <title>simplistic_calculator</title>
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = null;
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head> </head>
<body> <body>
<script> <script src="flutter_bootstrap.js" async></script>
window.addEventListener('load', function(ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
onEntrypointLoaded: function(engineInitializer) {
engineInitializer.initializeEngine().then(function(appRunner) {
appRunner.runApp();
});
}
});
});
</script>
</body> </body>
</html> </html>

@ -18,7 +18,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
# Dependencies specify other packages that your package needs in order to work. # Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions # To automatically upgrade your package dependencies to the latest versions

@ -32,28 +32,8 @@
<title>simplistic_editor</title> <title>simplistic_editor</title>
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = null;
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head> </head>
<body> <body>
<script> <script src="flutter_bootstrap.js" async></script>
window.addEventListener('load', function(ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
onEntrypointLoaded: function(engineInitializer) {
engineInitializer.initializeEngine().then(function(appRunner) {
appRunner.runApp();
});
}
});
});
</script>
</body> </body>
</html> </html>

@ -4,7 +4,7 @@ description: A sample that shows testing in Flutter.
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -32,28 +32,8 @@
<title>testing_app</title> <title>testing_app</title>
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = null;
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head> </head>
<body> <body>
<script> <script src="flutter_bootstrap.js" async></script>
window.addEventListener('load', function(ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
onEntrypointLoaded: function(engineInitializer) {
engineInitializer.initializeEngine().then(function(appRunner) {
appRunner.runApp();
});
}
});
});
</script>
</body> </body>
</html> </html>

@ -5,7 +5,7 @@ publish_to: none
version: 1.2.0 version: 1.2.0
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
flutter: flutter:

@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// ignore_for_file: avoid_print
import 'dart:convert'; import 'dart:convert';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';

@ -3,7 +3,7 @@ description: "flutter_web_startup_analyzer example"
publish_to: 'none' # Remove this line if you wish to publish to pub.dev publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
flutter: ^3.16.0 flutter: ^3.16.0
dependencies: dependencies:
flutter: flutter:
@ -14,6 +14,6 @@ dependencies:
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:
sdk: flutter sdk: flutter
flutter_lints: ^3.0.0 flutter_lints: ^4.0.0
flutter: flutter:
uses-material-design: true uses-material-design: true

@ -3,7 +3,7 @@ description: "Captures web startup timing data in a Flutter web app"
version: 0.1.0-wip version: 0.1.0-wip
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
flutter: ^3.16.0 flutter: ^3.16.0
dependencies: dependencies:
@ -13,7 +13,7 @@ dependencies:
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:
sdk: flutter sdk: flutter
flutter_lints: ^3.0.0 flutter_lints: ^4.0.0
flutter: flutter:
assets: assets:
- lib/web_startup_analyzer.js - lib/web_startup_analyzer.js

@ -2,7 +2,7 @@ name: tool
publish_to: none publish_to: none
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
markdown: ^7.0.0 markdown: ^7.0.0

@ -5,7 +5,7 @@ version: 0.0.1
publish_to: none publish_to: none
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
checked_yaml: ^2.0.3 checked_yaml: ^2.0.3

@ -4,7 +4,7 @@ publish_to: 'none'
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
dependencies: dependencies:
cupertino_icons: ^1.0.2 cupertino_icons: ^1.0.2

@ -4,8 +4,8 @@ publish_to: none
version: 1.0.0 version: 1.0.0
environment: environment:
sdk: ^3.3.1 sdk: ^3.4.0-0
flutter: ">=3.19.0" flutter: ">=3.22.0-0"
dependencies: dependencies:
flutter: flutter:

Loading…
Cancel
Save