fix(chat): replace video call icon with white phone on blue circle

related to: #1057
This commit is contained in:
2026-11-16 16:46:02 +03:00
parent c6664f4d83
commit a74119dabd
2 changed files with 15 additions and 4 deletions

View File

@@ -1050,10 +1050,9 @@ class _ChatHeaderVideoCallButton extends StatelessWidget {
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
final tooltipMessage = S.maybeOf(context)?.video_call;
final button = Material(
color: theme.colorScheme.onPrimary,
color: appTheme.blueA400,
borderRadius: BorderRadius.circular(20),
elevation: 0,
child: InkWell(
@@ -1064,8 +1063,8 @@ class _ChatHeaderVideoCallButton extends StatelessWidget {
height: 40,
child: Center(
child: Icon(
Icons.videocam_rounded,
color: appTheme.blueA400,
Icons.call_rounded,
color: appTheme.whiteA700,
size: 18,
),
),

View File

@@ -197,6 +197,18 @@ void main() {
expect(find.byType(ChatScreen), findsOneWidget);
expect(find.byType(RefreshIndicator), findsOneWidget);
expect(find.text('User Two'), findsOneWidget);
final callIconFinder = find.byIcon(Icons.call_rounded);
expect(callIconFinder, findsOneWidget);
expect(find.byIcon(Icons.videocam_rounded), findsNothing);
final callIcon = tester.widget<Icon>(callIconFinder);
expect(callIcon.color, appTheme.whiteA700);
final buttonMaterial = tester.widget<Material>(
find
.ancestor(of: callIconFinder, matching: find.byType(Material))
.first,
);
expect(buttonMaterial.color, appTheme.blueA400);
expect(find.text('hello'), findsOneWidget);
expect(find.text('hi'), findsOneWidget);
expect(find.text('sending...'), findsOneWidget);