This commit is contained in:
Felipe
2023-12-23 11:06:10 -05:00
parent c19f75c6a6
commit 956222de76
5 changed files with 14 additions and 14 deletions
@@ -110,7 +110,7 @@ class Professional {
latitude: data['latitude'] ?? 0,
longitude: data['longitude'] ?? 0,
scores: await ScoresModel.scoreFrom(uid, true, true),
tarifa: data['tarifa'] ?? 0,
tarifa: data['tarifas'] ?? 0,
token: data['token'] ?? '',
);
return professional;
@@ -261,7 +261,7 @@ class _ProfessionalScreenState extends State<ProfessionalScreen> {
latitude: data['latitude'] ?? 0,
longitude: data['longitude'] ?? 0,
scores: await ScoresModel.scoreTo(user.id, true, true),
tarifa: data['tarifa'] ?? 0,
tarifa: data['tarifas'] ?? 0,
token: data['token'] ?? '',
);
professionals.add(professional);
@@ -284,7 +284,7 @@ class _ProfessionalScreenState extends State<ProfessionalScreen> {
latitude: data['latitude'] ?? 0,
longitude: data['longitude'] ?? 0,
scores: await ScoresModel.scoreTo(user.id, true, true),
tarifa: data['tarifa'] ?? 0,
tarifa: data['tarifas'] ?? 0,
token: data['token'] ?? '',
);
professionals.add(professional);
@@ -449,9 +449,9 @@ class _ProfessionalScreenState extends State<ProfessionalScreen> {
)
: const SizedBox(),
professionals[index].ubicacion == 'ambos'
? Text(
'Disponibilidad a domicilio y en sitio ${professionals[index].tarifa}',
style: const TextStyle(
? const Text(
'Disponibilidad a domicilio y en sitio',
style: TextStyle(
color: Colors.blue,
),
)
@@ -36,7 +36,7 @@ class _ProfileProScreenState extends State<ProfileProScreen> {
bool tarifaValue = false;
bool domicilioValue = true;
bool domicilioValue = false;
bool sitioValue = false;
var photoTemp = '';
@@ -64,9 +64,9 @@ class _ProfileProScreenState extends State<ProfileProScreen> {
void initState() {
super.initState();
if (settings == null) {
SettingModel.getSettings().then(
(SettingModel value) => setState(() => settings = value),
);
SettingModel.getSettings().then((SettingModel value) => setState(
() => {print('Settings: $value'), settings = value},
));
}
final uid = AuthenticationRepository.instance.getCurrentUserUid();