Files
buzz/mobile/test/shared/widgets/ios_message_create_button_test.dart
klopez4212 68d367cf23 fix(mobile): align channel indicators and Duo section menus (#9703)
Align the mobile channel-list indicators to one trailing column. The
unread dot stays at the right, with the temporary clock and mute
indicator to its left when present. Duo's native menus for built-in and
custom sections now place their ellipsis in the same 20-point slot while
preserving the full 44-point tap target and native menu behavior.

Validation: full mobile suite (5,098 passed, 71 skipped), 27 crypto
tests, clean Flutter analysis, native UIKit menu geometry/hit-target
checks, and a successful iOS release build. Installed on iPhone Air and
Duo using existing saved state; inspected the Duo's native section-menu
placement. Regression coverage checks row alignment, clock ordering,
native bridge geometry, and the full menu hit area.

---------

Signed-off-by: kenny lopez <klopez4212@gmail.com>
Co-authored-by: Terp <5856f6900e8e0a4e0ea1f4f8d2ee33e4753d2119bc122f94ecafc660b46c0511@buzz.block.builderlab.xyz>
2026-11-19 16:38:55 +00:00

36 lines
1.1 KiB
Dart

import 'package:buzz/shared/theme/theme.dart';
import 'package:buzz/shared/widgets/ios_message_create_button.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
void main() {
testWidgets('trailing icon slot preserves the full native hit target', (
tester,
) async {
await tester.pumpWidget(
ProviderScope(
child: MaterialApp(
theme: AppTheme.light(),
home: const Scaffold(
body: IosMessageCreateButton(
icon: 'more',
width: 44,
height: 44,
trailingIconSlotWidth: 20,
actions: [],
),
),
),
),
);
final view = tester.widget<UiKitView>(find.byType(UiKitView));
final params = view.creationParams as Map;
expect(tester.getSize(find.byType(UiKitView)), const Size(44, 44));
expect(params['buttonCenterX'], 34);
expect(params['controlWidth'], 20);
expect(params['hitTargetWidth'], 44);
expect(params['hitTargetHeight'], 44);
});
}