SOLUCION error login
This commit is contained in:
@@ -6,10 +6,10 @@ class BottomSheetExpanded extends StatelessWidget {
|
|||||||
final double horizontalPadding;
|
final double horizontalPadding;
|
||||||
|
|
||||||
const BottomSheetExpanded({
|
const BottomSheetExpanded({
|
||||||
super.key,
|
Key? key,
|
||||||
required this.children,
|
required this.children,
|
||||||
this.horizontalPadding = 35,
|
this.horizontalPadding = 35,
|
||||||
});
|
}) : super(key: key);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
@@ -20,8 +20,8 @@ class BottomSheetExpanded extends StatelessWidget {
|
|||||||
gradient: LinearGradient(
|
gradient: LinearGradient(
|
||||||
begin: Alignment.topCenter,
|
begin: Alignment.topCenter,
|
||||||
colors: [
|
colors: [
|
||||||
Color.fromARGB(255, 87, 210, 255),
|
Color.fromARGB(255, 139, 224, 255),
|
||||||
Color.fromARGB(255, 137, 224, 255),
|
Color.fromARGB(255, 152, 228, 255),
|
||||||
Color(0xFFD6F4FF),
|
Color(0xFFD6F4FF),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -44,54 +44,22 @@ class BottomSheetExpanded extends StatelessWidget {
|
|||||||
duration: const Duration(milliseconds: 1000),
|
duration: const Duration(milliseconds: 1000),
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: const BoxDecoration(
|
decoration: const BoxDecoration(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
borderRadius: BorderRadius.only(
|
borderRadius: BorderRadius.only(
|
||||||
topLeft: Radius.circular(60),
|
topLeft: Radius.circular(60),
|
||||||
topRight: Radius.circular(60))),
|
topRight: Radius.circular(60),
|
||||||
|
),
|
||||||
|
),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: EdgeInsets.symmetric(
|
padding: EdgeInsets.symmetric(
|
||||||
horizontal: horizontalPadding,
|
horizontal: horizontalPadding,
|
||||||
vertical: 15,
|
vertical: 15,
|
||||||
),
|
),
|
||||||
child: Column(children: children),
|
child: SingleChildScrollView(
|
||||||
|
child: Column(children: children)),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
|
|
||||||
return SafeArea(
|
|
||||||
child: Scaffold(
|
|
||||||
backgroundColor: const Color(0xFFD6F4FF),
|
|
||||||
body: Column(
|
|
||||||
children: [
|
|
||||||
const Expanded(
|
|
||||||
child: Padding(
|
|
||||||
padding: EdgeInsets.all(15.0),
|
|
||||||
child: Image(
|
|
||||||
image: AssetImage('images/logo_prosapp.png'),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
Container(
|
|
||||||
width: double.infinity,
|
|
||||||
decoration: const BoxDecoration(
|
|
||||||
color: Colors.white,
|
|
||||||
borderRadius: BorderRadius.only(
|
|
||||||
topLeft: Radius.circular(30),
|
|
||||||
topRight: Radius.circular(30),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
child: Padding(
|
|
||||||
padding: EdgeInsets.symmetric(
|
|
||||||
horizontal: horizontalPadding,
|
|
||||||
vertical: 15,
|
|
||||||
),
|
|
||||||
child: Column(children: children),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -174,26 +174,30 @@ class _LoginEmailScreenState extends State<LoginEmailScreen> {
|
|||||||
},
|
},
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
enabledBorder: const OutlineInputBorder(
|
enabledBorder: const OutlineInputBorder(
|
||||||
borderSide: BorderSide(color: Color(0xFFECECEC)),
|
borderSide: BorderSide(color: Color(0xFFECECEC)),
|
||||||
borderRadius: BorderRadius.all(
|
borderRadius: BorderRadius.all(
|
||||||
Radius.circular(50),
|
Radius.circular(50),
|
||||||
)),
|
),
|
||||||
|
),
|
||||||
focusedBorder: const OutlineInputBorder(
|
focusedBorder: const OutlineInputBorder(
|
||||||
borderSide: BorderSide(color: Color(0xFFECECEC)),
|
borderSide: BorderSide(color: Color(0xFFECECEC)),
|
||||||
borderRadius: BorderRadius.all(
|
borderRadius: BorderRadius.all(
|
||||||
Radius.circular(50),
|
Radius.circular(50),
|
||||||
)),
|
),
|
||||||
|
),
|
||||||
border: const OutlineInputBorder(
|
border: const OutlineInputBorder(
|
||||||
borderSide: BorderSide(color: Color(0xFFECECEC)),
|
borderSide: BorderSide(color: Color(0xFFECECEC)),
|
||||||
borderRadius: BorderRadius.all(
|
borderRadius: BorderRadius.all(
|
||||||
Radius.circular(50),
|
Radius.circular(50),
|
||||||
)),
|
),
|
||||||
|
),
|
||||||
errorBorder: const OutlineInputBorder(
|
errorBorder: const OutlineInputBorder(
|
||||||
borderSide:
|
borderSide:
|
||||||
BorderSide(color: Color.fromARGB(255, 184, 0, 0)),
|
BorderSide(color: Color.fromARGB(255, 184, 0, 0)),
|
||||||
borderRadius: BorderRadius.all(
|
borderRadius: BorderRadius.all(
|
||||||
Radius.circular(50),
|
Radius.circular(50),
|
||||||
)),
|
),
|
||||||
|
),
|
||||||
hintText: 'Contraseña',
|
hintText: 'Contraseña',
|
||||||
fillColor: const Color.fromARGB(255, 239, 239, 239),
|
fillColor: const Color.fromARGB(255, 239, 239, 239),
|
||||||
filled: true,
|
filled: true,
|
||||||
@@ -217,7 +221,7 @@ class _LoginEmailScreenState extends State<LoginEmailScreen> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 20),
|
padding: const EdgeInsets.symmetric(vertical: 10),
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.pushNamed(context, '/resetpassword');
|
Navigator.pushNamed(context, '/resetpassword');
|
||||||
@@ -231,7 +235,9 @@ class _LoginEmailScreenState extends State<LoginEmailScreen> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
PaddingButtomBottom(
|
PaddingButtomBottom(
|
||||||
formKey: _formKey, controller: controller),
|
formKey: _formKey,
|
||||||
|
controller: controller,
|
||||||
|
),
|
||||||
const RichTxtBottom()
|
const RichTxtBottom()
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -485,7 +491,7 @@ class PaddingButtomBottom extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.only(bottom: 40),
|
padding: const EdgeInsets.only(bottom: 25),
|
||||||
child: Center(
|
child: Center(
|
||||||
child: PrimaryButton(
|
child: PrimaryButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
|||||||
@@ -177,26 +177,30 @@ class _RegisterScreenState extends State<RegisterScreen> {
|
|||||||
},
|
},
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
border: OutlineInputBorder(
|
border: OutlineInputBorder(
|
||||||
borderSide: BorderSide(color: Color(0xFFECECEC)),
|
borderSide: BorderSide(color: Color(0xFFECECEC)),
|
||||||
borderRadius: BorderRadius.all(
|
borderRadius: BorderRadius.all(
|
||||||
Radius.circular(50),
|
Radius.circular(50),
|
||||||
)),
|
),
|
||||||
|
),
|
||||||
enabledBorder: OutlineInputBorder(
|
enabledBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(color: Color(0xFFECECEC)),
|
borderSide: BorderSide(color: Color(0xFFECECEC)),
|
||||||
borderRadius: BorderRadius.all(
|
borderRadius: BorderRadius.all(
|
||||||
Radius.circular(50),
|
Radius.circular(50),
|
||||||
)),
|
),
|
||||||
|
),
|
||||||
focusedBorder: OutlineInputBorder(
|
focusedBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(color: Color(0xFFECECEC)),
|
borderSide: BorderSide(color: Color(0xFFECECEC)),
|
||||||
borderRadius: BorderRadius.all(
|
borderRadius: BorderRadius.all(
|
||||||
Radius.circular(50),
|
Radius.circular(50),
|
||||||
)),
|
),
|
||||||
|
),
|
||||||
errorBorder: OutlineInputBorder(
|
errorBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide:
|
||||||
color: Color.fromARGB(255, 184, 0, 0)),
|
BorderSide(color: Color.fromARGB(255, 184, 0, 0)),
|
||||||
borderRadius: BorderRadius.all(
|
borderRadius: BorderRadius.all(
|
||||||
Radius.circular(50),
|
Radius.circular(50),
|
||||||
)),
|
),
|
||||||
|
),
|
||||||
hintText: 'Hello@gmail.com',
|
hintText: 'Hello@gmail.com',
|
||||||
fillColor: Color.fromARGB(255, 239, 239, 239),
|
fillColor: Color.fromARGB(255, 239, 239, 239),
|
||||||
filled: true,
|
filled: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user