dawn 2.3.5 dawn: ^2.3.5 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 for developing UIs in a pattern similar to Flutter.
Getting Started #
-
Download the boilterplate.
-
Extract the zip file into the directory you like.
-
Rename the
example
folder to whatever you want. -
Change
pubspec.yaml
to the following spec:name: my_project_name description: A Dawn app publish_to: none environment: sdk: ">=2.17.0 <3.0.0"
-
Run the following commands:
dart pub add dawn
dart pub add --dev dawn_lints
-
Run the following commands:
mkdir .dawn
mkdir .dawn/dev
mkdir .dawn/prod
-
Run the developement mode script:
./scripts/dev.bat
NOTE: You should have NodeJS and Nodemon installed.
-
Run "Live Server" extension on VSCode.
-
Edit
web/main.dart
and enjoy coding!
NOTE: To compile for production, run ./scripts/prod.bat
. You can find the production-ready output in .dawn/prod
.
Dawn Reference #
Dawn provides the following basic widgets:
Text
Image
Video
Container
Input
Textbox
How Dawn Works #
- Dawn lets you write your front-end in Dart with a syntax similar to Flutter.
- It's compiled to a JavaScript file which is included in
index.html
. - Dawn handles reactivity and widget structure with a virtual node tree.