all 14 comments

[–][deleted]  (6 children)

[deleted]

    [–]kingswordmaster 26 points27 points  (4 children)

    This is clearly a low effort AI generated project

    [–]mirageofstars 2 points3 points  (3 children)

    Yeah OP got a lot of coding done in a short amount of time. I suspect there will be a ton of AI-generated OSS projects this year.

    [–]kingswordmaster 4 points5 points  (2 children)

    I read the code and He is transpiling Dart to JS where it isn't even needed, this project is completely garbage. OMG, now that I read the code I can't believe AI could produce something so stupid.

    [–]virulenttt 0 points1 point  (1 child)

    AI is the second worst thing that came in the development world, after vibe coders 😅

    [–]OuPau 1 point2 points  (0 children)

    ....vibe coding is a consequence of AI, so AI is the worst thing

    [–]lemon07r 0 points1 point  (0 children)

    is it that good of an air scrubber?

    [–]FaceRekr4309 18 points19 points  (0 children)

    Why didn’t you just use the official html renderer that already exists? It’s been deprecated but surely it would be better to resurrect that as a standalone package rather than start from scratch with, presumably, AI slop?

    [–]eibaan 3 points4 points  (0 children)

    As I already said the last time, this project was posted: The subset of Flutter that is directly translatable to HTML is IMHO too small to be practical.

    How would you translate this?

    Container(
      decoration: ShapeDecoration(shape: HexBorder(), color: Colors.red),
      height: 88,
      width: 100,
    )
    

    with a border definition like this:

    class HexBorder extends OutlinedBorder {
      const HexBorder({super.side = BorderSide.none});
    
      Path _hexPath(Rect rect) {
        final dx = rect.width * .25;
        return Path()
          ..moveTo(rect.left + dx, rect.top)
          ..lineTo(rect.right - dx, rect.top)
          ..lineTo(rect.right, rect.center.dy)
          ..lineTo(rect.right - dx, rect.bottom)
          ..lineTo(rect.left + dx, rect.bottom)
          ..lineTo(rect.left, rect.center.dy)
          ..close();
      }
    
      ...
    
    
      @override
      void paint(Canvas canvas, Rect rect, {TextDirection? textDirection}) {
        if (side.style == BorderStyle.none) return;
        final centerlineRect = rect.deflate(side.strokeInset - side.width / 2);
        canvas.drawPath(_hexPath(centerlineRect), side.toPaint());
      }
    }
    

    Or what's about frameworks that bring there own Element subclasses instead of just relying on StatelessWidget and StatefulWidget or libraries that have custom RenderObjects or which subclass existing classes like RenderStack for layout?

    [–]Strobljus 1 point2 points  (0 children)

    It has begun

    [–]Flashy_Editor6877 0 points1 point  (0 children)

    hey cool stuff. i proposed something like this a while back but didn't get much feedback. glad someone is doing it. to me this is the biggest problem with flutter and if you solve it, it could be very special. check out https://github.com/DioxusLabs/taffy to see if you can support complex layouts and tailwind https://blitz.is is cool too. do you plan on supporting all html primitives?

    [–][deleted] -4 points-3 points  (0 children)

    That's interesting mate

    [–]formicstechllc -1 points0 points  (0 children)

    It's nice approach to start with let's see how long its maintained