1

I am using google_maps_flutter, log is too noisy with E/AccesibilityNodeInfo (17886) Rejecting attempt to make a view its own child

Its hasn't caused any error yet, app is working fine I am just wondering why the message is being displayed constantly even when I am not doing anything on the screen.

import 'dart:async';

import 'package:flutter/material.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';

import '../../models/place.dart';

class MapScreen extends StatefulWidget {
  final bool isSelecting;
  final PlaceLocation initialLocation;
  MapScreen({
    this.isSelecting = false,
    this.initialLocation =
        const PlaceLocation(latitude: 37.422, longitude: -122.084),
  });
  @override
  _MapScreenState createState() => _MapScreenState();
}

class _MapScreenState extends State<MapScreen> {
  Completer<GoogleMapController> _mapController = Completer();
  LatLng _pickedLocation;
  void _selectLocation(LatLng position) {
    setState(() {
      _pickedLocation = position;
    });
  }

  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      appBar: AppBar(
        title: Text('Map'),
        actions: [
          IconButton(
            icon: Icon(Icons.check),
            onPressed: () {},
          ),
        ],
      ),
      body: GoogleMap(
        onMapCreated: (controller) {
          _mapController.complete(controller);
        },
        initialCameraPosition: CameraPosition(
          target: LatLng(
            widget.initialLocation.latitude,
            widget.initialLocation.longitude,
          ),
          zoom: 16,
        ),
        myLocationEnabled: true,
        myLocationButtonEnabled: true,
        onTap: widget.isSelecting ? _selectLocation : null,
        markers: _pickedLocation == null
            ? null
            : {
                Marker(
                  markerId: MarkerId('1'),
                  position: _pickedLocation,
                ),
              },
      ),
    );
  }
}

here is the code I am using

Gilbert Gabriel
  • 422
  • 2
  • 8
  • 23

0 Answers0