getSubtitleText method

Widget? getSubtitleText(
  1. VerificationLevel level
)

Implementation

Widget? getSubtitleText(VerificationLevel level) {
  if(mate.id.isEmpty) {
    return Text(AppTranslationConstants.profileNotFound.tr, style: TextStyle(color: Colors.red));
  } else {
    switch (level) {
      case VerificationLevel.artist:
      case VerificationLevel.ambassador:
        return Text(CommonTranslationConstants.testPeriod.tr, style: TextStyle(color: Colors.orange));
      case VerificationLevel.professional:
      case VerificationLevel.premium:
      case VerificationLevel.platinum:
        return Text(AppTranslationConstants.appMember.tr, style: TextStyle(color: Colors.lightBlueAccent));
      default:
        return Text(CommonTranslationConstants.testPeriod.tr, style: TextStyle(color: Colors.orange));
    }

  }
}