remove padding from input fields

This commit is contained in:
2024-07-30 11:02:12 +02:00
parent beba15afdb
commit 4b270ca00b
5 changed files with 239 additions and 254 deletions

View File

@@ -90,9 +90,7 @@ class _MyDateFieldState extends State<MyDateField> {
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 25.0),
child: TextField(
return TextField(
style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor()),
controller: widget.controller,
@@ -144,7 +142,6 @@ class _MyDateFieldState extends State<MyDateField> {
onTap: () {
_selectDate(context);
},
),
);
}
}

View File

@@ -85,9 +85,7 @@ class _MyMLTextFieldState extends State<MyMLTextField> {
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 25.0),
child: TextField(
return TextField(
style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor()),
textAlign: TextAlign.start,
@@ -137,7 +135,6 @@ class _MyMLTextFieldState extends State<MyMLTextField> {
color: MzanziInnovationHub.of(context)!.theme.secondaryColor()),
),
),
),
);
}
}

View File

@@ -87,9 +87,7 @@ class _MyPassFieldState extends State<MyPassField> {
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 25.0),
child: TextField(
return TextField(
controller: widget.controller,
style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor()),
@@ -145,7 +143,6 @@ class _MyPassFieldState extends State<MyPassField> {
),
),
),
),
);
}
}

View File

@@ -91,9 +91,7 @@ class _MySearchFieldState extends State<MySearchField> {
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 25.0),
child: TextField(
return TextField(
style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor()),
onChanged: widget.onChanged,
@@ -147,7 +145,6 @@ class _MySearchFieldState extends State<MySearchField> {
color: MzanziInnovationHub.of(context)!.theme.secondaryColor()),
),
),
),
);
}
}

View File

@@ -85,9 +85,7 @@ class _MyTextFieldState extends State<MyTextField> {
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 25.0),
child: TextField(
return TextField(
style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor()),
controller: widget.controller,
@@ -139,7 +137,6 @@ class _MyTextFieldState extends State<MyTextField> {
color: MzanziInnovationHub.of(context)!.theme.secondaryColor()),
),
),
),
);
}
}