You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			70 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			Dart
		
	
			
		
		
	
	
			70 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			Dart
		
	
import 'package:flutter/material.dart';
 | 
						|
 | 
						|
const MAX_SMALL_SCREEN = 660;
 | 
						|
const ONLY_NUMBERS = "[0-9]";
 | 
						|
const ONLY_LETTERS = "[a-zA-Z &'\"]";
 | 
						|
const ONLY_DATE = "[0-9/]";
 | 
						|
// const BASE_URL = 'https://ms.hmg.com/nscapi'; // UAT
 | 
						|
const BASE_URL = 'https://qline.hmg.com'; // LIVE
 | 
						|
const apiKey = 'EE17D21C7943485D9780223CCE55DCE5'; // UAT
 | 
						|
// const BASE_URL = 'http://10.200.204.11:2222/Services/Nurses.svc/REST';
 | 
						|
// const BASE_URL = 'https://hmgwebservices.com/';
 | 
						|
 | 
						|
/// Timer Info
 | 
						|
const TIMER_MIN = 10;
 | 
						|
 | 
						|
class AppGlobal {
 | 
						|
  static var CONTEX;
 | 
						|
 | 
						|
  // static Color appRedColor = const Color(0xFFD02127);
 | 
						|
  // static Color appGreenColor = const Color(0xFF359846);
 | 
						|
  static Color appTextColor = const Color(0xFF2B353E);
 | 
						|
  static Color appRssFeed = const Color(0x3A1E2326);
 | 
						|
 | 
						|
  //TextColors
 | 
						|
  static Color nebulizationColor = const Color(0xFF3C86D0);
 | 
						|
  static Color vitalSignColor = const Color(0xFFD02127);
 | 
						|
  static Color doctorColor = const Color(0xFF52964F);
 | 
						|
 | 
						|
  // static Color procedureColor = const Color(0xFFC99609);
 | 
						|
  static Color vaccinationColor = const Color(0xFFC99609);
 | 
						|
  static Color procedureColor = const Color(0xFF460707);
 | 
						|
 | 
						|
  //IconPaths
 | 
						|
  static String vitalSignIcon = "assets/images/vitalsign_icon.svg";
 | 
						|
  static String nebulizationIcon = "assets/images/nebulization_icon.svg";
 | 
						|
  static String doctorIcon = "assets/images/doctor_icon.svg";
 | 
						|
  static String procedureIcon = "assets/images/procedure_icon.svg";
 | 
						|
  static String vaccinationIcon = "assets/images/vaccination_icon.svg";
 | 
						|
 | 
						|
  //Widgets
 | 
						|
  static String mosqueIcon = "assets/icons/mosque.svg";
 | 
						|
  static String weatherIcon = "assets/icons/weather.svg";
 | 
						|
 | 
						|
  static String cloudIcon = "assets/icons/cloudy.svg";
 | 
						|
  static String coldIcon = "assets/icons/cold.svg";
 | 
						|
  static String hotIcon = "assets/icons/hot.svg";
 | 
						|
  static String rainIcon = "assets/icons/rainy.svg";
 | 
						|
  static String sunnyIcon = "assets/icons/sunny.svg";
 | 
						|
  static String windIcon = "assets/icons/windy.svg";
 | 
						|
 | 
						|
  //Decoration
 | 
						|
 | 
						|
  static BoxDecoration configWidgetDecoration = BoxDecoration(
 | 
						|
    color: Colors.white,
 | 
						|
    borderRadius: BorderRadius.circular(12),
 | 
						|
    boxShadow: [
 | 
						|
      BoxShadow(
 | 
						|
        color: Colors.grey.withOpacity(0.2),
 | 
						|
        blurRadius: 4,
 | 
						|
        offset: const Offset(4, 4), // Shadow position
 | 
						|
      ),
 | 
						|
      BoxShadow(
 | 
						|
        color: Colors.grey.withOpacity(0.2),
 | 
						|
        blurRadius: 4,
 | 
						|
        offset: const Offset(-4, -4), // Shadow position
 | 
						|
      ),
 | 
						|
    ],
 | 
						|
  );
 | 
						|
}
 |