Skip to content

Commit

Permalink
Update main.dart
Browse files Browse the repository at this point in the history
I was getting some overflow errors, then I just saw it was related to the FlatButton inside the Row.
  • Loading branch information
BrunoEleodoro authored Jan 18, 2021
1 parent 53a5eb1 commit 5a51c5a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -264,18 +264,20 @@ class _PinCodeVerificationScreenState extends State<PinCodeVerificationScreen> {
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
FlatButton(
Flexible(
child: FlatButton(
child: Text("Clear"),
onPressed: () {
textEditingController.clear();
},
),
FlatButton(
)),
Flexible(
child: FlatButton(
child: Text("Set Text"),
onPressed: () {
textEditingController.text = "123456";
},
),
)),
],
)
],
Expand Down

0 comments on commit 5a51c5a

Please sign in to comment.