Added the auto open applicatioun after reboot

dev_faiz
Faiz Hashmi 2 years ago
parent e44286a527
commit 9384853027

@ -3,7 +3,7 @@
package="com.example.queuing_system">
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<queries>

@ -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)),
),
],
),
),

@ -11,6 +11,8 @@ void main() {
//test commit
//TODO: WE NEED TO IMPLEMENT THE AVAILABILITY MONITORING OF THE SCREENS LIKE IF THEY ARE TURNED ON OR NOT!!
class MyApp extends StatelessWidget {
const MyApp({Key key}) : super(key: key);

Loading…
Cancel
Save