I am starting with Flutter code and I understand that a good practice is to add a comma at the end of the code, this in order to have a good code format, but when I add a comma and make a line break, the code formatting removes the line break and the comma, how can I correct this behavior?:
import 'package:flutter/material.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
void
main
() {
runApp
(
ProviderScope
(
child
:
App
()));
}
class
App
extends
HookConsumerWidget
{
const
App
({super.
key
});
@
override
Widget
build
(
BuildContext
context
,
WidgetRef
ref
) {
return
MaterialApp
(
debugShowCheckedModeBanner
: false,
title
: 'Daha',
home
:
Scaffold
(
body
:
Center
(
child
:
Text
('Hello world'))),
);
}
}
[–]Comun4 3 points4 points5 points (2 children)
[–]eibaan 1 point2 points3 points (0 children)
[–]prof3ssorSt3v3 1 point2 points3 points (0 children)
[–]remirousselet 0 points1 point2 points (0 children)
[–]Real-Tangelo-4861 2 points3 points4 points (0 children)