KonectarApp/lib/contacts_module/constants.dart

62 lines
2.0 KiB
Dart
Raw Permalink Normal View History

2024-10-08 12:01:59 +00:00
import 'dart:ui';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
class Constants {
2024-12-19 05:21:33 +00:00
// static Color k2color = Color.fromARGB(255, 0, 71, 132);
// static Color k2color1 = Color.fromARGB(255, 0, 71, 132);
// static const Color profilecard = Color.fromARGB(255, 4, 104, 198);
// static const Color btmcard = Color.fromARGB(2255, 251, 242, 242);
2024-10-08 12:01:59 +00:00
2024-12-19 05:21:33 +00:00
// static Color cardtext = Colors.transparent;
2024-10-08 12:01:59 +00:00
2024-12-19 05:21:33 +00:00
// static Color cardtextdark = Colors.transparent;
2024-10-08 12:01:59 +00:00
2024-12-19 05:21:33 +00:00
// static const Color bgcolor = Color(0xFFF2F3F8);
// static const Color bgwhitecolor = Colors.white;
// static Color bgcolor2 = const Color.fromARGB(255, 0, 112, 184);
// static Color k2color11 = Colors.white;
2024-10-08 12:01:59 +00:00
static final Future<String> response =
rootBundle.loadString('assets/section.json');
2024-12-19 05:21:33 +00:00
// static const Color tabbgColor = Color.fromARGB(255, 0, 112, 184);
2024-10-08 12:01:59 +00:00
2024-12-19 05:21:33 +00:00
//static const url = "http://192.168.2.143:8000/api";
//static const url = "http://192.168.53.50:8000/api";
static const url = "http://192.168.2.170:8000/api";
2024-10-08 12:01:59 +00:00
// static const url = "http://192.168.21.50:8000/api";
//static const url = 'http://192.168.2.143:8085/api';http://127.0.0.1:8001
//static const url = 'http://192.168.153.50:8082/api';192.168.21.50:8000
static const k2url = "http://192.168.2.130:8888/api";
2024-12-19 05:21:33 +00:00
static const notes = "http://192.168.2.170:8001/api/all-routes";
// static const Map<String, int> apiIntervals1 = {
// k2url: 1, // Interval in minutes
// 'http://192.168.2.170:8001/api/all-routes': 2,
// };
static const Map<String, Map<String, dynamic>> apiIntervals1 = {
'api1': {
'url': 'http://192.168.2.170:8000/api/receive-data',
'intervals': 1,
'hivename': 'InteractionDataBox',
'hivetype': 'SaveInteraction'
},
'api2': {
'url': 'http://192.168.2.170:8000/api/receive-data',
'intervals': 2,
'hivename': 'notehive',
'hivetype': 'String'
},
};
static const get_api_list = "http://192.168.2.170:8002/api/all-routes";
2024-10-08 12:01:59 +00:00
}