clragon / swan

bring elegance to your flutter discussions
https://discord.gg/rflutterdev
MIT License
3 stars 0 forks source link

swa uses child count for child/children instead of input text #1

Closed Luckey-Elijah closed 10 months ago

Luckey-Elijah commented 10 months ago

The command: .swa > Column > [ Row > [ Flexible(flex: 1), Flexible(flex: 4) ] ] will produce

Column(
  child: Row( // uses `child`
    children: [
      Flexible(flex: 1),
      Flexible(flex: 4),
    ],
  ),
);

and I expect the content of the Column to be with children, not child like this:

Column(
  children: [ // uses `children`
    Row(
      children: [ 
        Flexible(flex: 1),
        Flexible(flex: 4),
      ]
    ),
  ]
);
clragon commented 10 months ago

this will be fixed in the new release with the new parser, which explicitly checks what was given in the input.

clragon commented 10 months ago

this is now deployed