removing fetch from contacts when on web
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user