Skip to content

Commit 0d861df

Browse files
committed
* Updated example app
* Updated CHANGELOG * Updated README.md * Updated version
1 parent 355c467 commit 0d861df

File tree

6 files changed

+9
-19
lines changed

6 files changed

+9
-19
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [1.0.3] - 03/05/2022
2+
3+
* Updated example app
4+
* Updated README.md
5+
16
## [1.0.2] - 30/04/2022
27

38
* Renamed auth_service to auth_controller

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Supports OTP on web out of the box.
99

1010
## Screenshots
11-
<img src="https://user-images.githubusercontent.com/56810766/115599399-341ffc80-a2f9-11eb-9410-ffd1a254caf6.jpeg" height=600/>&nbsp;&nbsp;<img src="https://user-images.githubusercontent.com/56810766/115599396-33876600-a2f9-11eb-9516-d0f189b88a53.jpeg" height=600/>&nbsp;&nbsp;<img src="https://user-images.githubusercontent.com/56810766/115599390-31bda280-a2f9-11eb-8990-d3df76d3aabc.jpg" height=600/>&nbsp;&nbsp;<img src="https://user-images.githubusercontent.com/56810766/115599398-33876600-a2f9-11eb-9a3a-61e073212c7b.jpeg" height=600/>
11+
<img src="https://user-images.githubusercontent.com/56810766/166433323-39875cc4-440a-4556-9550-1b5ab4e8f310.gif" height=600/>&nbsp;&nbsp;<img src="https://user-images.githubusercontent.com/56810766/115599396-33876600-a2f9-11eb-9516-d0f189b88a53.jpeg" height=600/>&nbsp;&nbsp;<img src="https://user-images.githubusercontent.com/56810766/115599390-31bda280-a2f9-11eb-8990-d3df76d3aabc.jpg" height=600/>&nbsp;&nbsp;<img src="https://user-images.githubusercontent.com/56810766/166431851-228693fe-7430-4c66-baa2-65acc2db9db4.jpg" height=600/>&nbsp;&nbsp;<img src="https://user-images.githubusercontent.com/56810766/166431847-06aceb70-db87-4138-8146-e9c935a51cf2.jpg" height=600/>&nbsp;&nbsp;<img src="https://user-images.githubusercontent.com/56810766/166431849-28a4563d-2c59-4da7-b21a-355dc0b72448.jpg" height=600/>&nbsp;&nbsp;<img src="https://user-images.githubusercontent.com/56810766/166431854-f0f8ec50-a105-47ab-97a1-d12dbaf13ce8.jpg" height=600/>
1212

1313
## Getting Started
1414
<b>Step 1</b>: Before you can add Firebase to your app, you need to create a Firebase project to connect to your application.

example/lib/screens/authentication_screen.dart

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,8 @@ class AuthenticationScreen extends StatefulWidget {
1818
class _AuthenticationScreenState extends State<AuthenticationScreen> {
1919
String? phoneNumber;
2020

21-
late final TextEditingController _controller;
2221
final _formKey = GlobalKey<FormState>();
2322

24-
@override
25-
void initState() {
26-
_controller = TextEditingController();
27-
super.initState();
28-
}
29-
30-
@override
31-
void dispose() {
32-
_controller.dispose();
33-
super.dispose();
34-
}
35-
3623
@override
3724
Widget build(BuildContext context) {
3825
return SafeArea(
@@ -54,7 +41,6 @@ class _AuthenticationScreenState extends State<AuthenticationScreen> {
5441
child: Form(
5542
key: _formKey,
5643
child: IntlPhoneField(
57-
controller: _controller,
5844
autofocus: true,
5945
invalidNumberMessage: 'Invalid Phone Number!',
6046
textAlignVertical: TextAlignVertical.center,
@@ -79,7 +65,6 @@ class _AuthenticationScreenState extends State<AuthenticationScreen> {
7965
!_formKey.currentState!.validate()) {
8066
showSnackBar('Please enter a valid phone number!');
8167
} else {
82-
_controller.clear();
8368
Navigator.pushNamed(
8469
context,
8570
VerifyPhoneNumberScreen.id,

example/lib/widgets/pin_input_field.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class _PinInputFieldState extends State<PinInputField> {
7272
);
7373
}
7474

75-
static const _focusScaleFactor = 1.2;
75+
static const _focusScaleFactor = 1.15;
7676

7777
@override
7878
Widget build(BuildContext context) {

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ packages:
105105
path: ".."
106106
relative: true
107107
source: path
108-
version: "1.0.2"
108+
version: "1.0.3"
109109
flutter:
110110
dependency: "direct main"
111111
description: flutter

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: firebase_phone_auth_handler
22
description: An easy-to-use firebase phone authentication package to easily send and verify OTP's with auto-fetch OTP support via SMS. Supports web out of the box.
3-
version: 1.0.2
3+
version: 1.0.3
44
homepage: https://github.com/rithik-dev/firebase_phone_auth_handler
55

66
environment:

0 commit comments

Comments
 (0)