Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid composing start: 0 on Android Emulator when selecting suggestion #85

Open
jhancock4d opened this issue Feb 23, 2021 · 0 comments

Comments

@jhancock4d
Copy link
Contributor

jhancock4d commented Feb 23, 2021

PlatformException (PlatformException(error, invalid composing start: 0, null, java.lang.IndexOutOfBoundsException: invalid composing start: 0
	at io.flutter.embedding.engine.systemchannels.TextInputChannel$TextEditState.<init>(TextInputChannel.java:719)
	at io.flutter.embedding.engine.systemchannels.TextInputChannel$TextEditState.fromJson(TextInputChannel.java:680)
	at io.flutter.embedding.engine.systemchannels.TextInputChannel$1.onMethodCall(TextInputChannel.java:91)
	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
	at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
	at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:818)
	at android.os.MessageQueue.nativePollOnce(Native Method)
	at android.os.MessageQueue.next(MessageQueue.java:335)
	at android.os.Looper.loop(Looper.java:183)
	at android.app.ActivityThread.main(ActivityThread.java:7656)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
))

down a little lower:

E/flutter ( 7877): #0 JSONMethodCodec.decodeEnvelope
package:flutter/…/services/message_codecs.dart:158
E/flutter ( 7877): #1 MethodChannel._invokeMethod
package:flutter/…/services/platform_channel.dart:158

This is using the latest flutter beta.

Here's my definition:

ChipsInput<ContentRefDto>(
                                  decoration: InputDecoration(
                                      labelText: locale.dependsOn),
                                  chipBuilder: (context, state, data) {
                                    return InputChip(
                                      key: ObjectKey(data),
                                      label: Text(data.name),
                                      avatar: Icon(Icons.book),
                                      onDeleted: () => state.deleteChip(data),
                                      materialTapTargetSize:
                                          MaterialTapTargetSize.shrinkWrap,
                                    );
                                  },
                                  suggestionBuilder: (context, state, data) {
                                    return ListTile(
                                        key: ObjectKey(data),
                                        leading: Icon(Icons.book),
                                        title: Text(data.name),
                                        subtitle: data.description == null
                                            ? null
                                            : Text(data.description),
                                        onTap: () =>
                                            state.selectSuggestion(data));
                                  },
                                  onChanged: (value) =>
                                      cubit.updateDependsOn(value),
                                  findSuggestions:
                                      cubit.findDependsOnSuggestions,
                                  initialValue: state.dependsOn,
                                ),

Please let me know what else you might need.

jhancock4d pushed a commit to JohnGalt1717/flutter_chips_input that referenced this issue Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant