Enlarge viewer controls and respect safe areas

This commit is contained in:
2026-11-02 17:50:27 +00:00
parent e2ba091f7d
commit e65e2800e6
7 changed files with 188 additions and 152 deletions
@@ -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),
);
}
}