Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Dawn 6.0, Ideas, Plans, and To-dos #11

Closed
5 tasks done
Hawmex opened this issue Sep 7, 2022 · 10 comments
Closed
5 tasks done

Dawn 6.0, Ideas, Plans, and To-dos #11

Hawmex opened this issue Sep 7, 2022 · 10 comments
Labels
enhancement New feature or request

Comments

@Hawmex
Copy link
Owner

Hawmex commented Sep 7, 2022

Hi everyone!

It seems like Dawn is getting more impressions lately.

Generally, as of Dawn 5.6, I'm happy with Dawn's foundation, widgets, animations, CLI, and source code readability.

To-dos

Some things need to be addressed:

dawn.animation

This library looks good IMO.

dawn.foundation

  • Implement strongly-typed styles
  • Implement safer event listeners via PaintedNode.addEventSubscription API.

dawn.widgets

  • Implement Video
  • Implement Input
  • Implement full extensibility via SingleChildNode, MultiChildNode, ChildlessPaintedNode, SingleChildPaintedNode, and MultiChildPaintedNode. Users can now fully implement their own widgets like Input, Video, etc.

dawn

  • Add documentation to the public API
  • Rewrite and improve the CLI by refactoring the dawn create command and removing the dawn compile command.

Dawn's Website

  • Update the color scheme according to Dawn's new logo.
  • Serve markdown content.
@Hawmex Hawmex added the enhancement New feature or request label Sep 7, 2022
@Hawmex Hawmex pinned this issue Sep 7, 2022
@rexthecoder
Copy link

rexthecoder commented Sep 8, 2022

We can have a button widget. Just like the native web Button but it can have section properties as here
https://api.flutter.dev/flutter/material/ElevatedButton-class.html

@Hawmex
Copy link
Owner Author

Hawmex commented Sep 8, 2022

We can have a button widget. Just like the native web Button but it can have section properties as here https://api.flutter.dev/flutter/material/ElevatedButton-class.html

Dawn's intention is to provide minimal, unstyled, and essential widgets. Thus, Video and Input widgets have to be added. More design-specific widgets can be published as separate packages.

Button implemented for Dawn's website

Basic example:

class Button extends StatelessWidget {
  final String value;
  final EventListener? onTap;

  const Button(this.value, {this.onTap, super.key});

  @override
  Widget build(final BuildContext context) {
     return Text(
       value,
       onTap: onTap,
       style: Style({
         'padding': '4px 8px',
         'background': 'grey',
         'cursor': 'pointer',
       }),
     );
  }
}

@rexthecoder
Copy link

Okay sure

@rexthecoder
Copy link

@Hawmex I have some beautiful thing to show you

@Hawmex
Copy link
Owner Author

Hawmex commented Sep 11, 2022

@rexthecoder I can't wait to see it.

@rexthecoder
Copy link

rexthecoder commented Sep 11, 2022

Screen.Recording.2022-09-11.at.08.58.04.mp4

This is tailwind css used directly in the framework. It has many advantages such as building UI at a higher speed

cc @Hawmex

@Hawmex
Copy link
Owner Author

Hawmex commented Sep 11, 2022

It looks great. You can add a pull request for your implementation with some code examples.

cc @rexthecoder

@Hawmex
Copy link
Owner Author

Hawmex commented Oct 5, 2022

Closing because of 63a5f8d

@Hawmex Hawmex closed this as completed Oct 5, 2022
Hawmex pushed a commit to Hawmex/dawn_website that referenced this issue Oct 5, 2022
@rexthecoder
Copy link

I guess a lot of improvement has been made, I have been busy with other things but I will look into the update @Hawmex

@Hawmex
Copy link
Owner Author

Hawmex commented Oct 5, 2022

Thanks @rexthecoder; Honestly, I hadn't been doing things professionally in this repo since the start. I had thought of it as a hobby and a personal project. I really tried to put things together professionally for Dawn 6. The main new APIs besides the tasks of this issue are SingleChildNode, MultiChildNode, ChildlessPaintedNode, SingleChildPaintedNode, and MultiChildPaintedNode.

@Hawmex Hawmex unpinned this issue Oct 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants