memspace / zefyr

Soft and gentle rich text editing for Flutter applications.
https://zefyr-editor.gitbook.io
2.22k stars 550 forks source link

Almost all controls in toolbar gone #604

Closed mnts closed 2 years ago

mnts commented 2 years ago

this is part of my code

@override void initState() { super.initState(); _ctrl = TextEditingController(); _controller = ZefyrController(); load(); _controller.addListener(_print); }

@override void dispose() { _ctrl.dispose(); super.dispose(); }

save() {}

late final ZefyrController _controller; final FocusNode _focusNode = FocusNode();

load() { var doc = null;

final document = doc != null
    ? NotusDocument.fromJson(jsonDecode(doc))
    : NotusDocument.fromDelta(Delta()..insert("\n"));

}

@override Widget build(BuildContext context) { final acc = Get.put(AccountCtrl()); return Scaffold( appBar: ZefyrToolbar.basic(controller: _controller), floatingActionButton: FloatingActionButton( child: Icon(Icons.check), onPressed: () { save(); }, ), body: ZefyrField( controller: _controller, focusNode: _focusNode, autofocus: true, // readOnly: true, padding: EdgeInsets.only(left: 16, right: 16), onLaunchUrl: _launchUrl, ), ); amd while using zefyr: ^1.0.0-rc.5 Screenshot 2022-03-10 at 17 43 28

I see this. and I have no idea what kind of reason could be behind that