Fix require_trailing_commas

This commit is contained in:
Hubert 2023-10-01 17:45:15 +02:00
parent c53ac484fa
commit 5c6eaa9fb9
23 changed files with 28 additions and 27 deletions

View file

@ -45,7 +45,7 @@ class Configuration {
final List<String> onlineSecureKeys = [
keyKey,
secretKeyKey,
authSecretKeyKey
authSecretKeyKey,
];
final kTempFolderDeletionTimeBuffer = const Duration(days: 1).inMicroseconds;

View file

@ -122,7 +122,7 @@ class _CredentialBuilder {
return headers
..addAll(
<String, String>{
'X-Sentry-Auth': '$_authHeader, sentry_timestamp=$timestamp'
'X-Sentry-Auth': '$_authHeader, sentry_timestamp=$timestamp',
},
);
}

View file

@ -24,7 +24,7 @@ Locale localResolutionCallBack(locales, supportedLocales) {
Locale? languageCodeMatch;
final Map<String, Locale> languageCodeToLocale = {
for (Locale supportedLocale in appSupportedLocales)
supportedLocale.languageCode: supportedLocale
supportedLocale.languageCode: supportedLocale,
};
for (Locale locale in locales) {

View file

@ -89,7 +89,7 @@ class ViewQrPage extends StatelessWidget {
child: Text(l10n.back),
),
),
)
),
],
),
),

View file

@ -403,7 +403,7 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
style: const TextStyle(
decoration: TextDecoration.underline,
),
)
),
},
),
),

View file

@ -204,14 +204,14 @@ class _LoginPageState extends State<LoginPage> {
style: const TextStyle(
decoration: TextDecoration.underline,
),
)
),
},
),
),
Expanded(
flex: 2,
child: Container(),
)
),
],
),
),

View file

@ -221,7 +221,7 @@ State<LoginPasswordVerificationPage> {
),
],
),
)
),
],
),
),

View file

@ -152,7 +152,7 @@ class _OTTVerificationPageState extends State<OTTVerificationPage> {
SizedBox(
width: MediaQuery.of(context).size.width * 0.2,
height: 1,
)
),
],
),
),
@ -203,7 +203,7 @@ class _OTTVerificationPageState extends State<OTTVerificationPage> {
decoration: TextDecoration.underline,
),
),
)
),
],
),
),

View file

@ -310,7 +310,7 @@ class _PasswordReentryPageState extends State<PasswordReentryPage> {
),
],
),
)
),
],
),
),

View file

@ -191,7 +191,7 @@ class _RecoveryKeyPageState extends State<RecoveryKeyPage> {
children: _saveOptions(context, recoveryKey),
),
),
)
),
],
), // columnEnds
),

View file

@ -196,7 +196,7 @@ class _VerifyRecoveryPageState extends State<VerifyRecoveryPage> {
),
),
),
const SizedBox(height: 20)
const SizedBox(height: 20),
],
),
),

View file

@ -30,7 +30,7 @@ class DynamicFAB extends StatelessWidget {
spreadRadius: 200,
blurRadius: 100,
offset: const Offset(0, 230),
)
),
],
),
width: double.infinity,

View file

@ -277,7 +277,7 @@ class _BodyState extends State<_Body> {
_direction == TextDirection.ltr ? loader : text,
const SizedBox(width: 8.0),
_direction == TextDirection.rtl ? loader : text,
const SizedBox(width: 8.0)
const SizedBox(width: 8.0),
],
),
],

View file

@ -308,7 +308,7 @@ class _ButtonChildWidgetState extends State<ButtonChildWidget> {
overflow: TextOverflow.ellipsis,
),
),
)
),
],
);
},

View file

@ -48,7 +48,7 @@ class CaptionedTextWidget extends StatelessWidget {
],
),
),
)
),
],
),
),

View file

@ -280,7 +280,7 @@ class _TextInputDialogState extends State<TextInputDialog> {
),
),
],
)
),
],
),
),

View file

@ -61,7 +61,7 @@ class TitleBarWidget extends StatelessWidget {
: Text(
caption!,
style: textTheme.mini.copyWith(color: colorTheme.textMuted),
)
),
],
),
),
@ -112,7 +112,7 @@ class TitleBarWidget extends StatelessWidget {
),
overflow: TextOverflow.ellipsis,
maxLines: 1,
)
),
],
),
),

View file

@ -56,7 +56,7 @@ class CoachMarkWidget extends StatelessWidget {
},
child: Text(l10n.ok),
),
)
),
],
),
],

View file

@ -46,7 +46,8 @@ class ScannerGoogleAuthPageState extends State<ScannerGoogleAuthPage> {
child: QRView(
key: qrKey,
overlay: QrScannerOverlayShape(
borderColor: getEnteColorScheme(context).primary700,),
borderColor: getEnteColorScheme(context).primary700,
),
onQRViewCreated: _onQRViewCreated,
formatsAllowed: const [BarcodeFormat.qrcode],
),
@ -56,7 +57,7 @@ class ScannerGoogleAuthPageState extends State<ScannerGoogleAuthPage> {
child: Center(
child: (totp != null) ? Text(totp!) : Text(l10n.scanACode),
),
)
),
],
),
);

View file

@ -51,7 +51,7 @@ class ScannerPageState extends State<ScannerPage> {
child: Center(
child: (totp != null) ? Text(totp!) : Text(l10n.scanACode),
),
)
),
],
),
);

View file

@ -95,7 +95,7 @@ class FaqWidget extends StatelessWidget {
),
),
),
)
),
],
),
);

View file

@ -27,7 +27,7 @@ late Set<String> iOSLowEndMachineCodes = <String>{
"iPhone10,2", // iPhone 8 Plus
"iPhone10,3", // iPhone X Global
"iPhone10,4", // iPhone 8
"iPhone10,5" // iPhone 8
"iPhone10,5", // iPhone 8
};
Future<bool> isLowSpecDevice() async {

View file

@ -277,7 +277,7 @@ void _showNoMailAppsDialog(BuildContext context, String toEmail) {
onPressed: () {
Navigator.pop(context);
},
)
),
],
);
},