Add CallPage for initiating calls with contact details (#37)
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: #37 Co-authored-by: alexis <alexis.danlos@epitech.eu> Co-committed-by: alexis <alexis.danlos@epitech.eu>
This commit is contained in:
parent
2894dce1bc
commit
3129e51eb4
@ -265,6 +265,18 @@ class _ContactModalState extends State<ContactModal> {
|
|||||||
await _callService.makeGsmCall(context, phoneNumber: phoneNumber);
|
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(
|
ListTile(
|
||||||
leading: const Icon(Icons.message, color: Colors.blue),
|
leading: const Icon(Icons.message, color: Colors.blue),
|
||||||
|
Loading…
Reference in New Issue
Block a user