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,
|
||||
contentPadding: EdgeInsets.symmetric(
|
||||
horizontal: contentPadding ?? 25, vertical: 10),
|
||||
content:
|
||||
ConstrainedBox(constraints: contentBoxConstraints, child: content),
|
||||
content: ConstrainedBox(
|
||||
constraints: contentBoxConstraints,
|
||||
child: Theme(
|
||||
data: ThemeData(
|
||||
inputDecorationTheme: InputDecorationTheme(
|
||||
isDense: true, contentPadding: EdgeInsets.all(15)),
|
||||
),
|
||||
child: content)),
|
||||
actions: actions,
|
||||
),
|
||||
);
|
||||
|
@ -597,8 +597,6 @@ void setPasswordDialog() async {
|
||||
child: TextField(
|
||||
obscureText: true,
|
||||
decoration: InputDecoration(
|
||||
isDense: true,
|
||||
contentPadding: EdgeInsets.all(15),
|
||||
labelText: translate('Password'),
|
||||
border: const OutlineInputBorder(),
|
||||
errorText: errMsg0.isNotEmpty ? errMsg0 : null),
|
||||
@ -625,8 +623,6 @@ void setPasswordDialog() async {
|
||||
child: TextField(
|
||||
obscureText: true,
|
||||
decoration: InputDecoration(
|
||||
isDense: true,
|
||||
contentPadding: EdgeInsets.all(15),
|
||||
border: const OutlineInputBorder(),
|
||||
labelText: translate('Confirmation'),
|
||||
errorText: errMsg1.isNotEmpty ? errMsg1 : null),
|
||||
|
Loading…
x
Reference in New Issue
Block a user