From 81f4f93d7c26408df16773913d36fe6c1974038b Mon Sep 17 00:00:00 2001 From: Inex Code Date: Fri, 12 Apr 2024 15:13:30 +0300 Subject: [PATCH] refactor: Fix typos in variable names --- .../server_installation/server_installation_state.dart | 10 +++++----- lib/logic/models/price.dart | 2 +- lib/ui/pages/setup/initializing/initializing.dart | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/logic/cubit/server_installation/server_installation_state.dart b/lib/logic/cubit/server_installation/server_installation_state.dart index 3f3ea267..bf0981e2 100644 --- a/lib/logic/cubit/server_installation/server_installation_state.dart +++ b/lib/logic/cubit/server_installation/server_installation_state.dart @@ -49,11 +49,11 @@ abstract class ServerInstallationState extends Equatable { bool get isPrimaryUserFilled => rootUser != 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 - .values[_fulfilementList.where((final el) => el!).length]; + .values[_fulfillmentList.where((final el) => el!).length]; - int get porgressBar { + int get progressBar { if (progress.index < 6) { return progress.index; } else if (progress.index < 10) { @@ -63,7 +63,7 @@ abstract class ServerInstallationState extends Equatable { } } - List get _fulfilementList { + List get _fulfillmentList { final List res = [ isServerProviderApiKeyFilled, isServerTypeFilled, @@ -118,7 +118,7 @@ class TimerState extends ServerInstallationNotFinished { enum ServerSetupProgress { nothingYet, serverProviderFilled, - servertTypeFilled, + serverTypeFilled, dnsProviderFilled, backblazeFilled, domainFilled, diff --git a/lib/logic/models/price.dart b/lib/logic/models/price.dart index 494b1511..19b5d59a 100644 --- a/lib/logic/models/price.dart +++ b/lib/logic/models/price.dart @@ -11,7 +11,7 @@ class Price { enum CurrencyType { eur, usd, - unkown, + unknown, } class Currency { diff --git a/lib/ui/pages/setup/initializing/initializing.dart b/lib/ui/pages/setup/initializing/initializing.dart index 54b5cbe2..d102e8e6 100644 --- a/lib/ui/pages/setup/initializing/initializing.dart +++ b/lib/ui/pages/setup/initializing/initializing.dart @@ -112,7 +112,7 @@ class InitializingPage extends StatelessWidget { 'Server', 'Installation', ], - activeIndex: cubit.state.porgressBar, + activeIndex: cubit.state.progressBar, ), ), ),