forgot_pass_body - Fixed button colors

This commit is contained in:
Matthew Patrick 2022-04-29 19:59:47 +07:00
parent 46bf6f5ec4
commit c4ae1f75a7

View file

@ -53,13 +53,13 @@ class _ForgotPassBodyState extends State<ForgotPassBody> {
ElevatedButton( ElevatedButton(
style: ButtonStyle( style: ButtonStyle(
foregroundColor: foregroundColor:
MaterialStateProperty.all(Colors.blue.shade800), MaterialStateProperty.all(const Color(0xff8B0000)),
backgroundColor: backgroundColor:
MaterialStateProperty.all(Colors.blue.shade800), MaterialStateProperty.all(const Color(0xff8B0000)),
shape: MaterialStateProperty.all<RoundedRectangleBorder>( shape: MaterialStateProperty.all<RoundedRectangleBorder>(
RoundedRectangleBorder( RoundedRectangleBorder(
borderRadius: BorderRadius.circular(18.0), borderRadius: BorderRadius.circular(18.0),
side: const BorderSide(color: Colors.blue)))), side: const BorderSide(color: Colors.red)))),
onPressed: () { onPressed: () {
Navigator.push(context, Navigator.push(context,
MaterialPageRoute(builder: (context) => const Otp())); MaterialPageRoute(builder: (context) => const Otp()));
@ -72,13 +72,13 @@ class _ForgotPassBodyState extends State<ForgotPassBody> {
ElevatedButton( ElevatedButton(
style: ButtonStyle( style: ButtonStyle(
foregroundColor: foregroundColor:
MaterialStateProperty.all(Colors.blue.shade800), MaterialStateProperty.all(const Color(0xff8B0000)),
backgroundColor: backgroundColor:
MaterialStateProperty.all(Colors.blue.shade800), MaterialStateProperty.all(const Color(0xff8B0000)),
shape: MaterialStateProperty.all<RoundedRectangleBorder>( shape: MaterialStateProperty.all<RoundedRectangleBorder>(
RoundedRectangleBorder( RoundedRectangleBorder(
borderRadius: BorderRadius.circular(18.0), borderRadius: BorderRadius.circular(18.0),
side: const BorderSide(color: Colors.blue)))), side: const BorderSide(color: Colors.red)))),
onPressed: () { onPressed: () {
Navigator.push(context, Navigator.push(context,
MaterialPageRoute(builder: (context) => const Login())); MaterialPageRoute(builder: (context) => const Login()));