Skip to content
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

provide extended examples and additional doco #29

Open
bsutton opened this issue Oct 14, 2020 · 7 comments
Open

provide extended examples and additional doco #29

bsutton opened this issue Oct 14, 2020 · 7 comments
Assignees
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@bsutton
Copy link

bsutton commented Oct 14, 2020

I'm considering using dart native however there appears to be only minimal documentation and only trivial examples.

Are you able to provide some extended examples that call common iOS/Android funtions including examples that deal with callbacks and a variety of data types.

I note that there are a number of blogs written in Chinese, English translations of these will enable a far greater audience.

@bsutton
Copy link
Author

bsutton commented Oct 14, 2020

I did actually get chrome to translate the blogs into english and it did a surprisingly good job.

@yulingtianxia yulingtianxia self-assigned this Oct 15, 2020
@yulingtianxia
Copy link
Member

Providing API docs is our next task. But there are also breaking changes until dart:ffi is stable.

@bsutton
Copy link
Author

bsutton commented Oct 15, 2020

At this point I more interested in the high level processes.

How do you set a project, how do you generate code.

How do you call a function, How do you create a callback.

I would also guess than even with the ffi changes the api you are generating won't change much as the ffi calls should be buried in your code.

@bsutton
Copy link
Author

bsutton commented Oct 15, 2020

Also what options to use when creating the flutter project.

I'm guessing as there is no object-c code in the project we can just create it as a package rather than a plugin.

@yulingtianxia
Copy link
Member

At this point I more interested in the high level processes.

How do you set a project, how do you generate code.

How do you call a function, How do you create a callback.

I would also guess than even with the ffi changes the api you are generating won't change much as the ffi calls should be buried in your code.

Most technical solutions can be found in my blogs: http://yulingtianxia.com/tags/DartNative/
There are a lot of tech points using dark magic. BUT some articles in my blog may be outdated.

@yulingtianxia
Copy link
Member

Also what options to use when creating the flutter project.

I'm guessing as there is no object-c code in the project we can just create it as a package rather than a plugin.

Codegen of DartNative wants to change all system/third-part SDK to Flutter package/plugin.

@yulingtianxia yulingtianxia added documentation Improvements or additions to documentation help wanted Extra attention is needed labels Oct 16, 2020
@yulingtianxia yulingtianxia mentioned this issue Oct 16, 2020
3 tasks
@bsutton
Copy link
Author

bsutton commented Oct 22, 2020

At this point I more interested in the high level processes.
How do you set a project, how do you generate code.
How do you call a function, How do you create a callback.
I would also guess than even with the ffi changes the api you are generating won't change much as the ffi calls should be buried in your code.

Most technical solutions can be found in my blogs: http://yulingtianxia.com/tags/DartNative/
There are a lot of tech points using dark magic. BUT some articles in my blog may be outdated.

The blogs are a little lacking in detail.

Really need to see more examples with an explanation of what is going on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants