question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Insert a child: (or children: placeholder list) for Widgets on code completion

See original GitHub issue

From @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:closed
  • Created 7 years ago
  • Comments:23 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
HansMullercommented, May 5, 2017
1reaction
branflake2267commented, May 2, 2017

I can’t resist, that looks mighty nice! 😉

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found