New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to use this plugin? #1
Comments
I'm not sure if it works with |
for example,I have a url like "http://racconcity//invite?rid=257#target=out",how can i use your plugin to define the scheme,I don't know how to use in flutter project, your example is too simple to learn~ |
I'm not sure about using |
like and how to get the params |
You can only register schemes. Currently flutter will create another instance of the app, so you should find a way to handle those. Fyi, the |
where should I use the main method , `Future main(List args) async { /** Query */ /** Add */ /** Remove */ |
https://dart.dev/guides/language/language-tour#the-main-function |
Again, you should handle those arguments. This package will only set the protocol pointing to your app path. |
this is my main method.
now I should change it like your main method. is ok? |
`import 'dart:io'; import 'package:flutter_hxs_win/base/global.dart'; final ProtocolScheme scheme = ProtocolScheme( Future main(List args) async { /** Query */ /** Add */ /** Remove */ Global.init(() { |
That's up to you. You don't need to copy the code exactly. |
eg http://racconcity//invite?rid=257#target=out
how to define the scheme
final ProtocolScheme scheme = ProtocolScheme( appName: 'Test App', scheme: 'some-thing-that-doesnt-exist', appPath: Platform.resolvedExecutable, );
and how to listen the callback?
The text was updated successfully, but these errors were encountered: