Skip to content

Commit ee924ac

Browse files
committed
Version 0.0.3
1 parent b14e1e6 commit ee924ac

2 files changed

Lines changed: 14 additions & 9 deletions

File tree

README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Pull requests are always welcomed.
88
In the `dependencies:` section of your `pubspec.yaml`, add the following line:
99

1010
```yaml
11-
pin_code_view: 0.0.1
11+
pin_code_view: 0.0.3
1212
```
1313
1414
## Usage
@@ -19,15 +19,20 @@ import 'package:pin_code_view/pin_code_view.dart';
1919
class MyWidget extends StatelessWidget {
2020
Widget build(BuildContext context) {
2121
return PinCode(
22-
title: "Verification code",
23-
subTitle: "A code has been sent to your phone number.",
22+
title: Text(
23+
"Lock Screen",
24+
style: TextStyle(
25+
color: Colors.white, fontSize: 25.0, fontWeight: FontWeight.bold),
26+
),
27+
subTitle: Text(
28+
"Hello Boys",
29+
style: TextStyle(color: Colors.white),
30+
),
2431
codeLength: 6,
25-
onCodeEntered:(code){
26-
//this function is invoked once the code is completely entered
32+
onCodeEntered: (code) {
33+
//callback after full code has been entered
34+
print(code);
2735
},
28-
sendAgain:(){
29-
//this function is invoked if the user presses send again button
30-
}
3136
);
3237
}
3338
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: pin_code_view
22
description: A flutter plugin to show beautiful pin code view. A on screen keyboard is placed at the bottom of the screen and a code view with blocks are added on the top of the screen.
3-
version: 0.0.2
3+
version: 0.0.3
44
author: Aawaz Gyawali <[email protected]>
55
homepage: https://github.com/awazgyawali/pin_code_view
66

0 commit comments

Comments
 (0)