Skip to content

[101-2] Making the login page stateful #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 18, 2018
Merged

[101-2] Making the login page stateful #6

merged 3 commits into from
Apr 18, 2018

Conversation

willlarche
Copy link
Collaborator

And adding functionality to the clear button.

Dependent on PR #5

@@ -1,6 +1,16 @@
import 'package:flutter/material.dart';

class LoginPage extends StatelessWidget {
class LoginPage extends StatefulWidget {
@override
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is boilerplate and the conventional boilerplate is:

_LoginPageState createState => new _LoginPageState();

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

}
}

class LoginPageState extends State<LoginPage> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_LoginPageState

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants