nank1ro / solidart

Signals in Dart and Flutter, inspired by SolidJS
https://docs.page/nank1ro/solidart
MIT License
155 stars 5 forks source link

'Wrap with' assist does not apply indentation #50

Closed manuel-plavsic closed 1 year ago

manuel-plavsic commented 1 year ago

When using the assists, the indentation is not applied.

E.g., when selecting "Wrap with SignalBuilder" on some Widget (e.g. CupertinoListTile), i.e.:

            return CupertinoListTile(
// ...

instead of seeing:

            return SignalBuilder(
              signal: null,
              builder: (context, value, child) {
                return CupertinoListTile(
// ...

what is autocompleted is:

```dart
            return SignalBuilder(
signal: null,
builder: (context, value, child) {
return CupertinoListTile(
// ...
nank1ro commented 1 year ago

Yes I know, I think it's normal with custom lint. If you have dart format on file save, it will reindent your code.

nank1ro commented 1 year ago

Closing this for now, feel free to reopen if custom_lint has a way to take indentation into consideration.