Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
Onboarding deletes profile name if screen is changed #588 OT-842 (#591)
Browse files Browse the repository at this point in the history
  • Loading branch information
Boehrsi authored May 28, 2020
1 parent 1683b03 commit 0abac7e
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ import 'package:provider/provider.dart';
class PageTextFieldComponent extends PageBaseComponent {
final DynamicScreenTextfieldModel model;

final _textController = TextEditingController();
final _focusNode = FocusNode();

PageTextFieldComponent({Key key, this.model}) : super(key: key);

@override
Expand All @@ -67,13 +64,12 @@ class PageTextFieldComponent extends PageBaseComponent {
builder: (context, changeNotifier, child) {
return Padding(
padding: model.padding.edgeInsetsValue,
child: TextField(
child: TextFormField(
initialValue: changeNotifier.userName,
keyboardType: TextInputType.text,
textCapitalization: TextCapitalization.none,
textInputAction: TextInputAction.done,
decoration: decoration,
controller: _textController,
focusNode: _focusNode,
key: Key(L.getKey(L.type)),
onChanged: (value) {
customerDelegate.textfieldEditingCompleteAsync(context: context, value: value);
Expand Down

0 comments on commit 0abac7e

Please sign in to comment.