File tree Expand file tree Collapse file tree 1 file changed +19
-11
lines changed
packages/flutterfire_ui/lib/src/auth/widgets Expand file tree Collapse file tree 1 file changed +19
-11
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ import 'package:flutterfire_ui/auth.dart';
4
4
import 'package:flutterfire_ui/i10n.dart' ;
5
5
import 'package:flutter/material.dart' ;
6
6
7
+ import 'internal/subtitle.dart' ;
8
+
7
9
class EditableUserDisplayName extends StatefulWidget {
8
10
final FirebaseAuth ? auth;
9
11
@@ -78,24 +80,30 @@ class _EditableUserDisplayNameState extends State<EditableUserDisplayName> {
78
80
}
79
81
80
82
if (! _editing) {
81
- return IntrinsicWidth (
82
- child: Row (
83
- children: [
84
- Text (displayName ?? 'Unknown' ),
85
- iconButton,
86
- ],
83
+ return Padding (
84
+ padding: const EdgeInsets .symmetric (vertical: 5.5 ),
85
+ child: IntrinsicWidth (
86
+ child: Row (
87
+ children: [
88
+ Subtitle (text: displayName ?? 'Unknown' ),
89
+ iconButton,
90
+ ],
91
+ ),
87
92
),
88
93
);
89
94
}
90
95
91
96
late Widget textField;
92
97
93
98
if (isCupertino) {
94
- textField = CupertinoTextField (
95
- autofocus: true ,
96
- controller: ctrl,
97
- placeholder: l.name,
98
- onSubmitted: (_) => _finishEditing (),
99
+ textField = Padding (
100
+ padding: const EdgeInsets .symmetric (vertical: 17.5 ),
101
+ child: CupertinoTextField (
102
+ autofocus: true ,
103
+ controller: ctrl,
104
+ placeholder: l.name,
105
+ onSubmitted: (_) => _finishEditing (),
106
+ ),
99
107
);
100
108
} else {
101
109
textField = TextField (
You can’t perform that action at this time.
0 commit comments