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

set hint text in zefyr #486

Open
MaheshManoharan opened this issue Feb 20, 2021 · 34 comments
Open

set hint text in zefyr #486

MaheshManoharan opened this issue Feb 20, 2021 · 34 comments

Comments

@MaheshManoharan
Copy link

How to set hint text zefyr, I already put the question in Reddit and StackOverflow. but no one answers. So tell me please

@singerdmx
Copy link

Do you mean placeholder, similar to singerdmx/flutter-quill#11 ?

@singerdmx
Copy link

Can you share Reddit and StackOverflow links?

@singerdmx
Copy link

@MaheshManoharan I have a change that gets most working. Needs final touch

@MaheshManoharan
Copy link
Author

yes...just like placeholder... users need to know what to do in that textfield. I don't know how to do it in zefyrEditor please help me.

@MaheshManoharan
Copy link
Author

@singerdmx I know you did something, just like passing placeholder. But as a beginner in programming and github I don't know what to do now. Could you please say What I want to do now to get placeholder or hint text functionality?

@singerdmx
Copy link

@MaheshManoharan OK, my change is done now. I tested it on my phone and it is working.
All you need to do is this:
image

@MaheshManoharan
Copy link
Author

@singerdmx A little bit doubt again... I am using ZefyrEditor, But you showed me in QuillEditor

@singerdmx
Copy link

I don't think Zefyr is accepting pull request.
And this change is for https://pub.dev/packages/flutter_quill
I will submit my change once my team mate verifies the change is working.

@MaheshManoharan
Copy link
Author

I saw your package. It's nice, I will comment after check it out. Thank you for your response.

@MaheshManoharan
Copy link
Author

I checked your example, but it shows just a white blank screen based on pub

@singerdmx
Copy link

@MaheshManoharan the change is not checked in yet. Please wait until my team mate @li3317 verifies the change.
Then we will bump the version

@MaheshManoharan
Copy link
Author

@singerdmx could you please inform me, when it's over.

@singerdmx
Copy link

@li3317 will update this thread here once it is in and let you know how to use placeholder with details

@li3317
Copy link

li3317 commented Feb 21, 2021

Hi @MaheshManoharan Sorry about the delay! The change is now available on at https://pub.dev/packages/flutter_quill! Here's an example of how it looks.
151430107_289821215825210_5622744891969403627_n

@MaheshManoharan
Copy link
Author

@li3317 , @singerdmx Thank you both. I will comment after checking out.

@MaheshManoharan
Copy link
Author

@li3317 , @singerdmx No change, it just shows a blank screen. I have just used the code in pub example.

@singerdmx
Copy link

image

Did you add anything here?

@MaheshManoharan
Copy link
Author

MaheshManoharan commented Feb 21, 2021

@singerdmx no I can't add placeholder, because it just shows a white blank screen. I haven't added it yet. just used this example code in https://pub.dev/packages/flutter_quill/example

@MaheshManoharan
Copy link
Author

@singerdmx
how did you upload the image? I can post my screenshot.

@li3317
Copy link

li3317 commented Feb 21, 2021

New version with placeholder support is published! (By the way I dragged and dropped the screenshot into text box here)

@MaheshManoharan
Copy link
Author

@li3317 it shows awaiting...
Screenshot_1613878751

@MaheshManoharan
Copy link
Author

I got above screen - blank white screen

@singerdmx
Copy link

Paste your code

@singerdmx
Copy link

Also can you try to run the code in https://github.com/singerdmx/flutter-quill/tree/stable/app and let us know what you see?

@MaheshManoharan
Copy link
Author

`import 'dart:async';
import 'dart:io';

import 'package:flutter/material.dart';
import 'package:flutter_quill/widgets/controller.dart';
import 'package:flutter_quill/widgets/editor.dart';
import 'package:flutter_quill/widgets/toolbar.dart';

void main() => MaterialApp(home: HomePage());

class HomePage extends StatefulWidget {
@OverRide
_HomePageState createState() => _HomePageState();
}

class _HomePageState extends State {
QuillController _controller = QuillController.basic();

@OverRide
Widget build(BuildContext context) {
return Scaffold(
body: Column(
children: [
QuillToolbar.basic(
controller: _controller, uploadFileCallback: _uploadImageCallBack),
Expanded(
child: Container(
child: QuillEditor.basic(
controller: _controller,
readOnly: false, // change to true to be view only mode
),
),
)
],
));
}

Future _uploadImageCallBack(File file) async {
// call upload file API and return file's absolute url
return new Completer().future;
}
}
`

@singerdmx
Copy link

You did it wrong
please read REAME

@singerdmx
Copy link

@MaheshManoharan
Copy link
Author

MaheshManoharan commented Feb 21, 2021

@singerdmx oh..my bad. I have been using zefyr, now I have changed my mind to use flutter-quill, Your response is the best. Thank you, guys. You are so supportive. flutter-quill/stable app code is working fine. Is there any doubt or question, should I comment here. As a beginner, I don't know what to talk about.

@singerdmx
Copy link

@MaheshManoharan for issues regarding https://pub.dev/packages/flutter_quill , please create issue under https://github.com/singerdmx/flutter-quill/issues

We were using Zefyr until we found it uses custom delta format that is incompatible with quilljs https://quilljs.com/docs/formats

Also lack of support is one of the reasons as well.

@MaheshManoharan
Copy link
Author

MaheshManoharan commented Feb 21, 2021

@singerdmx okay.. is it free to use in commercial projects?

@singerdmx
Copy link

singerdmx commented Feb 21, 2021

Sure, we don't care how you use it as long as it helps you

@MaheshManoharan
Copy link
Author

@singerdmx cool...

@cgestes
Copy link
Collaborator

cgestes commented Feb 21, 2021

@singerdmx wrong bug tracker. Please keep your project related discussion in your project.

Still its ok to mention your project here, especially as inspiration to how to do thinks. :)

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

4 participants