|
|
|
|
@ -17,6 +17,8 @@ import 'package:queuing_system/utils/utils.dart';
|
|
|
|
|
import 'package:queuing_system/widget/data_display/app_texts_widget.dart';
|
|
|
|
|
|
|
|
|
|
var DEVICE_IP = "10.10.15.11"; // Testing IP
|
|
|
|
|
|
|
|
|
|
String globalInterface = "";
|
|
|
|
|
// var DEVICE_IP = "10.10.14.11"; // Testing IP
|
|
|
|
|
// var DEVICE_IP = "10.10.15.11";
|
|
|
|
|
|
|
|
|
|
@ -47,6 +49,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
|
|
|
|
Future printIps() async {
|
|
|
|
|
for (var interface in await NetworkInterface.list(type: InternetAddressType.IPv4)) {
|
|
|
|
|
print("interfaces: ${interface.name}");
|
|
|
|
|
globalInterface = globalInterface + " ** " + interface.name;
|
|
|
|
|
|
|
|
|
|
if (interface.name == "eth0") {
|
|
|
|
|
for (var address in interface.addresses) {
|
|
|
|
|
@ -87,22 +90,27 @@ class _MyHomePageState extends State<MyHomePage> {
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
const SizedBox(width: 20),
|
|
|
|
|
AppText(
|
|
|
|
|
"Powered By",
|
|
|
|
|
fontSize: SizeConfig.getWidthMultiplier() * 2.6,
|
|
|
|
|
fontFamily: 'Poppins-Medium.ttf',
|
|
|
|
|
Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
"Powered By",
|
|
|
|
|
fontSize: SizeConfig.getWidthMultiplier() * 2.6,
|
|
|
|
|
fontFamily: 'Poppins-Medium.ttf',
|
|
|
|
|
),
|
|
|
|
|
Text(DEVICE_IP, style: TextStyle(fontWeight: FontWeight.w500, fontSize: SizeConfig.getWidthMultiplier() * 2.2)),
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(width: 20),
|
|
|
|
|
const SizedBox(width: 10),
|
|
|
|
|
Image.asset(
|
|
|
|
|
"assets/images/cloud_logo.png",
|
|
|
|
|
height: SizeConfig.getHeightMultiplier() * 4,
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(width: 10),
|
|
|
|
|
Text(globalInterface, style: TextStyle(fontWeight: FontWeight.w500, fontSize: SizeConfig.getWidthMultiplier() * 2.2)),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.only(right: 20),
|
|
|
|
|
child: Text(DEVICE_IP, style: TextStyle(fontWeight: FontWeight.w500, fontSize: SizeConfig.getWidthMultiplier() *2.6)),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|