Skip to content

Commit

Permalink
chore: Bump devtools dependencies (#3173)
Browse files Browse the repository at this point in the history
Bumps the devtools dependencies and fixes the `SplitPane` name change.
  • Loading branch information
spydon committed May 27, 2024
1 parent 2088d63 commit b9738d5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 30 deletions.
10 changes: 5 additions & 5 deletions packages/flame_devtools/.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# This file should be version controlled and should not be manually edited.

version:
revision: "78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9"
revision: "a14f74ff3a1cbd521163c5f03d68113d50af93d3"
channel: "stable"

project_type: app
Expand All @@ -13,11 +13,11 @@ project_type: app
migration:
platforms:
- platform: root
create_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
base_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
- platform: web
create_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
base_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3

# User provided section

Expand Down
2 changes: 1 addition & 1 deletion packages/flame_devtools/lib/widgets/component_tree.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ComponentTree extends StatelessWidget {

@override
Widget build(BuildContext context) {
return devtools_ui.Split(
return devtools_ui.SplitPane(
axis: MediaQuery.of(context).size.width > 1000
? Axis.horizontal
: Axis.vertical,
Expand Down
4 changes: 2 additions & 2 deletions packages/flame_devtools/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ environment:

dependencies:
animated_tree_view: ^2.2.0
devtools_app_shared: ^0.0.10
devtools_extensions: ^0.0.14
devtools_app_shared: ^0.1.1
devtools_extensions: ^0.1.1
flame: ^1.17.0
flutter:
sdk: flutter
Expand Down
23 changes: 1 addition & 22 deletions packages/flame_devtools/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,29 +27,8 @@

<title>flame_devtools</title>
<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>
<body>
<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>
<script src="flutter_bootstrap.js" async></script>
</body>
</html>

0 comments on commit b9738d5

Please sign in to comment.