# Dynatrace flutter plugin issue

**URL:** <https://community.dynatrace.com/t/dynatrace-flutter-plugin-issue/35664>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic, user-actions, mobile-monitoring\
**Created:** [June 29, 2022, 7:27am UTC](https://community.dynatrace.com/t/dynatrace-flutter-plugin-issue/35664 "2022-06-29T07:27:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![saikishore](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@saikishore](https://community.dynatrace.com/u/saikishore)\
**Post date:** [June 29, 2022, 7:27am UTC](https://community.dynatrace.com/t/dynatrace-flutter-plugin-issue/35664/1 "2022-06-29T07:27:50Z")

</div>

After implementing the monitoring of a Flutter application, following all the paths in the directory and the necessary configuration points informed in the flutter plugin.

> **[dynatrace\_flutter\_plugin | Flutter package](https://pub.dev/packages/dynatrace_flutter_plugin)**
>
> The Dynatrace Flutter plugin helps auto-instrument your Flutter app with Dynatrace OneAgent for Android and iOS. It also provides an API to add manual instrumentation.

After following the installation steps I’m getting the following below error :

**../flutter/.pub-cache/hosted/pub.dartlang.org/dynatrace\_flutter\_plugin-2.237.0/lib/src/agent/http/http\_client.dart:5:7:**

**Error: The non-abstract class ‘DynatraceHttpClient’ is missing implementations for these members:**

**- HttpClient.connectionFactory=**

**- HttpClient.keyLog=**

**Try to either**

**- provide an implementation,**

**- inherit an implementation from a superclass or mixin,**

**- mark the class as abstract, or**

**- provide a ‘noSuchMethod’ implementation.**

class DynatraceHttpClient implements HttpClient {

^^^^^^^^^^^^^^^^^^^

org-dartlang-sdk:///third\_party/dart/sdk/lib/\_http/http.dart:1554:12: Context: ‘HttpClient.connectionFactory=’ is defined here.

void set connectionFactory(

^^^^^^^^^^^^^^^^^

org-dartlang-sdk:///third\_party/dart/sdk/lib/\_http/http.dart:1704:12: Context: ‘HttpClient.keyLog=’ is defined here.

void set keyLog(Function(String line)? callback);

^^^^^^

lib/size\_and\_position/main\_size\_and\_position.dart:56:20: Warning: Operand of null-aware operation ‘!’ has type ‘WidgetsBinding’ which excludes null.

- ‘WidgetsBinding’ is from ‘package:flutter/src/widgets/binding.dart’ (‘../flutter/packages/flutter/lib/src/widgets/binding.dart’).

WidgetsBinding.instance!.addPostFrameCallback(\_afterLayout);

^

lib/app\_clone/movies\_concept/movies\_concept\_page.dart:46:20: Warning: Operand of null-aware operation ‘!’ has type ‘WidgetsBinding’ which excludes null.

- ‘WidgetsBinding’ is from ‘package:flutter/src/widgets/binding.dart’ (‘../flutter/packages/flutter/lib/src/widgets/binding.dart’).

WidgetsBinding.instance!.addPostFrameCallback((\_) {

^

lib/app\_clone/photo\_concept/photo\_concept\_page.dart:88:20: Warning: Operand of null-aware operation ‘!’ has type ‘WidgetsBinding’ which excludes null.

- ‘WidgetsBinding’ is from ‘package:flutter/src/widgets/binding.dart’ (‘../flutter/packages/flutter/lib/src/widgets/binding.dart’).

WidgetsBinding.instance!.addPostFrameCallback((\_) {

^

lib/app\_clone/shoes\_store/shoes\_store\_page.dart:286:20: Warning: Operand of null-aware operation ‘!’ has type ‘WidgetsBinding’ which excludes null.

- ‘WidgetsBinding’ is from ‘package:flutter/src/widgets/binding.dart’ (‘../flutter/packages/flutter/lib/src/widgets/binding.dart’).

WidgetsBinding.instance!.addPostFrameCallback((\_) {

^

lib/app\_clone/sports\_store/sports\_store\_page.dart:225:20: Warning: Operand of null-aware operation ‘!’ has type ‘WidgetsBinding’ which excludes null.

- ‘WidgetsBinding’ is from ‘package:flutter/src/widgets/binding.dart’ (‘../flutter/packages/flutter/lib/src/widgets/binding.dart’).

WidgetsBinding.instance!.addPostFrameCallback((\_) {

^

../flutter/.pub-cache/git/circle\_wheel\_scroll-c22e01667a1bd952573d5cae087f6404ea69face/lib/circle\_wheel\_scroll\_view.dart:696:24: Warning: Operand of null-aware operation ‘!’ has type ‘SchedulerBinding’ which excludes null.

- ‘SchedulerBinding’ is from ‘package:flutter/src/scheduler/binding.dart’ (‘../flutter/packages/flutter/lib/src/scheduler/binding.dart’).

SchedulerBinding.instance!.addPostFrameCallback((\_) {

^

lib/animations/split\_widget/split\_diagonal\_widget.dart:57:20: Warning: Operand of null-aware operation ‘!’ has type ‘WidgetsBinding’ which excludes null.

- ‘WidgetsBinding’ is from ‘package:flutter/src/widgets/binding.dart’ (‘../flutter/packages/flutter/lib/src/widgets/binding.dart’).

WidgetsBinding.instance!.addPostFrameCallback(\_onLayoutDone);

^

lib/animations/split\_widget/split\_half\_widget.dart:62:20: Warning: Operand of null-aware operation ‘!’ has type ‘WidgetsBinding’ which excludes null.

- ‘WidgetsBinding’ is from ‘package:flutter/src/widgets/binding.dart’ (‘../flutter/packages/flutter/lib/src/widgets/binding.dart’).

WidgetsBinding.instance!.addPostFrameCallback(\_onLayoutDone);

^

lib/menu\_navigations/header\_navigation/header\_navigation.dart:56:20: Warning: Operand of null-aware operation ‘!’ has type ‘WidgetsBinding’ which excludes null.

- ‘WidgetsBinding’ is from ‘package:flutter/src/widgets/binding.dart’ (‘../flutter/packages/flutter/lib/src/widgets/binding.dart’).

WidgetsBinding.instance!.addPostFrameCallback((\_) {

^

Failed to package /Users/administrator/Downloads/flutter-samples-master.

Command PhaseScriptExecution failed with a nonzero exit code

---

<div class="post-metadata">

**Author:** ![hannahmac](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hannahmac/32/41823_2.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [July 12, 2022, 9:38am UTC](https://community.dynatrace.com/t/dynatrace-flutter-plugin-issue/35664/2 "2022-07-12T09:38:48Z")

</div>

Hi&nbsp;[@saikishore](https://community.dynatrace.com/user/52633)&nbsp;,&nbsp;a&nbsp;new version of the Dynatrace Flutter plugin was published which contains a fix for this.  
Can you please try it and let me know?

> **[dynatrace\_flutter\_plugin package - All Versions](https://pub.dev/packages/dynatrace_flutter_plugin/versions)**
>
> Pub is the package manager for the Dart programming language, containing reusable libraries & packages for Flutter and general Dart programs.

---

<div class="post-metadata">

**Author:** ![saikishore](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@saikishore](https://community.dynatrace.com/u/saikishore)\
**Post date:** [July 19, 2022, 4:13am UTC](https://community.dynatrace.com/t/dynatrace-flutter-plugin-issue/35664/3 "2022-07-19T04:13:33Z")

</div>

Hey&nbsp;[@HannahM](https://community.dynatrace.com/user/1433)&nbsp;Thanks for solving this issue and I can be able to install the dynatrace flutter plugin now.

After following the steps in below link :

> **[dynatrace\_flutter\_plugin example | Flutter package](https://pub.dev/packages/dynatrace_flutter_plugin/example)**
>
> The Dynatrace Flutter plugin helps auto-instrument your Flutter app with Dynatrace OneAgent for Android and iOS. It also provides an API to add manual instrumentation.

I’m unable to get the **3rd party calls, User Interactions & Gestures metrics** in iOS.

I have tried all the steps in the documentation provided by the dynatrace flutter plugin.

Can you please provide any sample app with above scenarios you mentioned in the link and share with me ?

---

<div class="post-metadata">

**Author:** ![hannahmac](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hannahmac/32/41823_2.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [July 19, 2022, 10:20am UTC](https://community.dynatrace.com/t/dynatrace-flutter-plugin-issue/35664/4 "2022-07-19T10:20:22Z")

</div>

That’s great news. I see you’ve had an update on your question, so I’ll leave this thread for now.
