Spectrum is now read-only. Learn more about the decision in our official announcement.


Zefyr rich text editor for Flutter applications


ZefyrScaffold class is undefined

October 26, 2020 at 11:50pm

ZefyrScaffold class is undefined

October 26, 2020 at 11:50pm (Edited 2 years ago)
I'm trying to test the Zefyr text editor, but i'm getting this error: "The method 'ZefyrScaffold' isn't defined for the type [...]. Try correcting the name to the name of an existing method, or defining a method named 'ZefyrScaffold'"
  1. I added the package in the pubspec.yaml file
  2. I successfully executed the "flutter packages get" comand in the folder of the project
Classes like ZefyrEditor are being used succesfully, but the ZefyrScaffold not. Some suggestion on how to fix this? Do u guys have some project on git that i could clone? T_T

December 23, 2020 at 1:57am
Did you specify a version for Zefyr in pubspec.yaml? If so, what version? What version of Zefyr is listed in pubspec.lock?
ZefyrScaffold was removed early in the 1.0-dev branch ( so you may have just got a version that doesn't include it. I'm afraid if you're in the 1.0-dev branch the documentation sand examples may not all be up to date about this.