auto complete
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'package:firebase_auth/firebase_auth.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_rating_bar/flutter_rating_bar.dart';
|
||||
import 'package:prosappco/src/authentication/authentication_repository.dart';
|
||||
@@ -11,6 +12,7 @@ import 'package:prosappco/src/screens/my_services_pro.dart';
|
||||
import 'package:prosappco/src/screens/professional.dart';
|
||||
import 'package:prosappco/src/screens/profile.dart';
|
||||
import 'package:prosappco/src/screens/profile_pro.dart';
|
||||
import 'package:prosappco/src/screens/profile_pro_web.dart';
|
||||
import 'package:prosappco/src/screens/reputacion_pro.dart';
|
||||
import '../models/scores_model.dart';
|
||||
import '../screens/configuracion.dart';
|
||||
@@ -139,7 +141,11 @@ class _DrawerProfessionalState extends State<DrawerProfessional> {
|
||||
context,
|
||||
CupertinoPageRoute(
|
||||
builder: (BuildContext context) {
|
||||
return const ProfilePro();
|
||||
if (kIsWeb) {
|
||||
return const ProfileProWebScreen();
|
||||
} else {
|
||||
return const ProfileProScreen();
|
||||
}
|
||||
},
|
||||
),
|
||||
);
|
||||
|
||||
@@ -195,7 +195,8 @@ class Schedule {
|
||||
final snapshot =
|
||||
await FirebaseFirestore.instance.collection('users').doc(uid).get();
|
||||
final Map<String, dynamic>? data = snapshot.data();
|
||||
return fromJson(data);
|
||||
final Map<String, dynamic>? horarioData = data?['horario'];
|
||||
return fromJson(horarioData);
|
||||
} catch (e) {
|
||||
print('Error getting user: $e');
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user