floaty_chathead icon indicating copy to clipboard operation
floaty_chathead copied to clipboard

Doesn't display chat bubble

Open Tomucha opened this issue 3 years ago • 9 comments

... I tried to implement this plugin into my app, but without any success. I see an "ongoing" notification, but nothing similar to chat bubbles.

Then I cloned the repository and tried to run the example as it is, but the same result. All I can see is the notification, but nothing else.

Flutter 2.2.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision b22742018b (5 weeks ago) • 2021-05-14 19:12:57 -0700
Engine • revision a9d88a4d18
Tools • Dart 2.13.0

Also - plugin generates a lot of exceptions, even the example:

E/flutter ( 9710): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: type 'Future<dynamic>' is not a subtype of type 'FutureOr<int>' in type cast
E/flutter ( 9710): #0      FloatyHead.setCloseIcon (package:floaty_head/floaty_head.dart:179:9)
E/flutter ( 9710): #1      _Home.setCloseIcon (package:floaty_head_example/main.dart:300:24)
E/flutter ( 9710): #2      _Home.build.<anonymous closure> (package:floaty_head_example/main.dart:227:36)
E/flutter ( 9710): #3      _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:989:21)

Tomucha avatar Jun 16 '21 13:06 Tomucha

hmmm... interesting, im gonna check it, the plugin hasn't been updated in a while so it's reasonable that there are some errors on newer flutter versions.

Crdzbird avatar Jun 16 '21 13:06 Crdzbird

Same problem

askavinraja avatar Jun 18 '21 08:06 askavinraja

Same here.

Leleocastro avatar Jun 22 '21 13:06 Leleocastro

I found a solution for the chat bubble, for some reason the function createWindow in the onCreate in FloatyContentJobService.kt was not called.

EDIT: Was not called because that will crashes the app, but the problem it's the version of Android.

Leleocastro avatar Jun 28 '21 20:06 Leleocastro

Does anyone have a solution to this problem, i am having it as well

Chris-Benn avatar Aug 04 '21 11:08 Chris-Benn

Hello Where is this onCreate in FloatyContentJobService.kt located

I found a solution for the chat bubble, for some reason the function createWindow in the onCreate in FloatyContentJobService.kt was not called.

EDIT: Was not called because that will crashes the app, but the problem it's the version of Android.

Chris-Benn avatar Aug 04 '21 11:08 Chris-Benn

@Chris-Benn, I downloaded the package and edited in my local machine. You'll need to look into kotlin(android) files.

FloatyContentJobService bellow: https://github.com/Crdzbird/floaty_chathead/blob/master/android/src/main/kotlin/ni/devotion/floaty_head/services/FloatyContentJobService.kt

Leleocastro avatar Aug 04 '21 14:08 Leleocastro

@Leleocastro thanks, can you share what the changes where on the page

@Chris-Benn, I downloaded the package and edited in my local machine. You'll need to look into kotlin(android) files.

FloatyContentJobService bellow: https://github.com/Crdzbird/floaty_chathead/blob/master/android/src/main/kotlin/ni/devotion/floaty_head/services/FloatyContentJobService.kt

Chris-Benn avatar Aug 04 '21 16:08 Chris-Benn

@Leleocastro thanks, finally got it....

Chris-Benn avatar Aug 21 '21 14:08 Chris-Benn