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

[BUG] Multiple widgets used the same GlobalKey #55

Closed
ghost opened this issue Mar 31, 2023 · 3 comments
Closed

[BUG] Multiple widgets used the same GlobalKey #55

ghost opened this issue Mar 31, 2023 · 3 comments
Assignees

Comments

@ghost
Copy link

ghost commented Mar 31, 2023

I simply put two editors in a scaffold and the error appears. For reproduction I created a skeleton of my app screen.

By the way, a lot of messages saying 'updateAcquireFence: Did not find frame.' appear in the terminal.

To Reproduce

import 'package:flutter/material.dart';
import '../screens/dashboard.dart';
import 'package:quill_html_editor/quill_html_editor.dart';

class Test extends StatefulWidget {
  const Test({Key? key}) : super(key: key);

  @override
  State<Test> createState() => _TestState();
}

class _TestState extends State<Test> {
  final _cNewComment = QuillEditorController(),
      _cDescription = QuillEditorController();

  @override
  void dispose() {
    _cNewComment.dispose();
    _cDescription.dispose();

    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: ListView(
        children: [
          ElevatedButton(
            onPressed: () {
              Navigator.push(
                context,
                MaterialPageRoute(builder: (context) => Dashboard()),
              );
            },
            child: const Text('back'),
          ),
          ToolBar(
            controller: _cDescription,
          ),
          QuillHtmlEditor(
            controller: _cDescription,
            minHeight: 200,
          ),
          ToolBar(
            controller: _cNewComment,
          ),
          QuillHtmlEditor(
            controller: _cNewComment,
            minHeight: 200,
          ),
        ],
      ),
    );
  }
}

Desktop:

  • OS: iOS

Smartphone:

  • Device: MI 10T Lite
  • OS: Android 12

Flutter Doctor
[✓] Flutter (Channel stable, 3.7.8, on macOS 13.2.1 22D68 darwin-arm64, locale en-DE)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] VS Code (version 1.76.0)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

• No issues found!

@the-airbender the-airbender self-assigned this Apr 1, 2023
@the-airbender
Copy link
Owner

Hi @stefan-weinand

Thanks for reporting the issue.
It is resolved and deployed in the latest version 2.1.8
Please check it out and share the feedback.

Thanks :)

@the-airbender
Copy link
Owner

Regarding: 'updateAcquireFence: Did not find frame.'
Please refer to the comments from the below github issue.
flutter/flutter#104268 (comment)

Thanks!

@ghost
Copy link
Author

ghost commented Apr 3, 2023

Hi @the-airbender

everything is fixed now, thank you very much for the quick solution!!!

👍

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