add util/text_transformers.dart and use it for codes and labels