unifiy left labeled text input

This commit is contained in:
grummbeer 2023-02-15 13:43:38 +01:00
parent c2fa74dbbc
commit b4d4b4249e
2 changed files with 32 additions and 57 deletions

View File

@ -996,14 +996,11 @@ void _rdpDialog(String id) async {
Row(
children: [
ConstrainedBox(
constraints: const BoxConstraints(minWidth: 100),
constraints: const BoxConstraints(minWidth: 140),
child: Text(
"${translate('Port')}:",
textAlign: TextAlign.start,
).marginOnly(bottom: 16.0)),
const SizedBox(
width: 24.0,
),
textAlign: TextAlign.right,
).marginOnly(right: 10)),
Expanded(
child: TextField(
inputFormatters: [
@ -1017,21 +1014,15 @@ void _rdpDialog(String id) async {
),
),
],
),
const SizedBox(
height: 8.0,
),
).marginOnly(bottom: 8),
Row(
children: [
ConstrainedBox(
constraints: const BoxConstraints(minWidth: 100),
constraints: const BoxConstraints(minWidth: 140),
child: Text(
"${translate('Username')}:",
textAlign: TextAlign.start,
).marginOnly(bottom: 16.0)),
const SizedBox(
width: 24.0,
),
textAlign: TextAlign.right,
).marginOnly(right: 10)),
Expanded(
child: TextField(
decoration:
@ -1040,19 +1031,15 @@ void _rdpDialog(String id) async {
),
),
],
),
const SizedBox(
height: 8.0,
),
).marginOnly(bottom: 8),
Row(
children: [
ConstrainedBox(
constraints: const BoxConstraints(minWidth: 100),
child: Text("${translate('Password')}:")
.marginOnly(bottom: 16.0)),
const SizedBox(
width: 24.0,
),
constraints: const BoxConstraints(minWidth: 140),
child: Text(
"${translate('Password')}:",
textAlign: TextAlign.right,
).marginOnly(right: 10)),
Expanded(
child: Obx(() => TextField(
obscureText: secure.value,
@ -1067,7 +1054,7 @@ void _rdpDialog(String id) async {
)),
),
],
),
).marginOnly(bottom: 8),
],
),
),

View File

@ -1856,12 +1856,11 @@ void changeSocks5Proxy() async {
Row(
children: [
ConstrainedBox(
constraints: const BoxConstraints(minWidth: 100),
child: Text('${translate("Hostname")}:')
.marginOnly(bottom: 16.0)),
const SizedBox(
width: 24.0,
),
constraints: const BoxConstraints(minWidth: 140),
child: Text(
'${translate("Hostname")}:',
textAlign: TextAlign.right,
).marginOnly(right: 10)),
Expanded(
child: TextField(
decoration: InputDecoration(
@ -1872,19 +1871,15 @@ void changeSocks5Proxy() async {
),
),
],
),
const SizedBox(
height: 8.0,
),
).marginOnly(bottom: 8),
Row(
children: [
ConstrainedBox(
constraints: const BoxConstraints(minWidth: 100),
child: Text('${translate("Username")}:')
.marginOnly(bottom: 16.0)),
const SizedBox(
width: 24.0,
),
constraints: const BoxConstraints(minWidth: 140),
child: Text(
'${translate("Username")}:',
textAlign: TextAlign.right,
).marginOnly(right: 10)),
Expanded(
child: TextField(
decoration: const InputDecoration(
@ -1894,19 +1889,15 @@ void changeSocks5Proxy() async {
),
),
],
),
const SizedBox(
height: 8.0,
),
).marginOnly(bottom: 8),
Row(
children: [
ConstrainedBox(
constraints: const BoxConstraints(minWidth: 100),
child: Text('${translate("Password")}:')
.marginOnly(bottom: 16.0)),
const SizedBox(
width: 24.0,
),
constraints: const BoxConstraints(minWidth: 140),
child: Text(
'${translate("Password")}:',
textAlign: TextAlign.right,
).marginOnly(right: 10)),
Expanded(
child: Obx(() => TextField(
obscureText: obscure.value,
@ -1921,10 +1912,7 @@ void changeSocks5Proxy() async {
)),
),
],
),
const SizedBox(
height: 8.0,
),
).marginOnly(bottom: 8),
Offstage(
offstage: !isInProgress, child: const LinearProgressIndicator())
],