common dialog InputDecoration
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
9aecd28702
commit
cc0f4509a7
@ -634,8 +634,14 @@ class CustomAlertDialog extends StatelessWidget {
|
|||||||
title: title,
|
title: title,
|
||||||
contentPadding: EdgeInsets.symmetric(
|
contentPadding: EdgeInsets.symmetric(
|
||||||
horizontal: contentPadding ?? 25, vertical: 10),
|
horizontal: contentPadding ?? 25, vertical: 10),
|
||||||
content:
|
content: ConstrainedBox(
|
||||||
ConstrainedBox(constraints: contentBoxConstraints, child: content),
|
constraints: contentBoxConstraints,
|
||||||
|
child: Theme(
|
||||||
|
data: ThemeData(
|
||||||
|
inputDecorationTheme: InputDecorationTheme(
|
||||||
|
isDense: true, contentPadding: EdgeInsets.all(15)),
|
||||||
|
),
|
||||||
|
child: content)),
|
||||||
actions: actions,
|
actions: actions,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -597,8 +597,6 @@ void setPasswordDialog() async {
|
|||||||
child: TextField(
|
child: TextField(
|
||||||
obscureText: true,
|
obscureText: true,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
isDense: true,
|
|
||||||
contentPadding: EdgeInsets.all(15),
|
|
||||||
labelText: translate('Password'),
|
labelText: translate('Password'),
|
||||||
border: const OutlineInputBorder(),
|
border: const OutlineInputBorder(),
|
||||||
errorText: errMsg0.isNotEmpty ? errMsg0 : null),
|
errorText: errMsg0.isNotEmpty ? errMsg0 : null),
|
||||||
@ -625,8 +623,6 @@ void setPasswordDialog() async {
|
|||||||
child: TextField(
|
child: TextField(
|
||||||
obscureText: true,
|
obscureText: true,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
isDense: true,
|
|
||||||
contentPadding: EdgeInsets.all(15),
|
|
||||||
border: const OutlineInputBorder(),
|
border: const OutlineInputBorder(),
|
||||||
labelText: translate('Confirmation'),
|
labelText: translate('Confirmation'),
|
||||||
errorText: errMsg1.isNotEmpty ? errMsg1 : null),
|
errorText: errMsg1.isNotEmpty ? errMsg1 : null),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user