From b336c6caddd9e59940c55931acef77754a34b26f Mon Sep 17 00:00:00 2001 From: Jacopo Date: Sun, 3 Mar 2024 15:42:38 +0100 Subject: [PATCH] bugfixing version uat and prod --- lib/components/info_cell.dart | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/lib/components/info_cell.dart b/lib/components/info_cell.dart index ac4521f..88d41f6 100644 --- a/lib/components/info_cell.dart +++ b/lib/components/info_cell.dart @@ -20,10 +20,23 @@ class InfoCell extends StatelessWidget { return BlocBuilder( builder: (BuildContext context, state) { late List 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); }