Increase floating tab icon sizes

This commit is contained in:
2026-11-01 11:33:01 +00:00
parent 5346759665
commit fea3d770b4
2 changed files with 54 additions and 18 deletions
@@ -94,6 +94,33 @@ void main() {
for (final cupertino in [false, true]) {
final host = cupertino ? 'Cupertino' : 'Material';
testWidgets('$host: icon and selection circle sizes grow together', (
tester,
) async {
await pump(
tester,
cupertino: cupertino,
size: const Size(390, 844),
child: Align(
alignment: Alignment.bottomCenter,
child: bar(cupertino: cupertino, count: 2, selected: 0),
),
);
final icon = tester.getRect(find.byIcon(icons.first));
final mark = circle(tester, 0);
final iconSize = cupertino
? FloatingDestinationBar.cupertinoIconSize
: FloatingDestinationBar.materialIconSize;
final highlightSize = cupertino
? FloatingDestinationBar.cupertinoHighlightSize
: FloatingDestinationBar.materialHighlightSize;
expect(icon.width, iconSize);
expect(icon.height, iconSize);
expect(mark.width, highlightSize);
expect(mark.height, highlightSize);
});
for (final placement in placements) {
testWidgets('$host ${placement.name}: compact at the bottom right; the '
'outer circles keep the top gap from the sides and neighbours', (