chore: Merge linter into master

Reviewed-on: https://git.selfprivacy.org/kherel/selfprivacy.org.app/pulls/143
Reviewed-by: Inex Code <inex.code@selfprivacy.org>
This commit is contained in:
NaiJi ✨ 2022-10-26 19:34:42 +03:00
commit c4e470583c
90 changed files with 191 additions and 206 deletions

View file

@ -16,7 +16,7 @@ import 'package:selfprivacy/logic/cubit/users/users_cubit.dart';
import 'package:selfprivacy/logic/cubit/provider_volumes/provider_volume_cubit.dart'; import 'package:selfprivacy/logic/cubit/provider_volumes/provider_volume_cubit.dart';
class BlocAndProviderConfig extends StatelessWidget { class BlocAndProviderConfig extends StatelessWidget {
const BlocAndProviderConfig({final super.key, this.child}); const BlocAndProviderConfig({super.key, this.child});
final Widget? child; final Widget? child;

View file

@ -4,16 +4,4 @@ import 'package:flutter_bloc/flutter_bloc.dart';
class SimpleBlocObserver extends BlocObserver { class SimpleBlocObserver extends BlocObserver {
SimpleBlocObserver(); SimpleBlocObserver();
@override
void onError(
final BlocBase<dynamic> bloc,
final Object error,
final StackTrace stackTrace,
) {
// getIt<NavigationService>().showSnackBar(
// 'Bloc error: ${error.toString()}',
// );
super.onError(bloc, error, stackTrace);
}
} }

View file

@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
class Localization extends StatelessWidget { class Localization extends StatelessWidget {
const Localization({ const Localization({
final super.key, super.key,
this.child, this.child,
}); });

View file

@ -35,9 +35,9 @@ class GenericMutationResult {
class GenericJobMutationReturn extends GenericMutationResult { class GenericJobMutationReturn extends GenericMutationResult {
GenericJobMutationReturn({ GenericJobMutationReturn({
required final super.success, required super.success,
required final super.code, required super.code,
final super.message, super.message,
this.job, this.job,
}); });
final ServerJob? job; final ServerJob? job;

View file

@ -2,9 +2,9 @@ part of 'server.dart';
class UserMutationResult extends GenericMutationResult { class UserMutationResult extends GenericMutationResult {
UserMutationResult({ UserMutationResult({
required final super.success, required super.success,
required final super.code, required super.code,
final super.message, super.message,
this.user, this.user,
}); });

View file

@ -2,9 +2,9 @@ part of 'server.dart';
class MigrateToBindsMutationReturn extends GenericMutationResult { class MigrateToBindsMutationReturn extends GenericMutationResult {
MigrateToBindsMutationReturn({ MigrateToBindsMutationReturn({
required final super.success, required super.success,
required final super.code, required super.code,
final super.message, super.message,
this.jobUid, this.jobUid,
}); });
final String? jobUid; final String? jobUid;

View file

@ -3,9 +3,9 @@ import 'package:selfprivacy/logic/api_maps/rest_maps/provider_api_settings.dart'
class DnsProviderApiSettings extends ProviderApiSettings { class DnsProviderApiSettings extends ProviderApiSettings {
const DnsProviderApiSettings({ const DnsProviderApiSettings({
final super.hasLogger = false, super.hasLogger = false,
final super.isWithToken = true, super.isWithToken = true,
final this.customToken, this.customToken,
}); });
final String? customToken; final String? customToken;
} }

View file

@ -5,7 +5,6 @@ import 'dart:io';
import 'package:dio/dio.dart'; import 'package:dio/dio.dart';
import 'package:selfprivacy/config/get_it_config.dart'; import 'package:selfprivacy/config/get_it_config.dart';
import 'package:selfprivacy/logic/api_maps/rest_maps/api_map.dart'; import 'package:selfprivacy/logic/api_maps/rest_maps/api_map.dart';
import 'package:selfprivacy/logic/common_enum/common_enum.dart';
import 'package:selfprivacy/logic/models/hive/backblaze_bucket.dart'; import 'package:selfprivacy/logic/models/hive/backblaze_bucket.dart';
import 'package:selfprivacy/logic/models/hive/server_domain.dart'; import 'package:selfprivacy/logic/models/hive/server_domain.dart';
import 'package:selfprivacy/logic/models/hive/user.dart'; import 'package:selfprivacy/logic/models/hive/user.dart';

View file

@ -13,7 +13,7 @@ import 'package:selfprivacy/logic/models/server_basic_info.dart';
import 'package:selfprivacy/utils/password_generator.dart'; import 'package:selfprivacy/utils/password_generator.dart';
class HetznerApi extends ServerProviderApi with VolumeProviderApi { class HetznerApi extends ServerProviderApi with VolumeProviderApi {
HetznerApi({final this.hasLogger = false, final this.isWithToken = true}); HetznerApi({this.hasLogger = false, this.isWithToken = true});
@override @override
bool hasLogger; bool hasLogger;
@override @override

View file

@ -11,7 +11,7 @@ class UserFormCubit extends FormCubit {
UserFormCubit({ UserFormCubit({
required this.jobsCubit, required this.jobsCubit,
required final FieldCubitFactory fieldFactory, required final FieldCubitFactory fieldFactory,
final this.initialUser, this.initialUser,
}) { }) {
if (initialUser == null) { if (initialUser == null) {
login = fieldFactory.createUserLoginField(); login = fieldFactory.createUserLoginField();

View file

@ -76,7 +76,7 @@ abstract class ServerInstallationState extends Equatable {
class TimerState extends ServerInstallationNotFinished { class TimerState extends ServerInstallationNotFinished {
TimerState({ TimerState({
required this.dataState, required this.dataState,
required final super.isLoading, required super.isLoading,
this.timerStart, this.timerStart,
this.duration, this.duration,
}) : super( }) : super(
@ -119,17 +119,17 @@ enum ServerSetupProgress {
class ServerInstallationNotFinished extends ServerInstallationState { class ServerInstallationNotFinished extends ServerInstallationState {
const ServerInstallationNotFinished({ const ServerInstallationNotFinished({
required final super.isServerStarted, required super.isServerStarted,
required final super.isServerResetedFirstTime, required super.isServerResetedFirstTime,
required final super.isServerResetedSecondTime, required super.isServerResetedSecondTime,
required final this.isLoading, required this.isLoading,
required this.dnsMatches, required this.dnsMatches,
final super.providerApiToken, super.providerApiToken,
final super.cloudFlareKey, super.cloudFlareKey,
final super.backblazeCredential, super.backblazeCredential,
final super.serverDomain, super.serverDomain,
final super.rootUser, super.rootUser,
final super.serverDetails, super.serverDetails,
}); });
final bool isLoading; final bool isLoading;
final Map<String, bool>? dnsMatches; final Map<String, bool>? dnsMatches;
@ -209,15 +209,15 @@ class ServerInstallationEmpty extends ServerInstallationNotFinished {
class ServerInstallationFinished extends ServerInstallationState { class ServerInstallationFinished extends ServerInstallationState {
const ServerInstallationFinished({ const ServerInstallationFinished({
required final String super.providerApiToken, required String super.providerApiToken,
required final String super.cloudFlareKey, required String super.cloudFlareKey,
required final BackblazeCredential super.backblazeCredential, required BackblazeCredential super.backblazeCredential,
required final ServerDomain super.serverDomain, required ServerDomain super.serverDomain,
required final User super.rootUser, required User super.rootUser,
required final ServerHostingDetails super.serverDetails, required ServerHostingDetails super.serverDetails,
required final super.isServerStarted, required super.isServerStarted,
required final super.isServerResetedFirstTime, required super.isServerResetedFirstTime,
required final super.isServerResetedSecondTime, required super.isServerResetedSecondTime,
}); });
@override @override
@ -260,12 +260,12 @@ class ServerInstallationRecovery extends ServerInstallationState {
const ServerInstallationRecovery({ const ServerInstallationRecovery({
required this.currentStep, required this.currentStep,
required this.recoveryCapabilities, required this.recoveryCapabilities,
final super.providerApiToken, super.providerApiToken,
final super.cloudFlareKey, super.cloudFlareKey,
final super.backblazeCredential, super.backblazeCredential,
final super.serverDomain, super.serverDomain,
final super.rootUser, super.rootUser,
final super.serverDetails, super.serverDetails,
}) : super( }) : super(
isServerStarted: true, isServerStarted: true,
isServerResetedFirstTime: true, isServerResetedFirstTime: true,

View file

@ -1,7 +1,7 @@
import 'package:easy_localization/easy_localization.dart'; import 'package:easy_localization/easy_localization.dart';
class DiskSize { class DiskSize {
const DiskSize({final this.byte = 0}); const DiskSize({this.byte = 0});
DiskSize.fromKibibyte(final double kibibyte) DiskSize.fromKibibyte(final double kibibyte)
: this(byte: (kibibyte * 1024).round()); : this(byte: (kibibyte * 1024).round());

View file

@ -14,11 +14,11 @@ class ServerJob {
required this.uid, required this.uid,
required this.updatedAt, required this.updatedAt,
required this.createdAt, required this.createdAt,
final this.error, this.error,
final this.progress, this.progress,
final this.result, this.result,
final this.statusText, this.statusText,
final this.finishedAt, this.finishedAt,
}); });
ServerJob.fromGraphQL(final Query$GetApiJobs$jobs$getJobs serverJob) ServerJob.fromGraphQL(final Query$GetApiJobs$jobs$getJobs serverJob)

View file

@ -32,12 +32,12 @@ class ServerBasicInfoWithValidators extends ServerBasicInfo {
); );
ServerBasicInfoWithValidators({ ServerBasicInfoWithValidators({
required final super.id, required super.id,
required final super.name, required super.name,
required final super.reverseDns, required super.reverseDns,
required final super.ip, required super.ip,
required final super.created, required super.created,
required final super.volumeId, required super.volumeId,
required this.isIpValid, required this.isIpValid,
required this.isReverseDnsValid, required this.isReverseDnsValid,
}); });

View file

@ -7,6 +7,27 @@ import 'package:selfprivacy/logic/models/disk_size.dart';
import 'package:selfprivacy/logic/models/json/dns_records.dart'; import 'package:selfprivacy/logic/models/json/dns_records.dart';
class Service { class Service {
Service.fromGraphQL(final Query$AllServices$services$allServices service)
: this(
id: service.id,
displayName: service.displayName,
description: service.description,
isEnabled: service.isEnabled,
isRequired: service.isRequired,
isMovable: service.isMovable,
status: ServiceStatus.fromGraphQL(service.status),
storageUsage: ServiceStorageUsage(
used: DiskSize(byte: int.parse(service.storageUsage.usedSpace)),
volume: service.storageUsage.volume?.name,
),
// Decode the base64 encoded svg icon to text.
svgIcon: utf8.decode(base64.decode(service.svgIcon)),
dnsRecords: service.dnsRecords
?.map((final record) => DnsRecord.fromGraphQL(record))
.toList() ??
[],
url: service.url,
);
Service({ Service({
required this.id, required this.id,
required this.displayName, required this.displayName,
@ -40,28 +61,6 @@ class Service {
return ''; return '';
} }
Service.fromGraphQL(final Query$AllServices$services$allServices service)
: this(
id: service.id,
displayName: service.displayName,
description: service.description,
isEnabled: service.isEnabled,
isRequired: service.isRequired,
isMovable: service.isMovable,
status: ServiceStatus.fromGraphQL(service.status),
storageUsage: ServiceStorageUsage(
used: DiskSize(byte: int.parse(service.storageUsage.usedSpace)),
volume: service.storageUsage.volume?.name,
),
// Decode the base64 encoded svg icon to text.
svgIcon: utf8.decode(base64.decode(service.svgIcon)),
dnsRecords: service.dnsRecords
?.map((final record) => DnsRecord.fromGraphQL(record))
.toList() ??
[],
url: service.url,
);
static Service empty = Service( static Service empty = Service(
id: 'empty', id: 'empty',
displayName: '', displayName: '',

View file

@ -60,7 +60,7 @@ class MyApp extends StatelessWidget {
const MyApp({ const MyApp({
required this.lightThemeData, required this.lightThemeData,
required this.darkThemeData, required this.darkThemeData,
final super.key, super.key,
}); });
final ThemeData lightThemeData; final ThemeData lightThemeData;

View file

@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
class ActionButton extends StatelessWidget { class ActionButton extends StatelessWidget {
const ActionButton({ const ActionButton({
final super.key, super.key,
this.text, this.text,
this.onPressed, this.onPressed,
this.isRed = false, this.isRed = false,

View file

@ -2,10 +2,10 @@ import 'package:flutter/material.dart';
class BrandAlert extends AlertDialog { class BrandAlert extends AlertDialog {
BrandAlert({ BrandAlert({
final super.key, super.key,
final String? title, final String? title,
final String? contentText, final String? contentText,
final super.actions, super.actions,
}) : super( }) : super(
title: title != null ? Text(title) : null, title: title != null ? Text(title) : null,
content: title != null ? Text(contentText!) : null, content: title != null ? Text(contentText!) : null,

View file

@ -4,7 +4,7 @@ import 'package:selfprivacy/config/brand_colors.dart';
class BrandBottomSheet extends StatelessWidget { class BrandBottomSheet extends StatelessWidget {
const BrandBottomSheet({ const BrandBottomSheet({
required this.child, required this.child,
final super.key, super.key,
this.isExpended = false, this.isExpended = false,
}); });

View file

@ -56,7 +56,7 @@ class BrandButton {
class IconTextButton extends StatelessWidget { class IconTextButton extends StatelessWidget {
const IconTextButton({ const IconTextButton({
final super.key, super.key,
this.onPressed, this.onPressed,
this.title, this.title,
this.icon, this.icon,

View file

@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
class FilledButton extends StatelessWidget { class FilledButton extends StatelessWidget {
const FilledButton({ const FilledButton({
final super.key, super.key,
this.onPressed, this.onPressed,
this.title, this.title,
this.child, this.child,
@ -17,13 +17,13 @@ class FilledButton extends StatelessWidget {
@override @override
Widget build(final BuildContext context) { Widget build(final BuildContext context) {
final ButtonStyle enabledStyle = ElevatedButton.styleFrom( final ButtonStyle enabledStyle = ElevatedButton.styleFrom(
onPrimary: Theme.of(context).colorScheme.onPrimary, foregroundColor: Theme.of(context).colorScheme.onPrimary,
primary: Theme.of(context).colorScheme.primary, backgroundColor: Theme.of(context).colorScheme.primary,
).copyWith(elevation: ButtonStyleButton.allOrNull(0.0)); ).copyWith(elevation: ButtonStyleButton.allOrNull(0.0));
final ButtonStyle disabledStyle = ElevatedButton.styleFrom( final ButtonStyle disabledStyle = ElevatedButton.styleFrom(
onPrimary: Theme.of(context).colorScheme.onSurface.withAlpha(30), foregroundColor: Theme.of(context).colorScheme.onSurface.withAlpha(30),
primary: Theme.of(context).colorScheme.onSurface.withAlpha(98), backgroundColor: Theme.of(context).colorScheme.onSurface.withAlpha(98),
).copyWith(elevation: ButtonStyleButton.allOrNull(0.0)); ).copyWith(elevation: ButtonStyleButton.allOrNull(0.0));
return ConstrainedBox( return ConstrainedBox(

View file

@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
class BrandOutlinedButton extends StatelessWidget { class BrandOutlinedButton extends StatelessWidget {
const BrandOutlinedButton({ const BrandOutlinedButton({
final super.key, super.key,
this.onPressed, this.onPressed,
this.title, this.title,
this.child, this.child,

View file

@ -5,7 +5,7 @@ class SegmentedButtons extends StatelessWidget {
required this.isSelected, required this.isSelected,
required this.onPressed, required this.onPressed,
required this.titles, required this.titles,
final super.key, super.key,
}); });
final List<bool> isSelected; final List<bool> isSelected;

View file

@ -7,7 +7,7 @@ class FilledCard extends StatelessWidget {
this.tertiary = false, this.tertiary = false,
this.error = false, this.error = false,
this.clipped = true, this.clipped = true,
final super.key, super.key,
}); });
final Widget child; final Widget child;

View file

@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
class OutlinedCard extends StatelessWidget { class OutlinedCard extends StatelessWidget {
const OutlinedCard({ const OutlinedCard({
required this.child, required this.child,
final super.key, super.key,
}); });
final Widget child; final Widget child;

View file

@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
class BrandHeader extends StatelessWidget { class BrandHeader extends StatelessWidget {
const BrandHeader({ const BrandHeader({
final super.key, super.key,
this.title = '', this.title = '',
this.hasBackButton = false, this.hasBackButton = false,
this.onBackButtonPressed, this.onBackButtonPressed,

View file

@ -5,7 +5,7 @@ import 'package:selfprivacy/ui/helpers/widget_size.dart';
class BrandHeroScreen extends StatelessWidget { class BrandHeroScreen extends StatelessWidget {
const BrandHeroScreen({ const BrandHeroScreen({
required this.children, required this.children,
final super.key, super.key,
this.hasBackButton = true, this.hasBackButton = true,
this.hasFlashButton = true, this.hasFlashButton = true,
this.heroIcon, this.heroIcon,
@ -82,7 +82,7 @@ class HeroSliverAppBar extends StatefulWidget {
required this.hasBackButton, required this.hasBackButton,
required this.onBackButtonPressed, required this.onBackButtonPressed,
required this.heroIconWidget, required this.heroIconWidget,
final super.key, super.key,
}); });
final String heroTitle; final String heroTitle;

View file

@ -6,7 +6,7 @@ class BrandLinearIndicator extends StatelessWidget {
required this.color, required this.color,
required this.backgroundColor, required this.backgroundColor,
required this.height, required this.height,
final super.key, super.key,
}); });
final double value; final double value;

View file

@ -6,7 +6,7 @@ class BrandLoader {
} }
class HorizontalLoader extends StatelessWidget { class HorizontalLoader extends StatelessWidget {
const HorizontalLoader({final super.key}); const HorizontalLoader({super.key});
@override @override
Widget build(final BuildContext context) => Column( Widget build(final BuildContext context) => Column(

View file

@ -9,7 +9,7 @@ import 'package:url_launcher/url_launcher_string.dart';
class BrandMarkdown extends StatefulWidget { class BrandMarkdown extends StatefulWidget {
const BrandMarkdown({ const BrandMarkdown({
required this.fileName, required this.fileName,
final super.key, super.key,
}); });
final String fileName; final String fileName;

View file

@ -6,7 +6,7 @@ import 'package:selfprivacy/config/brand_colors.dart';
class BrandRadio extends StatelessWidget { class BrandRadio extends StatelessWidget {
const BrandRadio({ const BrandRadio({
required this.isChecked, required this.isChecked,
final super.key, super.key,
}); });
final bool isChecked; final bool isChecked;

View file

@ -4,7 +4,7 @@ class BrandSwitch extends StatelessWidget {
const BrandSwitch({ const BrandSwitch({
required this.onChanged, required this.onChanged,
required this.value, required this.value,
final super.key, super.key,
}); });
final ValueChanged<bool> onChanged; final ValueChanged<bool> onChanged;

View file

@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
import 'package:selfprivacy/ui/components/brand_icons/brand_icons.dart'; import 'package:selfprivacy/ui/components/brand_icons/brand_icons.dart';
class BrandTabBar extends StatefulWidget { class BrandTabBar extends StatefulWidget {
const BrandTabBar({final super.key, this.controller}); const BrandTabBar({super.key, this.controller});
final TabController? controller; final TabController? controller;
@override @override

View file

@ -147,7 +147,7 @@ class BrandText extends StatelessWidget {
const BrandText( const BrandText(
this.text, { this.text, {
required this.type, required this.type,
final super.key, super.key,
this.style, this.style,
this.overflow, this.overflow,
this.softWrap, this.softWrap,

View file

@ -9,7 +9,7 @@ class BrandTimer extends StatefulWidget {
const BrandTimer({ const BrandTimer({
required this.startDateTime, required this.startDateTime,
required this.duration, required this.duration,
final super.key, super.key,
}); });
final DateTime startDateTime; final DateTime startDateTime;

View file

@ -1,7 +1,7 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
class BrandError extends StatelessWidget { class BrandError extends StatelessWidget {
const BrandError({final super.key, this.error, this.stackTrace}); const BrandError({super.key, this.error, this.stackTrace});
final Object? error; final Object? error;
final StackTrace? stackTrace; final StackTrace? stackTrace;

View file

@ -6,7 +6,7 @@ class IconStatusMask extends StatelessWidget {
const IconStatusMask({ const IconStatusMask({
required this.icon, required this.icon,
required this.status, required this.status,
final super.key, super.key,
}); });
final Widget icon; final Widget icon;

View file

@ -4,7 +4,7 @@ class InfoBox extends StatelessWidget {
const InfoBox({ const InfoBox({
required this.text, required this.text,
this.isWarning = false, this.isWarning = false,
final super.key, super.key,
}); });
final String text; final String text;

View file

@ -16,7 +16,7 @@ import 'package:selfprivacy/ui/components/brand_text/brand_text.dart';
import 'package:selfprivacy/ui/components/jobs_content/server_job_card.dart'; import 'package:selfprivacy/ui/components/jobs_content/server_job_card.dart';
class JobsContent extends StatelessWidget { class JobsContent extends StatelessWidget {
const JobsContent({final super.key}); const JobsContent({super.key});
@override @override
Widget build(final BuildContext context) { Widget build(final BuildContext context) {
@ -89,7 +89,8 @@ class JobsContent extends StatelessWidget {
const SizedBox(width: 10), const SizedBox(width: 10),
ElevatedButton( ElevatedButton(
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
primary: Theme.of(context).colorScheme.errorContainer, backgroundColor:
Theme.of(context).colorScheme.errorContainer,
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10), borderRadius: BorderRadius.circular(10),
), ),

View file

@ -4,8 +4,8 @@ import 'package:selfprivacy/ui/components/brand_linear_indicator/brand_linear_in
class ServerJobCard extends StatelessWidget { class ServerJobCard extends StatelessWidget {
const ServerJobCard({ const ServerJobCard({
required final this.serverJob, required this.serverJob,
final super.key, super.key,
}); });
final ServerJob serverJob; final ServerJob serverJob;

View file

@ -7,7 +7,7 @@ class ListTileOnSurfaceVariant extends StatelessWidget {
this.leadingIcon, this.leadingIcon,
this.onTap, this.onTap,
this.disableSubtitleOverflow = false, this.disableSubtitleOverflow = false,
final super.key, super.key,
}); });
final String title; final String title;

View file

@ -6,7 +6,7 @@ import 'package:selfprivacy/utils/route_transitions/basic.dart';
import 'package:easy_localization/easy_localization.dart'; import 'package:easy_localization/easy_localization.dart';
class NotReadyCard extends StatelessWidget { class NotReadyCard extends StatelessWidget {
const NotReadyCard({final super.key}); const NotReadyCard({super.key});
@override @override
Widget build(final BuildContext context) => Container( Widget build(final BuildContext context) => Container(

View file

@ -7,7 +7,7 @@ import 'package:selfprivacy/ui/components/jobs_content/jobs_content.dart';
import 'package:selfprivacy/ui/helpers/modals.dart'; import 'package:selfprivacy/ui/helpers/modals.dart';
class BrandFab extends StatefulWidget { class BrandFab extends StatefulWidget {
const BrandFab({final super.key}); const BrandFab({super.key});
@override @override
State<BrandFab> createState() => _BrandFabState(); State<BrandFab> createState() => _BrandFabState();

View file

@ -8,7 +8,7 @@ class ProgressBar extends StatefulWidget {
const ProgressBar({ const ProgressBar({
required this.steps, required this.steps,
required this.activeIndex, required this.activeIndex,
final super.key, super.key,
}); });
final int activeIndex; final int activeIndex;

View file

@ -6,9 +6,9 @@ import 'package:selfprivacy/logic/models/disk_status.dart';
class ServerStorageListItem extends StatelessWidget { class ServerStorageListItem extends StatelessWidget {
const ServerStorageListItem({ const ServerStorageListItem({
required this.volume, required this.volume,
final this.showIcon = true, this.showIcon = true,
final this.dense = false, this.dense = false,
final super.key, super.key,
}); });
final DiskVolume volume; final DiskVolume volume;
@ -52,7 +52,7 @@ class ConsumptionListItem extends StatelessWidget {
this.rightSideText, this.rightSideText,
this.icon, this.icon,
this.dense = false, this.dense = false,
final super.key, super.key,
}); });
final String title; final String title;

View file

@ -9,7 +9,7 @@ class ServiceMigrationListItem extends StatelessWidget {
required this.diskStatus, required this.diskStatus,
required this.selectedVolume, required this.selectedVolume,
required this.onChange, required this.onChange,
final super.key, super.key,
}); });
final Service service; final Service service;
@ -54,7 +54,7 @@ class ServiceMigrationListItem extends StatelessWidget {
class ServiceConsumptionTitle extends StatelessWidget { class ServiceConsumptionTitle extends StatelessWidget {
const ServiceConsumptionTitle({ const ServiceConsumptionTitle({
required this.service, required this.service,
final super.key, super.key,
}); });
final Service service; final Service service;

View file

@ -8,7 +8,7 @@ class ServiceStorageConsumptionListItem extends StatelessWidget {
required this.storageConsumptionText, required this.storageConsumptionText,
required this.color, required this.color,
required this.icon, required this.icon,
final super.key, super.key,
}); });
final String title; final String title;

View file

@ -8,7 +8,7 @@ class SwitcherBlock extends StatelessWidget {
required this.child, required this.child,
required this.isActive, required this.isActive,
required this.onChange, required this.onChange,
final super.key, super.key,
}); });
final Widget child; final Widget child;

View file

@ -5,7 +5,7 @@ class WidgetSize extends StatefulWidget {
const WidgetSize({ const WidgetSize({
required this.onChange, required this.onChange,
required this.child, required this.child,
final super.key, super.key,
}); });
final Widget child; final Widget child;
final Function onChange; final Function onChange;
@ -27,12 +27,11 @@ class _WidgetSizeState extends State<WidgetSize> {
var widgetKey = GlobalKey(); var widgetKey = GlobalKey();
Size? oldSize; Size? oldSize;
void postFrameCallback(_) { void postFrameCallback(final _) {
final context = widgetKey.currentContext; final context = widgetKey.currentContext;
if (context == null) { if (context == null) {
return; return;
} }
;
final newSize = context.size; final newSize = context.size;
if (oldSize == newSize) { if (oldSize == newSize) {

View file

@ -16,7 +16,7 @@ import 'package:selfprivacy/ui/components/brand_text/brand_text.dart';
GlobalKey<NavigatorState> navigatorKey = GlobalKey<NavigatorState>(); GlobalKey<NavigatorState> navigatorKey = GlobalKey<NavigatorState>();
class BackupDetails extends StatefulWidget { class BackupDetails extends StatefulWidget {
const BackupDetails({final super.key}); const BackupDetails({super.key});
@override @override
State<BackupDetails> createState() => _BackupDetailsState(); State<BackupDetails> createState() => _BackupDetailsState();

View file

@ -11,7 +11,7 @@ import 'package:selfprivacy/ui/pages/devices/new_device.dart';
import 'package:selfprivacy/utils/route_transitions/basic.dart'; import 'package:selfprivacy/utils/route_transitions/basic.dart';
class DevicesScreen extends StatefulWidget { class DevicesScreen extends StatefulWidget {
const DevicesScreen({final super.key}); const DevicesScreen({super.key});
@override @override
State<DevicesScreen> createState() => _DevicesScreenState(); State<DevicesScreen> createState() => _DevicesScreenState();

View file

@ -7,7 +7,7 @@ import 'package:selfprivacy/ui/components/brand_button/filled_button.dart';
import 'package:selfprivacy/ui/components/brand_hero_screen/brand_hero_screen.dart'; import 'package:selfprivacy/ui/components/brand_hero_screen/brand_hero_screen.dart';
class NewDeviceScreen extends StatelessWidget { class NewDeviceScreen extends StatelessWidget {
const NewDeviceScreen({final super.key}); const NewDeviceScreen({super.key});
@override @override
Widget build(final BuildContext context) => BrandHeroScreen( Widget build(final BuildContext context) => BrandHeroScreen(

View file

@ -8,7 +8,7 @@ import 'package:selfprivacy/ui/components/brand_hero_screen/brand_hero_screen.da
import 'package:selfprivacy/ui/components/brand_icons/brand_icons.dart'; import 'package:selfprivacy/ui/components/brand_icons/brand_icons.dart';
class DnsDetailsPage extends StatefulWidget { class DnsDetailsPage extends StatefulWidget {
const DnsDetailsPage({final super.key}); const DnsDetailsPage({super.key});
@override @override
State<DnsDetailsPage> createState() => _DnsDetailsPageState(); State<DnsDetailsPage> createState() => _DnsDetailsPageState();

View file

@ -7,7 +7,7 @@ import 'package:package_info/package_info.dart';
import 'package:easy_localization/easy_localization.dart'; import 'package:easy_localization/easy_localization.dart';
class AboutApplicationPage extends StatelessWidget { class AboutApplicationPage extends StatelessWidget {
const AboutApplicationPage({final super.key}); const AboutApplicationPage({super.key});
@override @override
Widget build(final BuildContext context) => SafeArea( Widget build(final BuildContext context) => SafeArea(

View file

@ -5,7 +5,7 @@ import 'package:easy_localization/easy_localization.dart';
import 'package:selfprivacy/ui/components/brand_md/brand_md.dart'; import 'package:selfprivacy/ui/components/brand_md/brand_md.dart';
class AboutUsPage extends StatelessWidget { class AboutUsPage extends StatelessWidget {
const AboutUsPage({final super.key}); const AboutUsPage({super.key});
@override @override
Widget build(final BuildContext context) => SafeArea( Widget build(final BuildContext context) => SafeArea(

View file

@ -12,7 +12,7 @@ import 'package:selfprivacy/utils/named_font_weight.dart';
import 'package:easy_localization/easy_localization.dart'; import 'package:easy_localization/easy_localization.dart';
class AppSettingsPage extends StatefulWidget { class AppSettingsPage extends StatefulWidget {
const AppSettingsPage({final super.key}); const AppSettingsPage({super.key});
@override @override
State<AppSettingsPage> createState() => _AppSettingsPageState(); State<AppSettingsPage> createState() => _AppSettingsPageState();
@ -80,7 +80,7 @@ class _AppSettingsPageState extends State<AppSettingsPage> {
const SizedBox(width: 5), const SizedBox(width: 5),
ElevatedButton( ElevatedButton(
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
primary: BrandColors.red1, backgroundColor: BrandColors.red1,
), ),
child: Text( child: Text(
'basis.reset'.tr(), 'basis.reset'.tr(),
@ -145,7 +145,7 @@ class _AppSettingsPageState extends State<AppSettingsPage> {
const SizedBox(width: 5), const SizedBox(width: 5),
ElevatedButton( ElevatedButton(
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
primary: BrandColors.red1, backgroundColor: BrandColors.red1,
), ),
onPressed: isDisabled onPressed: isDisabled
? null ? null

View file

@ -8,7 +8,7 @@ import 'package:selfprivacy/logic/models/message.dart';
import 'package:selfprivacy/ui/components/brand_header/brand_header.dart'; import 'package:selfprivacy/ui/components/brand_header/brand_header.dart';
class Console extends StatefulWidget { class Console extends StatefulWidget {
const Console({final super.key}); const Console({super.key});
@override @override
State<Console> createState() => _ConsoleState(); State<Console> createState() => _ConsoleState();

View file

@ -23,7 +23,7 @@ import 'package:selfprivacy/ui/pages/more/console.dart';
import 'package:selfprivacy/ui/pages/more/about_application.dart'; import 'package:selfprivacy/ui/pages/more/about_application.dart';
class MorePage extends StatelessWidget { class MorePage extends StatelessWidget {
const MorePage({final super.key}); const MorePage({super.key});
@override @override
Widget build(final BuildContext context) { Widget build(final BuildContext context) {

View file

@ -6,7 +6,7 @@ import 'package:selfprivacy/utils/route_transitions/basic.dart';
import 'package:easy_localization/easy_localization.dart'; import 'package:easy_localization/easy_localization.dart';
class OnboardingPage extends StatefulWidget { class OnboardingPage extends StatefulWidget {
const OnboardingPage({required this.nextPage, final super.key}); const OnboardingPage({required this.nextPage, super.key});
final Widget nextPage; final Widget nextPage;
@override @override

View file

@ -18,7 +18,7 @@ import 'package:selfprivacy/utils/route_transitions/basic.dart';
GlobalKey<NavigatorState> navigatorKey = GlobalKey<NavigatorState>(); GlobalKey<NavigatorState> navigatorKey = GlobalKey<NavigatorState>();
class ProvidersPage extends StatefulWidget { class ProvidersPage extends StatefulWidget {
const ProvidersPage({final super.key}); const ProvidersPage({super.key});
@override @override
State<ProvidersPage> createState() => _ProvidersPageState(); State<ProvidersPage> createState() => _ProvidersPageState();
@ -119,11 +119,11 @@ class _ProvidersPageState extends State<ProvidersPage> {
class _Card extends StatelessWidget { class _Card extends StatelessWidget {
const _Card({ const _Card({
required final this.state, required this.state,
required final this.icon, required this.icon,
required final this.title, required this.title,
required final this.subtitle, required this.subtitle,
final this.onTap, this.onTap,
}); });
final Function()? onTap; final Function()? onTap;

View file

@ -14,7 +14,7 @@ import 'package:selfprivacy/ui/pages/recovery_key/recovery_key_receiving.dart';
import 'package:selfprivacy/utils/route_transitions/basic.dart'; import 'package:selfprivacy/utils/route_transitions/basic.dart';
class RecoveryKey extends StatefulWidget { class RecoveryKey extends StatefulWidget {
const RecoveryKey({final super.key}); const RecoveryKey({super.key});
@override @override
State<RecoveryKey> createState() => _RecoveryKeyState(); State<RecoveryKey> createState() => _RecoveryKeyState();
@ -61,7 +61,7 @@ class _RecoveryKeyState extends State<RecoveryKey> {
} }
class RecoveryKeyContent extends StatefulWidget { class RecoveryKeyContent extends StatefulWidget {
const RecoveryKeyContent({final super.key}); const RecoveryKeyContent({super.key});
@override @override
State<RecoveryKeyContent> createState() => _RecoveryKeyContentState(); State<RecoveryKeyContent> createState() => _RecoveryKeyContentState();
@ -107,7 +107,7 @@ class _RecoveryKeyContentState extends State<RecoveryKeyContent> {
} }
class RecoveryKeyStatusCard extends StatelessWidget { class RecoveryKeyStatusCard extends StatelessWidget {
const RecoveryKeyStatusCard({required this.isValid, final super.key}); const RecoveryKeyStatusCard({required this.isValid, super.key});
final bool isValid; final bool isValid;
@ -144,7 +144,7 @@ class RecoveryKeyStatusCard extends StatelessWidget {
} }
class RecoveryKeyInformation extends StatelessWidget { class RecoveryKeyInformation extends StatelessWidget {
const RecoveryKeyInformation({required this.state, final super.key}); const RecoveryKeyInformation({required this.state, super.key});
final RecoveryKeyState state; final RecoveryKeyState state;
@ -201,7 +201,7 @@ class RecoveryKeyInformation extends StatelessWidget {
} }
class RecoveryKeyConfiguration extends StatefulWidget { class RecoveryKeyConfiguration extends StatefulWidget {
const RecoveryKeyConfiguration({final super.key}); const RecoveryKeyConfiguration({super.key});
@override @override
State<StatefulWidget> createState() => _RecoveryKeyConfigurationState(); State<StatefulWidget> createState() => _RecoveryKeyConfigurationState();

View file

@ -5,7 +5,7 @@ import 'package:selfprivacy/ui/components/brand_hero_screen/brand_hero_screen.da
import 'package:selfprivacy/ui/components/info_box/info_box.dart'; import 'package:selfprivacy/ui/components/info_box/info_box.dart';
class RecoveryKeyReceiving extends StatelessWidget { class RecoveryKeyReceiving extends StatelessWidget {
const RecoveryKeyReceiving({required this.recoveryKey, final super.key}); const RecoveryKeyReceiving({required this.recoveryKey, super.key});
final String recoveryKey; final String recoveryKey;

View file

@ -9,7 +9,7 @@ import 'package:selfprivacy/ui/pages/users/users.dart';
import 'package:selfprivacy/ui/components/pre_styled_buttons/flash_fab.dart'; import 'package:selfprivacy/ui/components/pre_styled_buttons/flash_fab.dart';
class RootPage extends StatefulWidget { class RootPage extends StatefulWidget {
const RootPage({final super.key}); const RootPage({super.key});
@override @override
State<RootPage> createState() => _RootPageState(); State<RootPage> createState() => _RootPageState();

View file

@ -164,7 +164,7 @@ class Legend extends StatelessWidget {
const Legend({ const Legend({
required this.color, required this.color,
required this.text, required this.text,
final super.key, super.key,
}); });
final String text; final String text;

View file

@ -10,7 +10,7 @@ class CpuChart extends StatelessWidget {
required this.data, required this.data,
required this.period, required this.period,
required this.start, required this.start,
final super.key, super.key,
}); });
final List<TimeSeriesData> data; final List<TimeSeriesData> data;

View file

@ -13,7 +13,7 @@ class NetworkChart extends StatelessWidget {
required this.listData, required this.listData,
required this.period, required this.period,
required this.start, required this.start,
final super.key, super.key,
}); });
final List<List<TimeSeriesData>> listData; final List<List<TimeSeriesData>> listData;

View file

@ -34,7 +34,7 @@ part 'time_zone/time_zone.dart';
var navigatorKey = GlobalKey<NavigatorState>(); var navigatorKey = GlobalKey<NavigatorState>();
class ServerDetailsScreen extends StatefulWidget { class ServerDetailsScreen extends StatefulWidget {
const ServerDetailsScreen({final super.key}); const ServerDetailsScreen({super.key});
@override @override
State<ServerDetailsScreen> createState() => _ServerDetailsScreenState(); State<ServerDetailsScreen> createState() => _ServerDetailsScreenState();

View file

@ -7,7 +7,7 @@ final List<Location> locations = timeZoneDatabase.locations.values.toList()
); );
class SelectTimezone extends StatefulWidget { class SelectTimezone extends StatefulWidget {
const SelectTimezone({final super.key}); const SelectTimezone({super.key});
@override @override
State<SelectTimezone> createState() => _SelectTimezoneState(); State<SelectTimezone> createState() => _SelectTimezoneState();
@ -117,7 +117,9 @@ class _SelectTimezoneState extends State<SelectTimezone> {
); );
MapEntry<int, Container> locationToListTile( MapEntry<int, Container> locationToListTile(
final int key, final Location location) { final int key,
final Location location,
) {
final duration = Duration(milliseconds: location.currentTimeZone.offset); final duration = Duration(milliseconds: location.currentTimeZone.offset);
final area = location.currentTimeZone.abbreviation final area = location.currentTimeZone.abbreviation
.replaceAll(RegExp(r'[\d+()-]'), ''); .replaceAll(RegExp(r'[\d+()-]'), '');

View file

@ -9,9 +9,7 @@ import 'package:selfprivacy/ui/pages/root_route.dart';
import 'package:selfprivacy/utils/route_transitions/basic.dart'; import 'package:selfprivacy/utils/route_transitions/basic.dart';
class MigrationProcessPage extends StatefulWidget { class MigrationProcessPage extends StatefulWidget {
const MigrationProcessPage({ const MigrationProcessPage({super.key});
final super.key,
});
@override @override
State<MigrationProcessPage> createState() => _MigrationProcessPageState(); State<MigrationProcessPage> createState() => _MigrationProcessPageState();

View file

@ -21,7 +21,7 @@ class ServicesMigrationPage extends StatefulWidget {
required this.services, required this.services,
required this.diskStatus, required this.diskStatus,
required this.isMigration, required this.isMigration,
final super.key, super.key,
}); });
final DiskStatus diskStatus; final DiskStatus diskStatus;

View file

@ -14,7 +14,7 @@ class ExtendingVolumePage extends StatefulWidget {
const ExtendingVolumePage({ const ExtendingVolumePage({
required this.diskVolumeToResize, required this.diskVolumeToResize,
required this.diskStatus, required this.diskStatus,
final super.key, super.key,
}); });
final DiskVolume diskVolumeToResize; final DiskVolume diskVolumeToResize;

View file

@ -12,7 +12,10 @@ import 'package:selfprivacy/ui/components/storage_list_items/server_storage_list
import 'package:selfprivacy/utils/route_transitions/basic.dart'; import 'package:selfprivacy/utils/route_transitions/basic.dart';
class ServerStoragePage extends StatefulWidget { class ServerStoragePage extends StatefulWidget {
const ServerStoragePage({required this.diskStatus, final super.key}); const ServerStoragePage({
required this.diskStatus,
super.key,
});
final DiskStatus diskStatus; final DiskStatus diskStatus;
@ -75,7 +78,7 @@ class ServerStorageSection extends StatelessWidget {
required this.volume, required this.volume,
required this.diskStatus, required this.diskStatus,
required this.services, required this.services,
final super.key, super.key,
}); });
final DiskVolume volume; final DiskVolume volume;
@ -120,7 +123,7 @@ class ServerConsumptionListTile extends StatelessWidget {
const ServerConsumptionListTile({ const ServerConsumptionListTile({
required this.service, required this.service,
required this.volume, required this.volume,
final super.key, super.key,
}); });
final Service service; final Service service;

View file

@ -10,8 +10,8 @@ import 'package:selfprivacy/utils/route_transitions/basic.dart';
class StorageCard extends StatelessWidget { class StorageCard extends StatelessWidget {
const StorageCard({ const StorageCard({
required final this.diskStatus, required this.diskStatus,
final super.key, super.key,
}); });
final DiskStatus diskStatus; final DiskStatus diskStatus;

View file

@ -1,7 +1,6 @@
import 'package:easy_localization/easy_localization.dart'; import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart'; import 'package:flutter_svg/svg.dart';
import 'package:selfprivacy/logic/common_enum/common_enum.dart';
import 'package:selfprivacy/logic/cubit/client_jobs/client_jobs_cubit.dart'; import 'package:selfprivacy/logic/cubit/client_jobs/client_jobs_cubit.dart';
import 'package:selfprivacy/logic/cubit/server_volumes/server_volume_cubit.dart'; import 'package:selfprivacy/logic/cubit/server_volumes/server_volume_cubit.dart';
import 'package:selfprivacy/logic/cubit/services/services_cubit.dart'; import 'package:selfprivacy/logic/cubit/services/services_cubit.dart';
@ -14,7 +13,7 @@ import 'package:selfprivacy/utils/route_transitions/basic.dart';
import 'package:url_launcher/url_launcher.dart'; import 'package:url_launcher/url_launcher.dart';
class ServicePage extends StatefulWidget { class ServicePage extends StatefulWidget {
const ServicePage({required this.serviceId, final super.key}); const ServicePage({required this.serviceId, super.key});
final String serviceId; final String serviceId;
@ -147,7 +146,7 @@ class _ServicePageState extends State<ServicePage> {
class ServiceStatusCard extends StatelessWidget { class ServiceStatusCard extends StatelessWidget {
const ServiceStatusCard({ const ServiceStatusCard({
required this.status, required this.status,
final super.key, super.key,
}); });
final ServiceStatus status; final ServiceStatus status;

View file

@ -3,7 +3,6 @@ import 'dart:ui';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart'; import 'package:flutter_svg/flutter_svg.dart';
import 'package:selfprivacy/config/brand_theme.dart'; import 'package:selfprivacy/config/brand_theme.dart';
import 'package:selfprivacy/logic/common_enum/common_enum.dart';
import 'package:selfprivacy/logic/cubit/server_installation/server_installation_cubit.dart'; import 'package:selfprivacy/logic/cubit/server_installation/server_installation_cubit.dart';
import 'package:selfprivacy/logic/cubit/client_jobs/client_jobs_cubit.dart'; import 'package:selfprivacy/logic/cubit/client_jobs/client_jobs_cubit.dart';
import 'package:selfprivacy/logic/cubit/services/services_cubit.dart'; import 'package:selfprivacy/logic/cubit/services/services_cubit.dart';
@ -31,7 +30,7 @@ const switchableServices = [
]; ];
class ServicesPage extends StatefulWidget { class ServicesPage extends StatefulWidget {
const ServicesPage({final super.key}); const ServicesPage({super.key});
@override @override
State<ServicesPage> createState() => _ServicesPageState(); State<ServicesPage> createState() => _ServicesPageState();

View file

@ -21,9 +21,7 @@ import 'package:selfprivacy/ui/pages/setup/recovering/recovery_routing.dart';
import 'package:selfprivacy/utils/route_transitions/basic.dart'; import 'package:selfprivacy/utils/route_transitions/basic.dart';
class InitializingPage extends StatelessWidget { class InitializingPage extends StatelessWidget {
const InitializingPage({ const InitializingPage({super.key});
final super.key,
});
@override @override
Widget build(final BuildContext context) { Widget build(final BuildContext context) {

View file

@ -9,7 +9,7 @@ import 'package:selfprivacy/logic/cubit/server_installation/server_installation_
import 'package:selfprivacy/logic/cubit/forms/factories/field_cubit_factory.dart'; import 'package:selfprivacy/logic/cubit/forms/factories/field_cubit_factory.dart';
class RecoverByNewDeviceKeyInstruction extends StatelessWidget { class RecoverByNewDeviceKeyInstruction extends StatelessWidget {
const RecoverByNewDeviceKeyInstruction({final super.key}); const RecoverByNewDeviceKeyInstruction({super.key});
@override @override
Widget build(final BuildContext context) => BrandHeroScreen( Widget build(final BuildContext context) => BrandHeroScreen(
@ -30,7 +30,7 @@ class RecoverByNewDeviceKeyInstruction extends StatelessWidget {
} }
class RecoverByNewDeviceKeyInput extends StatelessWidget { class RecoverByNewDeviceKeyInput extends StatelessWidget {
const RecoverByNewDeviceKeyInput({final super.key}); const RecoverByNewDeviceKeyInput({super.key});
@override @override
Widget build(final BuildContext context) { Widget build(final BuildContext context) {

View file

@ -12,7 +12,7 @@ class RecoverByOldTokenInstruction extends StatelessWidget {
@override @override
const RecoverByOldTokenInstruction({ const RecoverByOldTokenInstruction({
required this.instructionFilename, required this.instructionFilename,
final super.key, super.key,
}); });
@override @override
@ -49,7 +49,7 @@ class RecoverByOldTokenInstruction extends StatelessWidget {
} }
class RecoverByOldToken extends StatelessWidget { class RecoverByOldToken extends StatelessWidget {
const RecoverByOldToken({final super.key}); const RecoverByOldToken({super.key});
@override @override
Widget build(final BuildContext context) { Widget build(final BuildContext context) {

View file

@ -8,7 +8,7 @@ import 'package:selfprivacy/ui/components/brand_button/filled_button.dart';
import 'package:selfprivacy/ui/components/brand_hero_screen/brand_hero_screen.dart'; import 'package:selfprivacy/ui/components/brand_hero_screen/brand_hero_screen.dart';
class RecoverByRecoveryKey extends StatelessWidget { class RecoverByRecoveryKey extends StatelessWidget {
const RecoverByRecoveryKey({final super.key}); const RecoverByRecoveryKey({super.key});
@override @override
Widget build(final BuildContext context) { Widget build(final BuildContext context) {

View file

@ -10,7 +10,7 @@ import 'package:selfprivacy/ui/components/brand_hero_screen/brand_hero_screen.da
import 'package:selfprivacy/ui/components/brand_md/brand_md.dart'; import 'package:selfprivacy/ui/components/brand_md/brand_md.dart';
class RecoveryConfirmBackblaze extends StatelessWidget { class RecoveryConfirmBackblaze extends StatelessWidget {
const RecoveryConfirmBackblaze({final super.key}); const RecoveryConfirmBackblaze({super.key});
@override @override
Widget build(final BuildContext context) { Widget build(final BuildContext context) {

View file

@ -10,7 +10,7 @@ import 'package:selfprivacy/ui/components/brand_hero_screen/brand_hero_screen.da
import 'package:selfprivacy/ui/components/brand_md/brand_md.dart'; import 'package:selfprivacy/ui/components/brand_md/brand_md.dart';
class RecoveryConfirmCloudflare extends StatelessWidget { class RecoveryConfirmCloudflare extends StatelessWidget {
const RecoveryConfirmCloudflare({final super.key}); const RecoveryConfirmCloudflare({super.key});
@override @override
Widget build(final BuildContext context) { Widget build(final BuildContext context) {

View file

@ -8,7 +8,7 @@ import 'package:selfprivacy/ui/components/brand_cards/filled_card.dart';
import 'package:selfprivacy/ui/components/brand_hero_screen/brand_hero_screen.dart'; import 'package:selfprivacy/ui/components/brand_hero_screen/brand_hero_screen.dart';
class RecoveryConfirmServer extends StatefulWidget { class RecoveryConfirmServer extends StatefulWidget {
const RecoveryConfirmServer({final super.key}); const RecoveryConfirmServer({super.key});
@override @override
State<RecoveryConfirmServer> createState() => _RecoveryConfirmServerState(); State<RecoveryConfirmServer> createState() => _RecoveryConfirmServerState();
@ -265,7 +265,7 @@ class IsValidStringDisplay extends StatelessWidget {
required this.isValid, required this.isValid,
required this.textIfValid, required this.textIfValid,
required this.textIfInvalid, required this.textIfInvalid,
final super.key, super.key,
}); });
final bool isValid; final bool isValid;

View file

@ -11,7 +11,7 @@ import 'package:selfprivacy/logic/cubit/server_installation/server_installation_
import 'package:selfprivacy/ui/components/brand_md/brand_md.dart'; import 'package:selfprivacy/ui/components/brand_md/brand_md.dart';
class RecoveryHetznerConnected extends StatelessWidget { class RecoveryHetznerConnected extends StatelessWidget {
const RecoveryHetznerConnected({final super.key}); const RecoveryHetznerConnected({super.key});
@override @override
Widget build(final BuildContext context) { Widget build(final BuildContext context) {

View file

@ -9,7 +9,7 @@ import 'package:selfprivacy/ui/pages/setup/recovering/recover_by_old_token.dart'
import 'package:selfprivacy/utils/route_transitions/basic.dart'; import 'package:selfprivacy/utils/route_transitions/basic.dart';
class RecoveryMethodSelect extends StatelessWidget { class RecoveryMethodSelect extends StatelessWidget {
const RecoveryMethodSelect({final super.key}); const RecoveryMethodSelect({super.key});
@override @override
Widget build(final BuildContext context) => BrandHeroScreen( Widget build(final BuildContext context) => BrandHeroScreen(
@ -56,7 +56,7 @@ class RecoveryMethodSelect extends StatelessWidget {
} }
class RecoveryFallbackMethodSelect extends StatelessWidget { class RecoveryFallbackMethodSelect extends StatelessWidget {
const RecoveryFallbackMethodSelect({final super.key}); const RecoveryFallbackMethodSelect({super.key});
@override @override
Widget build(final BuildContext context) => Widget build(final BuildContext context) =>

View file

@ -18,7 +18,7 @@ import 'package:selfprivacy/ui/pages/setup/recovering/recovery_method_select.dar
import 'package:selfprivacy/utils/route_transitions/basic.dart'; import 'package:selfprivacy/utils/route_transitions/basic.dart';
class RecoveryRouting extends StatelessWidget { class RecoveryRouting extends StatelessWidget {
const RecoveryRouting({final super.key}); const RecoveryRouting({super.key});
@override @override
Widget build(final BuildContext context) { Widget build(final BuildContext context) {
@ -77,7 +77,7 @@ class RecoveryRouting extends StatelessWidget {
} }
class SelectDomainToRecover extends StatelessWidget { class SelectDomainToRecover extends StatelessWidget {
const SelectDomainToRecover({final super.key}); const SelectDomainToRecover({super.key});
@override @override
Widget build(final BuildContext context) { Widget build(final BuildContext context) {

View file

@ -1,7 +1,7 @@
part of 'users.dart'; part of 'users.dart';
class AddUserFab extends StatelessWidget { class AddUserFab extends StatelessWidget {
const AddUserFab({final super.key}); const AddUserFab({super.key});
@override @override
Widget build(final BuildContext context) => FloatingActionButton.small( Widget build(final BuildContext context) => FloatingActionButton.small(

View file

@ -1,7 +1,7 @@
part of 'users.dart'; part of 'users.dart';
class NewUser extends StatelessWidget { class NewUser extends StatelessWidget {
const NewUser({final super.key}); const NewUser({super.key});
@override @override
Widget build(final BuildContext context) { Widget build(final BuildContext context) {

View file

@ -3,7 +3,7 @@ part of 'users.dart';
class ResetPassword extends StatelessWidget { class ResetPassword extends StatelessWidget {
const ResetPassword({ const ResetPassword({
required this.user, required this.user,
final super.key, super.key,
}); });
final User user; final User user;

View file

@ -3,7 +3,7 @@ part of 'users.dart';
class UserDetails extends StatelessWidget { class UserDetails extends StatelessWidget {
const UserDetails({ const UserDetails({
required this.login, required this.login,
final super.key, super.key,
}); });
final String login; final String login;
@ -249,7 +249,7 @@ class _SshKeysCard extends StatelessWidget {
} }
class NewSshKey extends StatelessWidget { class NewSshKey extends StatelessWidget {
const NewSshKey(this.user, {final super.key}); const NewSshKey(this.user, {super.key});
final User user; final User user;
@override @override

View file

@ -34,7 +34,7 @@ part 'add_user_fab.dart';
part 'reset_password.dart'; part 'reset_password.dart';
class UsersPage extends StatelessWidget { class UsersPage extends StatelessWidget {
const UsersPage({final super.key}); const UsersPage({super.key});
@override @override
Widget build(final BuildContext context) { Widget build(final BuildContext context) {