mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-24 01:36:38 +00:00
refactor(ui): Rename providers_page_card.dart
This commit is contained in:
parent
4b3a6685f6
commit
356f094f53
|
@ -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,
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue