Are you talking about something like Flutter? A UI completely expressed through the programming language?
This is an example:
import'package:flutter/material.dart';voidmain(){runApp(newMaterialApp(home:newMyHome(),));}classMyHomeextendsStatefulWidget{@overrideMyHomeStatecreateState()=>newMyHomeState();}classMyHomeStateextendsState<MyHome>{// Generate dialogAlertDialogdialog=newAlertDialog(content:newText("Hello World!",style:newTextStyle(fontSize:30.0),));@overrideWidgetbuild(BuildContextcontext){returnnewScaffold(appBar:newAppBar(title:newText("Using Alert Dialog"),),body:newContainer(child:newCenter(child:newRaisedButton(child:newText("Hit to alert!"),// On press of the buttononPressed:(){// Show dialogshowDialog(context:context,builder:(BuildContextcontext)=>dialog);}),),));}}
I'm thinking something like a designer customizing the UI in something like Sketch, and being able to access the content of that with code. And maybe even auto initializing objects from the designers visual editor.
Top comments (4)
Are you talking about something like Flutter? A UI completely expressed through the programming language?
This is an example:
which compiled does this:
taken from flutter-examples/using_alert_dialog
Hi Rhymes!
I'm thinking something like a designer customizing the UI in something like Sketch, and being able to access the content of that with code. And maybe even auto initializing objects from the designers visual editor.
I think that if Flutter becomes mainstream (or at least it takes hold on a bigger scale) a design tool around it will pop up.
Someone's thinking about this, see this AppBuilder and others are experimenting with reorganizing their designer-developer flow through it.
But I'm not a designer so I can't answer your question, I just wanted to ask if you knew about Flutter's potential for a tool like that.
Like Dreamweaver? A WYSIWYG web editor that produces code?
Many years ago you could export a Macromedia Fireworks project to Dreamweaver.
It was a strange concept you made a "slice" and said if the user clicks here do this or navigate here.
EDIT: a tutorial from 2006 adobepress.com/articles/article.as... 😯