-
Notifications
You must be signed in to change notification settings - Fork 0
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
Flutter renderer #2
Comments
I will take a look. But we can do better. nuts is very abstracted from the widget library underneath. An implementation of Flutter renderer for ViewRenderer would suffice. Currently there is only implementation of HtmlRenderer. You can also do platform specific conditional rendering. For example, if platform is web, use this Component, elseif platform is Flutter, use this component, etc. |
This is the one I was referring to.
https://pub.dartlang.org/packages/flutter_html_view
I have found its parser to be very fragile. But its more of a reference to see approaches i feel.
Wow there is conditional ? Like Vuejs has a formal DSL ? Very nice
approaches.
I presume your aiming for an agnostic layout so that the same layout works
on web and flutter ?
…On Mon, 10 Sep 2018, 15:48 Ravi Teja Gudapati, ***@***.***> wrote:
I will take a look.
But we can do better. nuts is very abstracted from the widget library
underneath. An implementation of Flutter renderer for ViewRenderer would
suffice. Currently there is only implementation of HtmlRenderer. You can
also do platform specific conditional rendering. For example, if platform
is web, use this Component, elseif platform is Flutter, use this component,
etc.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ATuCwl_13YcQW4AB5BAm7wTVrRUprFASks5uZm3HgaJpZM4WhZiG>
.
|
Yes. With some cool rx sugar added. There will XML template engine as well later. But I am really hoping this gets accepted: dart-lang/sdk#34362
Yes. Same UI tree targets different rendering backends. Sometimes though, one Component cannot directly target all platforms. In this case, you have to use platform specific Components based on conditional rendering. |
Can you add setup to the readme ? EDIT: I just read your proposal. So for now this wont run without a custom build of dart ? |
Sure. Will do this by tomorrow.
What do you mean? This: dart-lang/sdk#34362? No, That will make things cleaner to write. Has nothing directly to do with nuts. |
Well the discussion in the main dart repo was talking about adding a new
operator to the dart language. Its the link you added above.
Thanks again. This is a interesting spin of an approach. Great potential. I
hope I can help.
…On Mon, 10 Sep 2018, 18:58 Ravi Teja Gudapati, ***@***.***> wrote:
Can you add setup to the readme ?
have not used webdev much for dart. Mostly only flutter.
Sure. Will do this by tomorrow.
EDIT: I just read your proposal. So for now this wont run without a custom
build of dart ?
What do you mean?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ATuCwsXT-wePHRd4YKBpeuKI5Q7WaEAUks5uZpo5gaJpZM4WhZiG>
.
|
Here is an example boilerplate repo: https://github.com/nutsdart/boilerplate It is still early stage. Suggestions are welcome. PRs will be awesome! |
ok thanks. Will check it out. |
I see that the way you described Ribe a html offer tree feels very like flutter.
I was wondering is a html to flutter lib makes sense to build a flutter renderer.
There is one on GitHub and it pulls Wikipedia html, parses it and renders flutter objects.
Food for thought ?
It also is cool because you don't have to recompile
The text was updated successfully, but these errors were encountered: