Enlarge viewer controls and respect safe areas
This commit is contained in:
@@ -257,16 +257,18 @@ class ArtifactIconAction extends StatelessWidget {
|
||||
label: label,
|
||||
child: CupertinoButton(
|
||||
padding: inBar ? EdgeInsets.zero : const EdgeInsets.all(8),
|
||||
minimumSize: const Size(44, 44),
|
||||
onPressed: onPressed,
|
||||
child: busy
|
||||
? const CupertinoActivityIndicator(radius: 9)
|
||||
: Icon(cupertinoIcon),
|
||||
: Icon(cupertinoIcon, size: 30),
|
||||
),
|
||||
);
|
||||
}
|
||||
return IconButton(
|
||||
tooltip: label,
|
||||
visualDensity: inBar ? null : VisualDensity.compact,
|
||||
constraints: const BoxConstraints(minWidth: 48, minHeight: 48),
|
||||
padding: EdgeInsets.zero,
|
||||
onPressed: onPressed,
|
||||
icon: busy
|
||||
? const SizedBox(
|
||||
@@ -274,7 +276,7 @@ class ArtifactIconAction extends StatelessWidget {
|
||||
height: 18,
|
||||
child: CircularProgressIndicator(strokeWidth: 2),
|
||||
)
|
||||
: Icon(icon),
|
||||
: Icon(icon, size: 28),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user