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