Fix null pointer of _controller on read only page

pull/882/head
X Code 3 years ago
parent 506303a50d
commit af4fb81ea9
  1. 3
      example/lib/widgets/demo_scaffold.dart

@ -85,6 +85,9 @@ class _DemoScaffoldState extends State<DemoScaffold> {
@override
Widget build(BuildContext context) {
if (_controller == null) {
return const Scaffold(body: Center(child: Text('Loading...')));
}
final actions = widget.actions ?? <Widget>[];
var toolbar = QuillToolbar.basic(controller: _controller!);
if (_isDesktop()) {

Loading…
Cancel
Save