News for hackers. Stuff that matters.

pax_americana

Re:SwiftUI for Mac 2024 on Friday August 23, 2024 @01:24AM (#41326392)
Chrome just added CSS Anchor Positioning this year. The other browsers also expressed interest in implementing it, with Firefox having announced an Intent to Implement. The feature would likely be available on all major browsers sometime next year.

So here's how your example would work using it:

.outer { width: 100%; height: 400px; background: aliceblue; anchor-name: --outer; }

.left { width: 100px; height: 100px; background: white; position: absolute; position-anchor: --outer; left: anchor(left); align-self: anchor-center; }

.center { width: 150px; height: 200px; background: pink; position: absolute; position-anchor: --outer; justify-self: anchor-center; align-self: anchor-center; }

.right { width: 160px; height: 150px; background: gray; position: absolute; position-anchor: --outer; right: anchor(right); align-self: anchor-center; }

Source: https://developer.chrome.com/blog/anchor-positioning-api

Re:Time-Based CSS Animations on Tuesday May 07, 2024 @01:22AM (#40282608)
If you’re doing animations in JS, better do it with the Web Animations API since it’s also hardware accelerated.
Re:Use web components for what they’re good at on Thursday August 24, 2023 @07:08AM (#37247447)
Reddit is actually undergoing a rewrite for their web frontend, which now heavily uses web components using lit. You can try it by accessing sh.reddit.com or using reddit without logging in.
Re:Ubuntu new installer is based on Flutter on Sunday April 30, 2023 @02:54AM (#35760247)
Google libraries are a different story compared to their software products. AngularDart is hardly used outside of Google that it's practically dead and no longer maintained for use externally. However it's alive and well inside Google and still have internal releases within the company. Since Flutter is heavily used outside as well as inside, Google will have to consider the man-hours of rewriting everything Flutter has touched in order to decide dropping it, which means never basically. So even if Flutter is dropped by the community using it, it would still be maintained by Google for their internal use.
Re:TypeScript 5.0 on Friday March 17, 2023 @09:45AM (#35196966)
Publicly it's dead, but it's alive and well and constantly getting updated inside Google.
Re:Ask HN: Why No Functional Components in Flutter? on Wednesday June 09, 2021 @12:41PM (#27450035)
Here's a pretty good explanation.

https://stackoverflow.com/a/53234826

There is a library that would allow you to declare functional components, however it relies on code generation which might discourage others from using it. Dart is planning on adding static metaprogramming though, and that might provide a way to introduce functional components to Flutter without codegen.

It has a pretty good accessibility story for it's built-in widget set (Material and Cupertino). However, if you want to create a new Widget that does not depend on the built-ins but still provide a11y, you can wrap it using the Semantics[1][2] widget.

[1] https://api.flutter.dev/flutter/widgets/Semantics-class.html

[2] https://youtu.be/NvtMt_DtFrQ

Re:No Flutter on Linux desktop on Sunday May 09, 2021 @07:48PM (#27101011)
Re:Flutter Web: A Fractal of Bad Design on Sunday November 01, 2020 @07:54PM (#24963963)
You seem you have a hate boner for CanvasKit. It's just a Skia project that Flutter uses as one of its render targets. It's main use is to provide a better Canvas painting API than what browsers offer natively.
Re:Flutter tutorial for beginners on Saturday May 02, 2020 @09:11PM (#23056130)
I believe the Stadia app is the only mainstream Google iOS app that is written in Flutter. The rest are native apps (Swift/Objective C) but specifically implements Material design.
I don't think scenic is written in Rust. A big chunk of the source code in the topaz layer (the view layer) is still written in dart. With that said, many were actually surprised when it was revealed that ermine (the new fuchsia shell) was written in dart/Flutter [1] since earlier code for it was in Rust [2]. Guess that didn't pan out.

[1] https://fuchsia.googlesource.com/topaz/+/refs/heads/master/s...

[2] https://fuchsia-review.googlesource.com/c/topaz/+/184430

> Plus, even Fuchsia is not so focused on Flutter anylonger. Android userspace is being ported to Fuchsia, and now they have a UI Framework agnostic layer, Scenic, with examples in C++ and Rust.

I highly doubt that. See here https://fuchsia.googlesource.com/topaz/+/bd4464d6b8d586d74b6...

I think you're confusing fuchsia and flutter. Fuchsia is a new OS while flutter is it's native UI. I don't think "uncanny" is applicable here.
Re:Introducing Custom Elements on Saturday November 19, 2016 @11:31PM (#12997286)
All four features of the Web Components Spec (Shadow DOM, Custom Elements, HTML Import and Template Element) are the top most requested features in the MSEdge Developer Uservoice. <template> has already been implemented while the remaining three are on their backlog.

https://wpdev.uservoice.com/forums/257854-microsoft-edge-dev...

Re:Angular 2 Final Released on Thursday September 15, 2016 @04:26AM (#12504327)
Youtube Gaming, Google Play Music and IBM's Bluemix are probably the biggest projects built using Polymer. The main Youtube website itself also seemed to be playing around with Polymer.

http://thenextweb.com/google/2016/05/02/youtube-getting-goog...

Re:QML for the Web on Sunday April 10, 2016 @11:48PM (#11469509)
They're currently merging old forks. https://github.com/qmlweb/qmlweb/issues/134
Re:Qpm: A package manager for Qt on Sunday April 10, 2016 @11:05PM (#11469378)
You can use this to include Node.js libraries on your Qt/QML projects: https://github.com/quickly/quickly
Re:QML for the Web on Sunday April 10, 2016 @10:35PM (#11469306)
The project has been consistently updated this past few months. I don't get why you've said it hasn't changed for two years.
Polymer is not a polyfill for the standards. It's just a library for creating web components in a less boilerplatey manner. The polyfill library is called webcomponents.js.
Re:React Native for OS X on Wednesday March 30, 2016 @08:38AM (#11388765)
I find it amusing that those two mirror XML and JSON respectively.
Re:React Native for OS X on Wednesday March 30, 2016 @12:38AM (#11387010)
I disagree. I think QML is faster to prototype (you can export an existing PSD file to qml). Also QML's anchor-based layouts >>> flexbox.