Skip to content

Commit

Permalink
bugfixing version uat and prod
Browse files Browse the repository at this point in the history
  • Loading branch information
jacopocarlini committed Mar 3, 2024
1 parent 01b4e21 commit b336c6c
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions lib/components/info_cell.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,23 @@ class InfoCell extends StatelessWidget {
return BlocBuilder<AppCubit, AppState>(
builder: (BuildContext context, state) {
late List<Widget> children;
String? version = state.devVersion[project['product']];
String? version;
if (env == 'DEV') {
version = state.devVersion[project['product']];
}
if (env == 'UAT') {
version = state.uatVersion[project['product']];
}
if (env == 'PROD') {
version = state.prodVersion[project['product']];
}
if (version != null) {
if (version != 'ERROR') {
children = buildOk(version, state);
if (version.contains('.')) {
children = buildOk(version, state);
} else {
children = buildWarning(version);
}
} else {
children = buildError(version);
}
Expand Down

0 comments on commit b336c6c

Please sign in to comment.