Remove unused widget

This commit is contained in:
Moe Poi ~ 2022-05-13 11:15:15 +07:00
parent d051b1ab27
commit cb12bd4efd

View file

@ -18,7 +18,6 @@ class LoginForm extends StatefulWidget {
class LoginFormState extends State<LoginForm> {
TextEditingController emailController = TextEditingController();
TextEditingController passwordController = TextEditingController();
bool _rememberMe = false;
Future submitForm(BuildContext context) async {
if (emailController.text.isEmpty || passwordController.text.isEmpty) {
@ -123,33 +122,6 @@ class LoginFormState extends State<LoginForm> {
));
}
Widget _buildRememberMeCheckBox() {
return SizedBox(
height: 13.0,
child: Row(
children: <Widget>[
Theme(
data: ThemeData(unselectedWidgetColor: Colors.white),
child: Checkbox(
value: _rememberMe,
checkColor: Colors.green,
activeColor: Colors.white,
onChanged: (value) {
setState(() {
_rememberMe = value!;
});
},
),
),
const Text(
'Remember me',
style: kLabelStyle,
)
],
),
);
}
Widget _buildLoginBtn() {
return Container(
padding: const EdgeInsets.symmetric(vertical: 25.0),