push fetch devices and connecting the filters

This commit is contained in:
ashrafzarkanisala
2024-08-24 16:37:10 +03:00
parent 0c047de9c1
commit 2597cdc311
68 changed files with 1800 additions and 989 deletions

View File

@ -1,5 +1,3 @@
class RegionModel {
final String name;
final String id;

View File

@ -42,14 +42,11 @@ class Token {
//save token to secure storage
var storage = const FlutterSecureStorage();
storage.write(
key: loginAccessTokenKey,
value: json[loginAccessTokenKey] ?? '');
key: loginAccessTokenKey, value: json[loginAccessTokenKey] ?? '');
storage.write(
key: loginRefreshTokenKey,
value: json[loginRefreshTokenKey] ?? '');
key: loginRefreshTokenKey, value: json[loginRefreshTokenKey] ?? '');
//create token object ?
return Token(
json[loginAccessTokenKey] ?? '',
return Token(json[loginAccessTokenKey] ?? '',
json[loginRefreshTokenKey] ?? '', '', 0, 0);
}

View File

@ -1,5 +1,3 @@
import 'package:syncrow_web/pages/auth/model/token.dart';
class UserModel {

View File

@ -10,7 +10,10 @@ class VerifyPassCode {
final String deviceId;
VerifyPassCode(
{required this.phone, required this.passCode, required this.agent, required this.deviceId});
{required this.phone,
required this.passCode,
required this.agent,
required this.deviceId});
factory VerifyPassCode.fromJson(Map<String, dynamic> json) => VerifyPassCode(
phone: json[verificationPhone],