Insert a child: (or children: placeholder list) for Widgets on code completion
See original GitHub issueFrom @HansMuller on February 19, 2016 0:18
It would be nice if adding an element that has List<Widget> children parameter automatically formatted the and selected the children boilerplate.
For example, you type:
new Flexible(
child: new Row
) // I'm imagining that this close paren was added per 'new Flexible'
and Atom adds the boilerplate:
new Flexible(
child: new Row(
children: <Widget>[
]
)
)
By automatically selecting the two lines begining with “children:” the developer can easily delete the boilerplate and substitute a list valued expression.
Copied from original issue: flutter/flutter#2018
Issue Analytics
- State:
- Created 7 years ago
- Comments:23 (19 by maintainers)
Top Results From Across the Web
Placeholder class - widgets library - Flutter - Dart API docs
This widget is useful during development to indicate that the interface is not yet complete. By default, the placeholder is sized to fit...
Read more >Insert the children display macro | Confluence Cloud
Use the Children Display macro to insert a list of a page's child pages, and their descendants. This is useful, for example, if...
Read more >Implementing auto-complete search list | Flutter Community
We'll add autocomplete textfield related code step by step: ... new Column(children: <Widget>[ //AutoCompleteTextField code here ]) ...
Read more >First steps with Flutter - Part 2: Building layouts - Pusher
But in Flutter, if you want add some extra space around a widget, then you wrap it in a ... Just pass in...
Read more >Parent, child and sibling relationships – Figma Help Center
If a parent contains more than one object, the child objects are siblings. Objects — like Frames, Groups and Components — can be...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That (https://github.com/flutter/flutter-intellij/issues/463#issuecomment-298737723) looks pretty slick. Less typing is more!
I can’t resist, that looks mighty nice! 😉