Skip to content

Commit d1846a5

Browse files
committed
fix: set initial pslabVersionID to localized value in constructor
Per Sourcery review feedback, initialize pslabVersionID to appLocalizations.notConnected in the constructor so the default UI state is explicit and consistent with the localized value. Also applied Linux dart format style.
1 parent 2fd6f0c commit d1846a5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/providers/board_state_provider.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class BoardStateProvider extends ChangeNotifier {
2929
BoardStateProvider() {
3030
scienceLabCommon = getIt.get<ScienceLabCommon>();
3131
configProvider = SettingsConfigProvider();
32+
pslabVersionID = appLocalizations.notConnected;
3233
}
3334

3435
Future<void> initialize() async {
@@ -120,4 +121,4 @@ class BoardStateProvider extends ChangeNotifier {
120121
}
121122
return false;
122123
}
123-
}
124+
}

0 commit comments

Comments
 (0)