HNHacker News
TopNewBestAskShowJobs

justinmc

50 karma · joined January 8, 2016

Engineer at Google building the Flutter framework. [https://twitter.com/justinjmcc](https://twitter.com/justinjmcc) [https://github.com/justinmc](https://github.com/justinmc)
submissionscomments
justinmc··on Flutter 3
Do you have an Android version?
justinmc··on Flutter 3
I'm not aware of any planned/possible way to do copy exactly as you would an HTML page with HTML tags, but there's a big project to make selection and copying much simpler and more powerful (design doc [1], in progress PR[2]).

With that PR it should be easy to just add one SelectionArea to the root of your app in order to make everything selectable, like it would be on a web page. You don't need SelectableText widgets. There's an example of this in the PR [3]. No built-in support for multimedia or rich text copying yet though.

Text input fields should already do copy/paste pretty much the same as native.

[1] http://flutter.dev/go/global-selection [2] https://github.com/flutter/flutter/pull/95226 [3] https://github.com/flutter/flutter/pull/95226/files#diff-a90...

justinmc··on To fix L.A.'s traffic, we need tolls
Do you have a source for your roadway wear formula? Just interested to read more.
justinmc··on How Teespring Uses Canvas, SVG, and the DOM to Design T-Shirts
We ended up having to duplicate some of the functionality of Raphael ourselves while writing the processing mentioned in the article (like to locate regions of an uploaded image after transformation). We thought it was best to just use this code to do the layout as well. It also ended up being a lot smaller than a full library, since we're not using a ton of features.

That said we played around with Snapsvg, and it is great if you're lucky like us and don't have to support IE6.

justinmc··on How Teespring Uses Canvas, SVG, and the DOM to Design T-Shirts
Thank you Mark! We were actually originally using Raphael but recently switched to something custom. We got a lot more performance for our use case. I would love to open source that code at some point.