dawn 2.4.2 dawn: ^2.4.2 copied to clipboard
Dawn is a Dart web package for developing UIs in a pattern similar to Flutter.
dawn #
Description #
Dawn is a Dart Web package that provides basic classes like StatelessWidget
similar to Flutter,
but with a different implementation. It compiles to JavaScript and paints the UI using HTML and CSS.
Getting Started #
-
Installation #
dart pub global activate dawn
-
Setup #
dawn create my_awesome_app
-
Build For Development #
dawn compile
-
Start Live Server #
"Live Server" extension for VSCode is recommended.
After Step 4, you will see this page on your browser:
-
Build For Production #
dawn compile --mode prod
Why Dawn Exists #
- I really like Flutter's approach (
StatelessWidget
,StatefulWidget
,State<T>
, etc.), but I didn't find it easy at all to develop custom UIs in Flutter compared to HTML and CSS. See this issue on GitHub. - Flutter web is great but it hugely suffers from initial loading performance.
I decided to make something that has the best of both worlds. The ease of developing custom UIs quickly with the elegant approach of Flutter, without compromising the performance.