Merge pull request #4816 from dignow/refact/login_close_inkwell
refact close inkwell on login dialog
This commit is contained in:
commit
71ce9e9f0e
@ -509,15 +509,15 @@ Future<bool?> loginDialog() async {
|
|||||||
InkWell(
|
InkWell(
|
||||||
child: Icon(
|
child: Icon(
|
||||||
Icons.close,
|
Icons.close,
|
||||||
size: 22,
|
size: 25,
|
||||||
color: MyTheme.currentThemeMode() == ThemeMode.dark
|
// No need to handle the branch of null.
|
||||||
? Colors.white70
|
// Because we can ensure the color is not null when debug.
|
||||||
: Colors.black54,
|
color: Theme.of(context).textTheme.titleLarge?.color?.withOpacity(0.55),
|
||||||
),
|
),
|
||||||
onTap: onDialogCancel,
|
onTap: onDialogCancel,
|
||||||
hoverColor: Colors.red,
|
hoverColor: Colors.red,
|
||||||
borderRadius: BorderRadius.circular(5),
|
borderRadius: BorderRadius.circular(5),
|
||||||
).marginOnly(top: 5, right: 5),
|
).marginOnly(top: 10, right: 15),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
final titlePadding = EdgeInsets.fromLTRB(MyTheme.dialogPadding, 0, 0, 0);
|
final titlePadding = EdgeInsets.fromLTRB(MyTheme.dialogPadding, 0, 0, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user