removing fetch from contacts when on web

This commit is contained in:
2025-12-08 23:43:20 +02:00
parent 5f3e3c94f0
commit 10d48043cf

View File

@@ -1,5 +1,6 @@
import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_contacts/flutter_contacts.dart';
import 'package:go_router/go_router.dart';
@@ -203,6 +204,7 @@ class _RecipientsScreenState extends State<RecipientsScreen>
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(fieldName, style: TextStyle(fontSize: 16)),
if(!kIsWeb)
TextButton(
onPressed: () async {
if (await FlutterContacts.requestPermission()) {