62 lines
2.0 KiB
Dart
62 lines
2.0 KiB
Dart
import 'dart:ui';
|
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter/services.dart';
|
|
|
|
class Constants {
|
|
// 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);
|
|
|
|
// static Color cardtext = Colors.transparent;
|
|
|
|
// static Color cardtextdark = Colors.transparent;
|
|
|
|
// 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;
|
|
|
|
static final Future<String> response =
|
|
rootBundle.loadString('assets/section.json');
|
|
// static const Color tabbgColor = Color.fromARGB(255, 0, 112, 184);
|
|
|
|
//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";
|
|
|
|
// 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";
|
|
|
|
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";
|
|
}
|