From 3129e51eb45f2966d2642c6241ced0a43121e4d0 Mon Sep 17 00:00:00 2001 From: alexis Date: Fri, 7 Mar 2025 22:40:16 +0000 Subject: [PATCH] Add CallPage for initiating calls with contact details (#37) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Demo call page avec les features de base: - Haut parleur - Couper/activer micro - keypad - raccrocher - Display Icing state (toucher pour switch l'état) S'active en faisant un appui long sur le bouton d'appel depuis les détails du contact. Compatible avec l'obfuscation des contacts. Co-authored-by: AlexisDanlos <91090088+AlexisDanlos@users.noreply.github.com> Reviewed-on: https://git.gmoker.com/icing/monorepo/pulls/37 Co-authored-by: alexis Co-committed-by: alexis --- .../lib/features/contacts/widgets/contact_modal.dart | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dialer/lib/features/contacts/widgets/contact_modal.dart b/dialer/lib/features/contacts/widgets/contact_modal.dart index 7938045..ba9c803 100644 --- a/dialer/lib/features/contacts/widgets/contact_modal.dart +++ b/dialer/lib/features/contacts/widgets/contact_modal.dart @@ -265,6 +265,18 @@ class _ContactModalState extends State { await _callService.makeGsmCall(context, phoneNumber: phoneNumber); } }, + onLongPress: () { + // Navigate to the beautiful calling page demo + Navigator.push( + context, + MaterialPageRoute( + builder: (_) => CallPage( + displayName: widget.contact.displayName, + thumbnail: widget.contact.thumbnail, + ), + ), + ); + }, ), ListTile( leading: const Icon(Icons.message, color: Colors.blue),