size padding

This commit is contained in:
2024-07-30 14:11:15 +02:00
parent 2b5019c53f
commit 91e2f81692
2 changed files with 175 additions and 171 deletions

View File

@@ -229,6 +229,8 @@ class _RegisterState extends State<Register> {
child: Center( child: Center(
child: SingleChildScrollView( child: SingleChildScrollView(
physics: const BouncingScrollPhysics(), physics: const BouncingScrollPhysics(),
child: Padding(
padding: const EdgeInsets.all(25.0),
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
@@ -236,8 +238,9 @@ class _RegisterState extends State<Register> {
Icon( Icon(
Icons.lock, Icons.lock,
size: 100, size: 100,
color: color: MzanziInnovationHub.of(context)!
MzanziInnovationHub.of(context)!.theme.secondaryColor(), .theme
.secondaryColor(),
), ),
//spacer //spacer
const SizedBox(height: 10), const SizedBox(height: 10),
@@ -265,7 +268,7 @@ class _RegisterState extends State<Register> {
), ),
), ),
//spacer //spacer
const SizedBox(height: 25), const SizedBox(height: 10),
//password input //password input
SizedBox( SizedBox(
width: 500.0, width: 500.0,
@@ -276,7 +279,7 @@ class _RegisterState extends State<Register> {
), ),
), ),
//spacer //spacer
const SizedBox(height: 25), const SizedBox(height: 10),
//password input //password input
SizedBox( SizedBox(
width: 500.0, width: 500.0,
@@ -297,8 +300,9 @@ class _RegisterState extends State<Register> {
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzanziInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
textColor: textColor: MzanziInnovationHub.of(context)!
MzanziInnovationHub.of(context)!.theme.primaryColor(), .theme
.primaryColor(),
onTap: () async { onTap: () async {
if (emailController.text.isEmpty || if (emailController.text.isEmpty ||
passwordController.text.isEmpty) { passwordController.text.isEmpty) {
@@ -320,10 +324,8 @@ class _RegisterState extends State<Register> {
), ),
//register text //register text
SizedBox( SizedBox(
width: 450.0, width: 500.0,
height: 100.0, //height: 100.0,
child: Padding(
padding: const EdgeInsets.all(30.0),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.end, mainAxisAlignment: MainAxisAlignment.end,
children: [ children: [
@@ -349,7 +351,6 @@ class _RegisterState extends State<Register> {
) )
], ],
), ),
),
) )
], ],
), ),
@@ -357,6 +358,7 @@ class _RegisterState extends State<Register> {
), ),
), ),
), ),
),
); );
} }
} }

View File

@@ -120,6 +120,8 @@ class _SignInState extends State<SignIn> {
child: Center( child: Center(
child: SingleChildScrollView( child: SingleChildScrollView(
physics: const BouncingScrollPhysics(), physics: const BouncingScrollPhysics(),
child: Padding(
padding: const EdgeInsets.all(25.0),
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
@@ -127,8 +129,9 @@ class _SignInState extends State<SignIn> {
Icon( Icon(
Icons.lock, Icons.lock,
size: 100, size: 100,
color: color: MzanziInnovationHub.of(context)!
MzanziInnovationHub.of(context)!.theme.secondaryColor(), .theme
.secondaryColor(),
), ),
//spacer //spacer
const SizedBox(height: 10), const SizedBox(height: 10),
@@ -156,7 +159,7 @@ class _SignInState extends State<SignIn> {
), ),
), ),
//spacer //spacer
const SizedBox(height: 25), const SizedBox(height: 10),
//password input //password input
SizedBox( SizedBox(
width: 500.0, width: 500.0,
@@ -177,8 +180,9 @@ class _SignInState extends State<SignIn> {
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzanziInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
textColor: textColor: MzanziInnovationHub.of(context)!
MzanziInnovationHub.of(context)!.theme.primaryColor(), .theme
.primaryColor(),
onTap: () async { onTap: () async {
if (emailController.text.isEmpty || if (emailController.text.isEmpty ||
passwordController.text.isEmpty) { passwordController.text.isEmpty) {
@@ -203,10 +207,8 @@ class _SignInState extends State<SignIn> {
//const SizedBox(height: 30), //const SizedBox(height: 30),
//register text //register text
SizedBox( SizedBox(
width: 450.0, width: 500.0,
height: 100.0, //height: 100.0,
child: Padding(
padding: const EdgeInsets.all(15.0),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.end, mainAxisAlignment: MainAxisAlignment.end,
children: [ children: [
@@ -237,7 +239,6 @@ class _SignInState extends State<SignIn> {
), ),
], ],
), ),
),
) )
], ],
), ),
@@ -245,6 +246,7 @@ class _SignInState extends State<SignIn> {
), ),
), ),
), ),
),
); );
} }
} }