fix: remove font_awesome_flutter (incompatible with Dart 3.12)

Replace FaIcon(FontAwesomeIcons.google) with plain Text widget.
Remove font_awesome_flutter from pubspec — package extends final
class IconData which is forbidden in Dart 3.12/Flutter 3.44.
Fix currentUser.value → currentUser (was Rx<UserModel?>, now UserModel?).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-06-18 14:44:21 -05:00
co-authored by Claude Sonnet 4.6
parent eb01e96e5d
commit 309f250d47
12 changed files with 110 additions and 386 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ class _DrawerProfessionalState extends State<DrawerProfessional> {
Widget build(BuildContext context) {
// Use in-memory currentUser — no Firebase needed
final UserModel? currentUser =
AuthenticationRepository.instance.currentUser.value;
AuthenticationRepository.instance.currentUser;
return Drawer(
child: Container(
@@ -1,6 +1,5 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:prosappco/src/authentication/authentication_repository.dart';
import 'package:prosappco/src/components/bottom_sheet.dart';
import 'package:prosappco/src/presentation/widgets/shared/primary_button.dart';
@@ -113,7 +112,7 @@ class _LoginEmailScreenState extends State<LoginEmailScreen> {
),
),
SizedBox(width: 5),
FaIcon(FontAwesomeIcons.google),
const Text('G', style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold, fontSize: 18)),
],
)),
)
@@ -102,7 +102,7 @@ class _ServiceScreenState extends State<ServiceScreen> {
getLocationUpdates();
// Load user name from in-memory currentUser
final authUser = AuthenticationRepository.instance.currentUser.value;
final authUser = AuthenticationRepository.instance.currentUser;
if (authUser != null && authUser.name.isNotEmpty) {
_nameController.text = authUser.name;
}
@@ -36,7 +36,7 @@ class ProfessionalProfileScreenState extends State<ProfessionalProfileScreen> {
@override
void initState() {
super.initState();
final currentUser = AuthenticationRepository.instance.currentUser.value;
final currentUser = AuthenticationRepository.instance.currentUser;
_photoUrl = currentUser?.picture;
_profession = currentUser?.profession ?? '...';
@@ -45,7 +45,7 @@ class _ProfessionalProfileWebScreenState
@override
void initState() {
super.initState();
final currentUser = AuthenticationRepository.instance.currentUser.value;
final currentUser = AuthenticationRepository.instance.currentUser;
_photoUrl = currentUser?.picture;
_profession = currentUser?.profession ?? '...';
@@ -60,7 +60,7 @@ class _ProfileScreenState extends State<ProfileScreen> {
}
Future<void> _loadCurrentUser() async {
final currentUser = AuthenticationRepository.instance.currentUser.value;
final currentUser = AuthenticationRepository.instance.currentUser;
if (currentUser != null) {
_nameController.text = currentUser.name;
_emailController.text = currentUser.email ?? '';
@@ -142,7 +142,7 @@ class _ServiceOldScreenState extends State<ServiceWebScreen> {
super.initState();
// Load city from in-memory user
final currentUser = AuthenticationRepository.instance.currentUser.value;
final currentUser = AuthenticationRepository.instance.currentUser;
_ciudad = currentUser?.city ?? '...';
BitmapDescriptor.fromAssetImage(