💄 Optimized notification page
⬇️ Remove firebase deps
This commit is contained in:
@ -13,7 +13,7 @@ class NameCard extends StatelessWidget {
|
||||
|
||||
Future<CircleAvatar> _getAvatar() async {
|
||||
if (await authClient.isAuthorized()) {
|
||||
final profiles = await authClient.readProfiles();
|
||||
final profiles = await authClient.getProfiles();
|
||||
return CircleAvatar(backgroundImage: NetworkImage(profiles["picture"]));
|
||||
} else {
|
||||
return const CircleAvatar(child: Icon(Icons.account_circle));
|
||||
@ -22,7 +22,7 @@ class NameCard extends StatelessWidget {
|
||||
|
||||
Future<Column> _getDescribe() async {
|
||||
if (await authClient.isAuthorized()) {
|
||||
final profiles = await authClient.readProfiles();
|
||||
final profiles = await authClient.getProfiles();
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
|
Reference in New Issue
Block a user