File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
packages/firebase_ui_auth/lib/src/screens Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -704,12 +704,19 @@ class ProfileScreen extends MultiProviderScreen {
704
704
/// verification.
705
705
final ActionCodeSettings ? actionCodeSettings;
706
706
707
+ /// Indicates whether MFA tile should be shown.
707
708
final bool showMFATile;
708
709
710
+ /// A custom avatar widget that is used instead of the default one.
711
+ /// If provided, [avatarPlaceholderColor] , [avatarShape] and [avatarSize]
712
+ /// are ignored.
713
+ final Widget ? avatar;
714
+
709
715
const ProfileScreen ({
710
716
super .key,
711
717
super .auth,
712
718
super .providers,
719
+ this .avatar,
713
720
this .avatarPlaceholderColor,
714
721
this .avatarShape,
715
722
this .avatarSize,
@@ -767,17 +774,20 @@ class ProfileScreen extends MultiProviderScreen {
767
774
768
775
final user = auth.currentUser! ;
769
776
770
- final content = Column (
771
- crossAxisAlignment: CrossAxisAlignment .stretch,
772
- children: [
777
+ final avatarWidget = avatar ??
773
778
Align (
774
779
child: UserAvatar (
775
780
auth: auth,
776
781
placeholderColor: avatarPlaceholderColor,
777
782
shape: avatarShape,
778
783
size: avatarSize,
779
784
),
780
- ),
785
+ );
786
+
787
+ final content = Column (
788
+ crossAxisAlignment: CrossAxisAlignment .stretch,
789
+ children: [
790
+ avatarWidget,
781
791
Align (child: EditableUserDisplayName (auth: auth)),
782
792
if (! user.emailVerified) ...[
783
793
RebuildScope (
You can’t perform that action at this time.
0 commit comments