You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
healthcare-frontend/lib/common/forgotpassword.dart

94 lines
3.8 KiB

import 'package:flutter/material.dart';
import 'package:healthcare_user/common/settings.dart';
class Forgotpassword extends StatefulWidget {
@override
State<Forgotpassword> createState() => _ForgotpasswordState();
}
class _ForgotpasswordState extends State<Forgotpassword> {
TextEditingController emailController = TextEditingController();
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: primaryColor,
body: Stack(children: <Widget>[
/*Container(
decoration: const BoxDecoration(
image: DecorationImage(
image: AssetImage("images/backgroundimage.png"),
fit: BoxFit.cover,
),
),
),*/
GestureDetector(
onTap: () {
FocusScope.of(context).requestFocus(new FocusNode());
},
child: SafeArea(
child: SingleChildScrollView(
child: Column(children: <Widget>[
const SizedBox(
height: 50,
),
Container(
child: Image(
image: const AssetImage('images/logo.png'),
height: MediaQuery.of(context).size.height * .20,
)),
const SizedBox(
height: 10,
),
Container(
padding: const EdgeInsets.all(10),
child: const Text(
'Enter Your Email Address and we will send a link to reset your password',
style: TextStyle(fontSize: 12, color: greyColor),
),
),
Container(
padding: const EdgeInsets.all(10),
child: TextFormField(
cursorColor: greyColor,
controller: emailController,
decoration: const InputDecoration(
prefixIcon: Icon(
Icons.email,
color: greyColor,
),
border: OutlineInputBorder(
borderSide: BorderSide(color: greyColor)),
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(color: greyColor),
),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(color: greyColor),
),
labelText: 'Enter email ID',
labelStyle: TextStyle(
color: greyColor, //<-- SEE HERE
),
),
),
),
const SizedBox(
height: 20,
),
Container(
width: 400,
height: 50,
padding: const EdgeInsets.fromLTRB(10, 0, 10, 0),
child: ElevatedButton(
style: ElevatedButton.styleFrom(
primary: primaryColor, // background
onPrimary: Colors.white, // foreground
),
onPressed: () {},
child: const Text('Send'),
)),
])))),
]));
}
}