1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

Clean up dependencies across packages (#2585)

Drop dep on pkg:collection, use new bits in Dart 3.0
Fixed very old dep in navigation_and_routing – bug was fixed long ago
This commit is contained in:
Kevin Moore
2025-02-12 21:14:20 -06:00
committed by GitHub
parent 4cdd42ca05
commit 9fef1332f3
14 changed files with 7 additions and 50 deletions

View File

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

View File

@@ -6,23 +6,11 @@ import 'dart:io' show Platform;
import 'package:flutter/foundation.dart' show kIsWeb;
import 'package:flutter/material.dart';
import 'package:url_strategy/url_strategy.dart';
import 'package:window_size/window_size.dart';
import 'src/app.dart';
void main() {
// Use package:url_strategy until this pull request is released:
// https://github.com/flutter/flutter/pull/77103
// Use to setHashUrlStrategy() to use "/#/" in the address bar (default). Use
// setPathUrlStrategy() to use the path. You may need to configure your web
// server to redirect all paths to index.html.
//
// On mobile platforms, both functions are no-ops.
setHashUrlStrategy();
// setPathUrlStrategy();
setupWindow();
runApp(const Bookstore());
}

View File

@@ -8,15 +8,11 @@ environment:
dependencies:
adaptive_navigation: ^0.0.3
collection: ^1.17.0
cupertino_icons: ^1.0.2
flutter:
sdk: flutter
go_router: ^14.0.0
path_to_regexp: ^0.4.0
quiver: ^3.1.0
url_launcher: ^6.1.1
url_strategy: ^0.3.0
window_size:
git:
url: https://github.com/google/flutter-desktop-embedding.git