Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions lib/sms_autofill.dart
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ class PhoneFormFieldHint extends StatelessWidget {
final FormFieldValidator? validator;
final InputDecoration? decoration;
final TextField? child;
final TextStyle? style;

const PhoneFormFieldHint({
Key? key,
Expand All @@ -213,6 +214,7 @@ class PhoneFormFieldHint extends StatelessWidget {
this.autoFocus = false,
this.enabled = true,
this.focusNode,
this.style,
}) : super(key: key);

@override
Expand All @@ -227,7 +229,8 @@ class PhoneFormFieldHint extends StatelessWidget {
autoFocus: autoFocus,
enabled: enabled,
focusNode: focusNode,
isFormWidget: true);
isFormWidget: true,
style: style);
}
}

Expand All @@ -238,6 +241,7 @@ class PhoneFieldHint extends StatelessWidget {
final List<TextInputFormatter>? inputFormatters;
final InputDecoration? decoration;
final TextField? child;
final TextStyle? style;

const PhoneFieldHint({
Key? key,
Expand All @@ -247,6 +251,7 @@ class PhoneFieldHint extends StatelessWidget {
this.decoration,
this.autoFocus = false,
this.focusNode,
this.style,
}) : super(key: key);

@override
Expand All @@ -259,6 +264,7 @@ class PhoneFieldHint extends StatelessWidget {
decoration: decoration,
autoFocus: autoFocus,
focusNode: focusNode,
style: style,
isFormWidget: false);
}
}
Expand All @@ -272,6 +278,7 @@ class _PhoneFieldHint extends StatefulWidget {
final bool isFormWidget;
final InputDecoration? decoration;
final TextField? child;
final TextStyle? style;

const _PhoneFieldHint({
Key? key,
Expand All @@ -284,6 +291,7 @@ class _PhoneFieldHint extends StatefulWidget {
this.autoFocus = false,
this.enabled = true,
this.focusNode,
this.style,
}) : super(key: key);

@override
Expand Down Expand Up @@ -319,7 +327,6 @@ class _PhoneFieldHintState extends State<_PhoneFieldHint> {
});
}
});

super.initState();
}

Expand Down Expand Up @@ -371,6 +378,7 @@ class _PhoneFieldHintState extends State<_PhoneFieldHint> {
decoration: decoration,
controller: _controller,
keyboardType: TextInputType.phone,
style: widget.style,
);
}

Expand All @@ -386,6 +394,7 @@ class _PhoneFieldHintState extends State<_PhoneFieldHint> {
decoration: decoration,
controller: _controller,
keyboardType: TextInputType.phone,
style: widget.style,
);
}

Expand Down