add frontend and put backend in seperate folder
This commit is contained in:
22
frontend/lib/core/utils/colorful_tag.dart
Normal file
22
frontend/lib/core/utils/colorful_tag.dart
Normal file
@ -0,0 +1,22 @@
|
||||
import 'dart:ui';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
Color getRoleColor(String? role) {
|
||||
if (role == "Doctor") {
|
||||
return Colors.green;
|
||||
} else if (role == "Software Architect") {
|
||||
return Colors.red;
|
||||
} else if (role == "Software Engineer") {
|
||||
return Colors.blueAccent;
|
||||
} else if (role == "Solution Architect") {
|
||||
return Colors.amberAccent;
|
||||
} else if (role == "Project Manager") {
|
||||
return Colors.cyanAccent;
|
||||
} else if (role == "Business Analyst") {
|
||||
return Colors.deepPurpleAccent;
|
||||
} else if (role == "UI/UX Designer") {
|
||||
return Colors.indigoAccent;
|
||||
}
|
||||
return Colors.black38;
|
||||
}
|
Reference in New Issue
Block a user