forgot_pass_body - Fixed Styles

This commit is contained in:
Matthew Patrick 2022-05-16 02:19:36 +07:00
parent 881bb85084
commit 4cd8eccf92
2 changed files with 16 additions and 9 deletions

View file

@ -38,7 +38,7 @@ class _ForgotPassBodyState extends State<ForgotPassBody> {
Icons.mail_sharp,
color: Colors.white,
),
Text(' EMAIL', style: TextStyle(color: Colors.white)),
Text(' Email', style: TextStyle(color: Colors.white)),
],
),
),
@ -49,11 +49,17 @@ class _ForgotPassBodyState extends State<ForgotPassBody> {
keyboardType: TextInputType.emailAddress,
style: TextStyle(color: Colors.white),
decoration: InputDecoration(
border: OutlineInputBorder(
borderSide: BorderSide(color: Colors.white)),
hintText: 'EMAIL',
fillColor: Colors.white,
hintStyle: TextStyle(color: Colors.white)),
focusedBorder: OutlineInputBorder(
borderSide: const BorderSide(
color: Colors.red,
),
borderRadius: BorderRadius.circular(10.0)),
enabledBorder: OutlineInputBorder(
borderSide: const BorderSide(
color: Colors.white60,
),
borderRadius: BorderRadius.circular(10.0)),
),
),
),
ElevatedButton(
@ -65,7 +71,7 @@ class _ForgotPassBodyState extends State<ForgotPassBody> {
shape: MaterialStateProperty.all<RoundedRectangleBorder>(
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(18.0),
side: const BorderSide(color: Colors.red)))),
side: const BorderSide(color: Colors.black)))),
onPressed: () {
Map<String, dynamic> data = {
"email": emailController.text,
@ -88,7 +94,7 @@ class _ForgotPassBodyState extends State<ForgotPassBody> {
shape: MaterialStateProperty.all<RoundedRectangleBorder>(
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(18.0),
side: const BorderSide(color: Colors.red)))),
side: const BorderSide(color: Colors.black)))),
onPressed: () {
Navigator.pushNamed(context, '/login');
},

View file

@ -1,4 +1,5 @@
import 'dart:math' as math;
import 'package:nekoya_flutter/screens/forgotpassword.dart';
import 'package:nekoya_flutter/screens/otp.dart';
import 'package:universal_html/html.dart' as html;
import 'package:flutter/material.dart';
@ -75,7 +76,7 @@ class _MenuState extends State<Menu> {
html.window.history.pushState(null, '', '/products');
_selectedWidget = const Products();
} else if (index == 2) {
_selectedWidget = const Otp();
_selectedWidget = const ForgotPassword();
} else if (index == 3) {
html.window.history.pushState(null, '', '/cart');
_selectedWidget = const Cart();