mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-24 04:12:20 +08:00
refact close inkwell on login dialog
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
parent
8ab2a79fa2
commit
06638337bf
@ -509,15 +509,15 @@ Future<bool?> loginDialog() async {
|
||||
InkWell(
|
||||
child: Icon(
|
||||
Icons.close,
|
||||
size: 22,
|
||||
color: MyTheme.currentThemeMode() == ThemeMode.dark
|
||||
? Colors.white70
|
||||
: Colors.black54,
|
||||
size: 25,
|
||||
// No need to handle the branch of null.
|
||||
// Because we can ensure the color is not null when debug.
|
||||
color: Theme.of(context).textTheme.titleLarge?.color?.withOpacity(0.55),
|
||||
),
|
||||
onTap: onDialogCancel,
|
||||
hoverColor: Colors.red,
|
||||
borderRadius: BorderRadius.circular(5),
|
||||
).marginOnly(top: 5, right: 5),
|
||||
).marginOnly(top: 10, right: 15),
|
||||
],
|
||||
);
|
||||
final titlePadding = EdgeInsets.fromLTRB(MyTheme.dialogPadding, 0, 0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user