Update deep linking bootstrap and flet dependency ref
Replaces manual route logging with FletDeepLinkingBootstrap.install() in main.dart for improved deep linking support. Updates the flet dependency git ref to 'deep-linking-fix-2' in pubspec.yaml.
This commit is contained in:
parent
fdd629228d
commit
a3a8d4b3f4
|
|
@ -67,20 +67,9 @@ String assetsDir = "";
|
||||||
String appDir = "";
|
String appDir = "";
|
||||||
Map<String, String> environmentVariables = {};
|
Map<String, String> environmentVariables = {};
|
||||||
|
|
||||||
class RouteLogger with WidgetsBindingObserver {
|
|
||||||
@override
|
|
||||||
Future<bool> didPushRouteInformation(
|
|
||||||
RouteInformation routeInformation,
|
|
||||||
) async {
|
|
||||||
debugPrint('📩 routeInformation: ${routeInformation.uri}');
|
|
||||||
return false; // return true only if YOU handled it and don't want default handling
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void main(List<String> args) async {
|
void main(List<String> args) async {
|
||||||
|
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
FletDeepLinkingBootstrap.install();
|
||||||
WidgetsBinding.instance.addObserver(RouteLogger());
|
|
||||||
|
|
||||||
_args = List<String>.from(args);
|
_args = List<String>.from(args);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ dependency_overrides:
|
||||||
flet:
|
flet:
|
||||||
git:
|
git:
|
||||||
path: packages/flet
|
path: packages/flet
|
||||||
ref: deep-linking-fix
|
ref: deep-linking-fix-2
|
||||||
url: https://github.com/flet-dev/flet.git
|
url: https://github.com/flet-dev/flet.git
|
||||||
|
|
||||||
# serious_python:
|
# serious_python:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue