parent
0195705e3d
commit
46bee78f41
@ -0,0 +1,11 @@
|
||||
class Activity {
|
||||
final String _type = "Default";
|
||||
|
||||
late List<dynamic> _contentActivity;
|
||||
|
||||
List<dynamic> get contentActivity => _contentActivity;
|
||||
|
||||
Activity(List<Activity> contentActivity) {
|
||||
_contentActivity = contentActivity;
|
||||
}
|
||||
}
|
@ -1,18 +1,22 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:smartfit_app_mobile/Modele/activity.dart';
|
||||
|
||||
class User extends ChangeNotifier {
|
||||
// A modifier
|
||||
late String _username;
|
||||
late String _email;
|
||||
late String _passwordHash;
|
||||
late List<Activity> _listActivity;
|
||||
|
||||
String get username => _username;
|
||||
String get email => _email;
|
||||
String get passwordHash => _passwordHash;
|
||||
List<Activity> get listActivity => _listActivity;
|
||||
|
||||
User(String username, String email, String passwordHash) {
|
||||
_username = username;
|
||||
_email = email;
|
||||
_passwordHash = passwordHash;
|
||||
_listActivity = List.empty(growable: true);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in new issue