mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-02-02 14:16:58 +00:00
refactor: Fix typos in variable names
This commit is contained in:
parent
c179a109fd
commit
81f4f93d7c
|
@ -49,11 +49,11 @@ abstract class ServerInstallationState extends Equatable {
|
||||||
bool get isPrimaryUserFilled => rootUser != null;
|
bool get isPrimaryUserFilled => rootUser != null;
|
||||||
bool get isServerCreated => serverDetails != null;
|
bool get isServerCreated => serverDetails != null;
|
||||||
|
|
||||||
bool get isFullyInitilized => _fulfilementList.every((final el) => el!);
|
bool get isFullyInitialized => _fulfillmentList.every((final el) => el!);
|
||||||
ServerSetupProgress get progress => ServerSetupProgress
|
ServerSetupProgress get progress => ServerSetupProgress
|
||||||
.values[_fulfilementList.where((final el) => el!).length];
|
.values[_fulfillmentList.where((final el) => el!).length];
|
||||||
|
|
||||||
int get porgressBar {
|
int get progressBar {
|
||||||
if (progress.index < 6) {
|
if (progress.index < 6) {
|
||||||
return progress.index;
|
return progress.index;
|
||||||
} else if (progress.index < 10) {
|
} else if (progress.index < 10) {
|
||||||
|
@ -63,7 +63,7 @@ abstract class ServerInstallationState extends Equatable {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
List<bool?> get _fulfilementList {
|
List<bool?> get _fulfillmentList {
|
||||||
final List<bool> res = [
|
final List<bool> res = [
|
||||||
isServerProviderApiKeyFilled,
|
isServerProviderApiKeyFilled,
|
||||||
isServerTypeFilled,
|
isServerTypeFilled,
|
||||||
|
@ -118,7 +118,7 @@ class TimerState extends ServerInstallationNotFinished {
|
||||||
enum ServerSetupProgress {
|
enum ServerSetupProgress {
|
||||||
nothingYet,
|
nothingYet,
|
||||||
serverProviderFilled,
|
serverProviderFilled,
|
||||||
servertTypeFilled,
|
serverTypeFilled,
|
||||||
dnsProviderFilled,
|
dnsProviderFilled,
|
||||||
backblazeFilled,
|
backblazeFilled,
|
||||||
domainFilled,
|
domainFilled,
|
||||||
|
|
|
@ -11,7 +11,7 @@ class Price {
|
||||||
enum CurrencyType {
|
enum CurrencyType {
|
||||||
eur,
|
eur,
|
||||||
usd,
|
usd,
|
||||||
unkown,
|
unknown,
|
||||||
}
|
}
|
||||||
|
|
||||||
class Currency {
|
class Currency {
|
||||||
|
|
|
@ -112,7 +112,7 @@ class InitializingPage extends StatelessWidget {
|
||||||
'Server',
|
'Server',
|
||||||
'Installation',
|
'Installation',
|
||||||
],
|
],
|
||||||
activeIndex: cubit.state.porgressBar,
|
activeIndex: cubit.state.progressBar,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue