fix: makeGsmCall in historypage
This commit is contained in:
parent
9bfb55821d
commit
b042a68a8e
@ -419,7 +419,7 @@ class _HistoryPageState extends State<HistoryPage>
|
|||||||
icon: const Icon(Icons.phone, color: Colors.green),
|
icon: const Icon(Icons.phone, color: Colors.green),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
if (contact.phones.isNotEmpty) {
|
if (contact.phones.isNotEmpty) {
|
||||||
_callService.makeGsmCall(contact.phones.first.number);
|
_callService.makeGsmCall(context, phoneNumber: contact.phones.first.number);
|
||||||
} else {
|
} else {
|
||||||
ScaffoldMessenger.of(context).showSnackBar(
|
ScaffoldMessenger.of(context).showSnackBar(
|
||||||
const SnackBar(
|
const SnackBar(
|
||||||
|
Loading…
Reference in New Issue
Block a user