Skip to content

Commit

Permalink
refactor(deriv_ui): numpad/ move listener to initState
Browse files Browse the repository at this point in the history
  • Loading branch information
sahani-deriv committed Feb 26, 2024
1 parent 7f3e68c commit 66f2be1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ class _NumberPadTextFieldState extends State<_NumberPadTextField> {
@override
void initState() {
super.initState();

widget.focusNode?.addListener(_onFocusChanged);
}

@override
void didChangeDependencies() {
super.didChangeDependencies();

_labelColor = context.theme.colors.disabled;

widget.focusNode?.addListener(_onFocusChanged);
}

@override
Expand Down

0 comments on commit 66f2be1

Please sign in to comment.