refactor: Fix typos in variable names

inex/april-refactor
Inex Code 2024-04-12 15:13:30 +03:00
parent c179a109fd
commit 81f4f93d7c
3 changed files with 7 additions and 7 deletions

View File

@ -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,

View File

@ -11,7 +11,7 @@ class Price {
enum CurrencyType { enum CurrencyType {
eur, eur,
usd, usd,
unkown, unknown,
} }
class Currency { class Currency {

View File

@ -112,7 +112,7 @@ class InitializingPage extends StatelessWidget {
'Server', 'Server',
'Installation', 'Installation',
], ],
activeIndex: cubit.state.porgressBar, activeIndex: cubit.state.progressBar,
), ),
), ),
), ),