From 48fc1215c9a5977060013c8a9aef38676c5145fc Mon Sep 17 00:00:00 2001 From: Lucas Delanier Date: Fri, 21 Oct 2022 11:29:16 +0200 Subject: [PATCH] hide password in textfield --- .../lib/views/pages/home/p_home.dart | 35 +++---------------- .../lib/views/pages/sign_in/p_sign_in.dart | 10 +----- .../lib/views/pages/sign_up/p_sign_up.dart | 13 ++----- 3 files changed, 8 insertions(+), 50 deletions(-) diff --git a/Sources/dafl_project_flutter/lib/views/pages/home/p_home.dart b/Sources/dafl_project_flutter/lib/views/pages/home/p_home.dart index 737d33c..1f6f308 100644 --- a/Sources/dafl_project_flutter/lib/views/pages/home/p_home.dart +++ b/Sources/dafl_project_flutter/lib/views/pages/home/p_home.dart @@ -28,30 +28,12 @@ class _HomePageState extends State { crossAxisAlignment: CrossAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.end, children: [ - + Spacer(), Image.asset( 'assets/images/Logo.png', - width: 200, + width: 230, ), - SizedBox(height: height*0.04,), - SizedBox( - height: 55, - width: width*0.75, - child: ElevatedButton( - style: ElevatedButton.styleFrom( - backgroundColor: Color(0xFF24CF5F), - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular(15.0), - ),// background// foreground - ), - onPressed: () { - }, - child: Text("CONTINUER AVEC SPOTIFY", - style: TextStyle(color: Colors.white ,fontSize: 17, fontWeight: FontWeight.bold), - textAlign: TextAlign.center, - ), - ),), - SizedBox(height: height*0.015,), + SizedBox(height: height*0.08,), SizedBox( height: 55, width: width*0.75, @@ -76,7 +58,7 @@ class _HomePageState extends State { textAlign: TextAlign.center, ), ),), - SizedBox(height: 220,), + Spacer(), GestureDetector( onTap: (){ Navigator.of(context).push( @@ -112,15 +94,6 @@ class _HomePageState extends State { ], ), - Align( - alignment: Alignment.topRight, - child: Container( - padding: EdgeInsets.fromLTRB(0, 20, 20, 0), - child: Text("v1.0", - style: TextStyle(fontFamily: 'DMSans', color: Colors.white.withOpacity(0.5) ,fontSize: 17, fontWeight: FontWeight.w700), - ), - ) - ), ], ), diff --git a/Sources/dafl_project_flutter/lib/views/pages/sign_in/p_sign_in.dart b/Sources/dafl_project_flutter/lib/views/pages/sign_in/p_sign_in.dart index 2ead9e9..dad122d 100644 --- a/Sources/dafl_project_flutter/lib/views/pages/sign_in/p_sign_in.dart +++ b/Sources/dafl_project_flutter/lib/views/pages/sign_in/p_sign_in.dart @@ -111,6 +111,7 @@ class _SignInPageState extends State { ),Padding(padding: EdgeInsets.fromLTRB(50, 0, 20, 0), child: TextField( + obscureText: true, decoration: InputDecoration( border: InputBorder.none, ), @@ -220,15 +221,6 @@ class _SignInPageState extends State { SizedBox(height: 60,), ], ), - Align( - alignment: Alignment.topRight, - child: Container( - padding: EdgeInsets.fromLTRB(0, 20, 20, 0), - child: Text("v1.0", - style: TextStyle(fontFamily: 'DMSans', color: Colors.white.withOpacity(0.5) ,fontSize: 17, fontWeight: FontWeight.w700), - ), - ) - ), ], ), diff --git a/Sources/dafl_project_flutter/lib/views/pages/sign_up/p_sign_up.dart b/Sources/dafl_project_flutter/lib/views/pages/sign_up/p_sign_up.dart index 167928d..fbfcca7 100644 --- a/Sources/dafl_project_flutter/lib/views/pages/sign_up/p_sign_up.dart +++ b/Sources/dafl_project_flutter/lib/views/pages/sign_up/p_sign_up.dart @@ -112,6 +112,7 @@ class _SignUpPageState extends State { ),Padding(padding: EdgeInsets.fromLTRB(50, 0, 20, 0), child: TextField( + obscureText: true, decoration: InputDecoration( border: InputBorder.none, ), @@ -155,6 +156,7 @@ class _SignUpPageState extends State { ),Padding(padding: EdgeInsets.fromLTRB(50, 0, 20, 0), child: TextField( + obscureText: true, controller: passwordconfirm, decoration: InputDecoration( border: InputBorder.none, @@ -272,7 +274,7 @@ class _SignUpPageState extends State { Row( mainAxisAlignment: MainAxisAlignment.center, children: [ - Text('Tu n’as déjà un compte?', style: TextStyle(color: Colors.white, fontWeight: FontWeight.normal, fontSize: 17)), + Text('Tu as déjà un compte?', style: TextStyle(color: Colors.white, fontWeight: FontWeight.normal, fontSize: 17)), GestureDetector( onTap: () { Navigator.of(context).push( @@ -290,15 +292,6 @@ class _SignUpPageState extends State { SizedBox(height: 60,), ], ), - Align( - alignment: Alignment.topRight, - child: Container( - padding: EdgeInsets.fromLTRB(0, 20, 20, 0), - child: Text("v1.0", - style: TextStyle(fontFamily: 'DMSans', color: Colors.white.withOpacity(0.5) ,fontSize: 17, fontWeight: FontWeight.w700), - ), - ) - ), ], ),