refactor(ui): Rename providers_page_card.dart

This commit is contained in:
Inex Code 2024-11-11 04:10:55 +03:00
parent 4b3a6685f6
commit 356f094f53
2 changed files with 6 additions and 6 deletions

View file

@ -3,8 +3,8 @@ import 'package:gap/gap.dart';
import 'package:selfprivacy/logic/models/state_types.dart'; import 'package:selfprivacy/logic/models/state_types.dart';
import 'package:selfprivacy/ui/atoms/masks/icon_status_mask.dart'; import 'package:selfprivacy/ui/atoms/masks/icon_status_mask.dart';
class ProviderScreenCard extends StatelessWidget { class ProvidersPageCard extends StatelessWidget {
const ProviderScreenCard({ const ProvidersPageCard({
required this.state, required this.state,
required this.icon, required this.icon,
required this.title, required this.title,

View file

@ -10,7 +10,7 @@ import 'package:selfprivacy/logic/cubit/server_installation/server_installation_
import 'package:selfprivacy/logic/models/state_types.dart'; import 'package:selfprivacy/logic/models/state_types.dart';
import 'package:selfprivacy/ui/atoms/icons/brand_icons.dart'; import 'package:selfprivacy/ui/atoms/icons/brand_icons.dart';
import 'package:selfprivacy/ui/molecules/cards/not_ready_card.dart'; import 'package:selfprivacy/ui/molecules/cards/not_ready_card.dart';
import 'package:selfprivacy/ui/molecules/cards/provider_screen_card.dart'; import 'package:selfprivacy/ui/molecules/cards/providers_page_card.dart';
import 'package:selfprivacy/ui/molecules/cards/server_outdated_card.dart'; import 'package:selfprivacy/ui/molecules/cards/server_outdated_card.dart';
import 'package:selfprivacy/ui/organisms/headers/brand_header.dart'; import 'package:selfprivacy/ui/organisms/headers/brand_header.dart';
import 'package:selfprivacy/ui/router/router.dart'; import 'package:selfprivacy/ui/router/router.dart';
@ -89,7 +89,7 @@ class _ProvidersPageState extends State<ProvidersPage> {
), ),
const SizedBox(height: 16), const SizedBox(height: 16),
], ],
ProviderScreenCard( ProvidersPageCard(
state: getServerStatus(), state: getServerStatus(),
icon: BrandIcons.server, icon: BrandIcons.server,
title: 'server.card_title'.tr(), title: 'server.card_title'.tr(),
@ -101,7 +101,7 @@ class _ProvidersPageState extends State<ProvidersPage> {
: null, : null,
), ),
const SizedBox(height: 16), const SizedBox(height: 16),
ProviderScreenCard( ProvidersPageCard(
state: getDnsStatus(), state: getDnsStatus(),
icon: BrandIcons.globe, icon: BrandIcons.globe,
title: 'domain.screen_title'.tr(), title: 'domain.screen_title'.tr(),
@ -113,7 +113,7 @@ class _ProvidersPageState extends State<ProvidersPage> {
: null, : null,
), ),
const SizedBox(height: 16), const SizedBox(height: 16),
ProviderScreenCard( ProvidersPageCard(
state: isBackupInitialized state: isBackupInitialized
? StateType.stable ? StateType.stable
: StateType.uninitialized, : StateType.uninitialized,