simolus3 / zap

Zap is a fast web framework built on Dart
https://simonbinder.eu/zap/
MIT License
239 stars 12 forks source link

Investigate using the `universal_html` packages #6

Open simolus3 opened 2 years ago

simolus3 commented 2 years ago

In preparation for server-side rendering, we need some mechanism to generate components that don't depend on dart:html. This will likely be a build option, but we can make the transition easier by already using universal_html under the hood. universal_html is an alias for dart:html when compiling to the web, but defines compatible APIs for use on the Dart VM too.

With universal_html, we can also make it easier to debug and test zap component logic outside of a browser. It would be interesting to know how much currently breaks when using universal_html, so a investigation would be really helpful.

Some things that would be interesting to know:

aadarshadhakalg commented 2 years ago

I would love to work on this issue.

simolus3 commented 2 years ago

Awesome, thanks for your help! If you run into any problems, please let me know :)