I had some error that says "Positional arguments must occur before named arguments" and " too many positional arguments" when i wanted to add an textformfield on my code, the design will looks like this
I need put the textformfield below the text how do i add the textformfield without making any error?
heres my code
import 'package:flutter/material.dart';
class ForgotPassword extends StatefulWidget {
const ForgotPassword({Key? key}) : super(key: key);
@override
_ForgotPasswordState createState() => _ForgotPasswordState();
}
class _ForgotPasswordState extends State<ForgotPassword> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: IconButton(onPressed: () {}, icon: Icon(Icons.exit_to_app)),
),
body: SingleChildScrollView(
child: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
Padding(
padding: EdgeInsets.symmetric(
vertical: 35.0,
),
child: Text(
'Forgot Password',
style: TextStyle(
color: Colors.blue,
fontWeight: FontWeight.bold,
fontSize: 20.0),
),
),
Padding(
padding: EdgeInsets.fromLTRB(0, 12, 0, 0),
child: Container(
child: Image.asset('assets/forgot password 1.png'),
),
),
new Container(
height: 440.0,
color: Colors.transparent,
child: Container(
decoration: new BoxDecoration(
color: Colors.blue,
borderRadius: new BorderRadius.only(
topLeft: const Radius.circular(40.0),
topRight: const Radius.circular(40.0),
)),
child: new Align(
alignment: Alignment.topCenter,
child: Padding(
padding: EdgeInsets.symmetric(vertical: 40),
child: Text(
'Masukkan Email',
style: TextStyle(
color: Colors.white,
fontSize: 14,
fontWeight: FontWeight.bold),
),
sizedBox(height: 20,)
),
),
),
),
],
),
),
),
);
}
}