import 'package:flutter/material.dart'; import 'package:healthcare_user/common/settings.dart'; class Forgotpassword extends StatefulWidget { @override State createState() => _ForgotpasswordState(); } class _ForgotpasswordState extends State { TextEditingController emailController = TextEditingController(); @override Widget build(BuildContext context) { return Scaffold( backgroundColor: primaryColor, body: Stack(children: [ /*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: [ 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'), )), ])))), ])); } }