Almost all controls in toolbar gone
mnts opened this issue · 0 comments
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
I see this. and I have no idea what kind of reason could be behind that