refactoring

This commit is contained in:
DahoudG
2024-09-01 04:08:50 +00:00
parent 7e1cb85160
commit a1fce6bf27
31 changed files with 1651 additions and 441 deletions

View File

@@ -0,0 +1,18 @@
import 'package:flutter/material.dart';
class UserProvider with ChangeNotifier {
String _userId = '';
String _userName = '';
String _userLastName = '';
String get userId => _userId;
String get userName => _userName;
String get userLastName => _userLastName;
void setUser(String id, String name, String lastName) {
_userId = id;
_userName = name;
_userLastName = lastName;
notifyListeners();
}
}