Closed mnts closed 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
I see this. and I have no idea what kind of reason could be behind that
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;
}
@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