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

QuillToolbarSelectAlignmentButtons is not exported #2315

Open
1 task done
hjkim-mango opened this issue Oct 14, 2024 · 3 comments
Open
1 task done

QuillToolbarSelectAlignmentButtons is not exported #2315

hjkim-mango opened this issue Oct 14, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@hjkim-mango
Copy link

hjkim-mango commented Oct 14, 2024

Is there an existing issue for this?

Flutter Quill version

10.8.2

Steps to reproduce

Use the class 'QuillToolbarSelectAlignmentButtons'

Expected results

I can use the class 'QuillToolbarSelectAlignmentButtons'.

Actual results

I cannot use the class 'QuillToolbarSelectAlignmentButtons'.

Additional Context

For my custom toolbar, I want to use custom alignment buttons using QuillToolbarSelectAlignmentButtons.
But I can not use it… not defined…

In the latest flutter-quill codes,
there is no import for QuillToolbarSelectAlignmentButtons in flutter_quill.dart and base_toolbar.dart.
Is not QuillToolbarSelectAlignmentButtons class supported?
Or Should I import something to use it?

Screenshots / Video demonstration Screenshot 2024-10-14 at 11 28 09 AM
Logs
[Paste your logs here]
@hjkim-mango hjkim-mango added the bug Something isn't working label Oct 14, 2024
@EchoEllet
Copy link
Collaborator

EchoEllet commented Oct 14, 2024

Does importing the file from the source fix the issue?

// Avoid using this in production
import 'package:flutter_quill/src/toolbar/buttons/alignment/select_alignment_buttons.dart';

FYI: You shouldn't import files from packages using the source path directly as you will face unexpected breaking changes. This question is to confirm the issue.

@EchoEllet EchoEllet changed the title Cannot use QuillToolbarSelectAlignmentButtons QuillToolbarSelectAlignmentButtons is not exported Oct 14, 2024
@hjkim-mango
Copy link
Author

When I import the source file directly, I can use it but something's wrong in UI, I don't know why...
Anyway I've solved to create custom alignment buttons using QuillToolbarToggleStyleButton class.

I found out that QuillToolbarToggleStyleButton was used in the QuillToolbarSelectAlignmentButtons source code.

Thanks for helping.

@EchoEllet EchoEllet reopened this Oct 14, 2024
@EchoEllet
Copy link
Collaborator

It looks like the file isn't exported, I will review this as soon as I have the time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants