Slider on tap javítva, helyesírási hiba javítva

This commit is contained in:
Vincze József 2025-03-12 08:15:08 +01:00
parent 5c818643db
commit 9795497bbe
4 changed files with 15 additions and 6 deletions

View File

@ -13,6 +13,8 @@ import 'package:expandable/expandable.dart';
import 'package:mobile_portal_23/classes/common_classes.dart'; import 'package:mobile_portal_23/classes/common_classes.dart';
late EmployeePageArguments employeePageArguments; late EmployeePageArguments employeePageArguments;
// ignore_for_file: avoid_print
String appDomain = "iotechnic.eu"; String appDomain = "iotechnic.eu";
//String appDomain = "192.168.0.144"; //String appDomain = "192.168.0.144";
GlobalKey _key = GlobalKey(); GlobalKey _key = GlobalKey();

View File

@ -83,7 +83,7 @@ class _workTimeDetailsState extends State<workTimeDetails> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
title: _isData ? Text(formatter.format(selectedDate)) : const Text("ss"), title: _isData ? Text(formatter.format(selectedDate)) : Text(formatter.format(selectedDate)),
elevation: 10.0, elevation: 10.0,
actions: <Widget>[ actions: <Widget>[
IconButton( IconButton(

View File

@ -741,7 +741,11 @@ class _MainPageState extends State<MainPage> with TickerProviderStateMixin{
print('turned ${(state) ? 'on' : 'off'}'); print('turned ${(state) ? 'on' : 'off'}');
} }
}, },
onDoubleTap: () {}, onDoubleTap: () {
_loginQR(currentQRcode.qrCode);
Navigator.pop(context);
},
onSwipe: () { onSwipe: () {
if (kDebugMode) { if (kDebugMode) {
print('Swiped!'); print('Swiped!');
@ -749,7 +753,10 @@ class _MainPageState extends State<MainPage> with TickerProviderStateMixin{
_loginQR(currentQRcode.qrCode); _loginQR(currentQRcode.qrCode);
Navigator.pop(context); Navigator.pop(context);
}, },
onTap: () {}, onTap: () {
_loginQR(currentQRcode.qrCode);
Navigator.pop(context);
},
), ),
/*ElevatedButton( /*ElevatedButton(
child: currentWorkState.compareTo('DOLGOZIK')==0 child: currentWorkState.compareTo('DOLGOZIK')==0
@ -987,7 +994,7 @@ class _MainPageState extends State<MainPage> with TickerProviderStateMixin{
if (!_isScanVisible) ...[ if (!_isScanVisible) ...[
TextButton( TextButton(
child: const Text( child: const Text(
"Várakozás heladatokra...", "Várakozás helyadatokra...",
style: TextStyle( style: TextStyle(
fontSize: 24.0, fontSize: 24.0,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,

View File

@ -1,4 +1,4 @@
import 'package:device_info_plus/device_info_plus.dart'; /*import 'package:device_info_plus/device_info_plus.dart';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
@ -180,4 +180,4 @@ class DeviceInfo{
'deviceId': data.deviceId, 'deviceId': data.deviceId,
}; };
} }
} }*/