Implemented settings, new scan, enhanced UI/UX

This commit is contained in:
Dennis Nemec
2025-11-04 16:52:39 +01:00
parent b19a6e1cd4
commit 7ea9108f62
79 changed files with 3306 additions and 566 deletions

View File

@ -0,0 +1,21 @@
import 'dart:convert';
import 'package:flutter/cupertino.dart';
import 'package:hl_lieferservice/feature/authentication/model/user.dart';
import 'package:http/http.dart';
class UserInfoService {
String url;
UserInfoService({ required this.url });
Future<User> getUserinfo(String sessionId) async {
var headers = {
"Cookie": "session_id=$sessionId"
};
var result = await get(Uri.parse("$url/userinfo"), headers: headers);
debugPrint("USERINFO: ${result.body}");
return User.fromJson(jsonDecode(result.body));
}
}