r/FlutterDev • • May 13 '20

Tooling Announcing Adobe XD support for Flutter by Tim Sneath

https://link.medium.com/7CcuVgTps6
137 Upvotes

25 comments sorted by

27

u/grantskinner May 13 '20

Hi all!

My team and I worked on this plugin with Adobe & Google. It's an Early Access release, which means there are still bugs to fix and features to add (most notably support for responsive layout), but we're really excited for people to start playing with it.

We see two main use cases for it right now:

  1. Design / prototyping: Easily set up views or portions of views so that designers can work in XD and instantly see their work right in the app via hot reload. Also handy for stakeholder presentations and user testing. Currently, most of this code wouldn't be production ready.

  2. Dev support: Export resolution aware images, and use the Copy to Clipboard feature to quickly convert designs to code. Grab a tricky box decoration, rich text, or vector graphics with one click and paste it into your code.

I expect the addition of responsive layout will greatly improve both of these scenarios, in addition to making some exported widgets usable in production. We're just waiting on an API in XD that should be coming soon.

Happy to answer questions if you have any.

3

u/internettingaway May 13 '20

Very cool. Thank you for working on this.

It'd be great to see it in action, either in a short video or a GIF.

6

u/grantskinner May 13 '20

Good idea. I've done short intros to it for a couple groups today, if I can scrape together some time this week I might try recording one and sharing it.

1

u/ifndefx May 13 '20

This is brilliant, I had pumped the early access notification for months now hadn't received any news/email. How do I get into the early access ?

4

u/grantskinner May 13 '20 edited May 13 '20

Early Access is actually 100% open to the public. Originally the plan was to do a private initial release to gather feedback in a more controlled manner, but given the wait we all agreed it would be better to just open it up to anyone that wanted to play with it.

You can grab the plugin from the XD plugin store, or check out the GitHub repo for more detailed information and the source code.

I'll confirm with Adobe that they are notifying everyone that signed up.

1

u/ifndefx May 14 '20

Thank you, I've just updated my XD and added the plugin and gave it whirl. Looks really and really good effort. I wanted to ask, does export the code as widgets such as button being a raised button etc... ? When I exported a design ( I had made an element, which meant to be a button into a component, and had a call back defined), however, it exported this as container with boxdecoration ?

1

u/grantskinner May 14 '20

Right now, no. XD doesn't have a strict concept of controls (ex. it doesn't provide a formal way to say "this is a button"). For now we're trying to get everything exporting correctly visually, but we have some ideas on how we could use features of XD to enhance this to provide more functionality / interactivity in the export in future versions.

10

u/Charles211 May 13 '20

So to be clear, it enables creation of the UI, then transforms it into code that runs on flutter?

10

u/megaflutter May 13 '20

I just tried it. It's not meant to replace full UI development, but to be able to quickly scaffold the UI and get the parts you need like the color value. I'm impressed considering it's free.

3

u/esDotDev May 14 '20

Simply put it creates dart code from XD Shapes and Text. It can copy to clipboard, or export to widget files. It supports button events and text/color/image params.

2

u/SaltTM May 13 '20

This creates a series of classes in the lib/ subdirectory of your project, which you can then use directly.

5

u/Codelessly May 13 '20

Hopefully this means any exclusivity contract between Adobe and Google is up and we'll start hearing more about Google's layout builder soon.

9

u/andreyeurope May 13 '20

After they excluded offline support from their free version, I was kinda disappointed by Adobe XD.

3

u/alvarolloret May 13 '20

Will other design platforms get also support in the future?

1

u/bernaferrari Jul 14 '20

Probably no, but I released my own version yesterday. Not a fork.

https://github.com/bernaferrari/FigmaToCode

3

u/shuwatto May 13 '20

How does this compare to Supernova Studio?

2

u/MyNameIsIgglePiggle May 13 '20

TIL that XD is no longer free

4

u/Consiouswierdsage May 14 '20

XD was very disappointing when came from figma. Figma is hands down, best for now. But i see people are interested in making futuristic plugins for XD but not for figma. :(

6

u/SaltTM May 13 '20

It is, but there's no offline version anymore it seems. And it's an infinite subscription model which makes me not interested. Will pain it out manually lol

https://www.adobe.com/products/xd/compare-plans.html?promoid=6JMR7G2G&mv=other

1

u/bartsimpsonnn May 14 '20

Anyone having issues, when I export widget nothing happens.

1

u/[deleted] May 14 '20

I was excited about it, now I'm skeptical. I think it is better to design "by hand" instead of using XD

1

u/ericmichaelmtz May 14 '20

Isn’t using XD designing by hand? Or do you mean coding by hand?

1

u/[deleted] May 15 '20

Yes

0

u/Kotaibaw May 13 '20

It's free?

1

u/AsifMojtoba May 14 '20

For now, Yes.