Skip to content

Commit 2747c1a

Browse files
EArminjonEnguerrand ARMINJON WINDOWSrussellwheatley
authored
Fix(firebase_ui_auth): Add padding between avatar and display name form (#524)
Co-authored-by: Enguerrand ARMINJON WINDOWS <[email protected]> Co-authored-by: russellwheatley <[email protected]>
1 parent e2626d2 commit 2747c1a

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

packages/firebase_ui_auth/lib/src/widgets/editable_user_display_name.dart

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
import 'package:firebase_auth/firebase_auth.dart' as fba;
6+
import 'package:firebase_ui_localizations/firebase_ui_localizations.dart';
67
import 'package:firebase_ui_shared/firebase_ui_shared.dart';
78
import 'package:flutter/cupertino.dart';
8-
import 'package:firebase_ui_localizations/firebase_ui_localizations.dart';
99
import 'package:flutter/material.dart';
1010

1111
import '../actions.dart';
@@ -140,11 +140,14 @@ class _EditableUserDisplayNameState extends State<EditableUserDisplayName> {
140140
),
141141
);
142142
} else {
143-
textField = TextField(
144-
autofocus: true,
145-
controller: ctrl,
146-
decoration: InputDecoration(hintText: l.name, labelText: l.name),
147-
onSubmitted: (_) => _finishEditing(),
143+
textField = Padding(
144+
padding: const EdgeInsets.symmetric(vertical: 5.5),
145+
child: TextField(
146+
autofocus: true,
147+
controller: ctrl,
148+
decoration: InputDecoration(hintText: l.name, labelText: l.name),
149+
onSubmitted: (_) => _finishEditing(),
150+
),
148151
);
149152
}
150153

0 commit comments

Comments
 (0)