pull/271/head
li3317 4 years ago
parent 9f89ae948a
commit 55e99e5862
  1. 2
      example/lib/pages/home_page.dart
  2. 4
      example/lib/widgets/demo_scaffold.dart

@ -140,7 +140,7 @@ class _HomePageState extends State<HomePage> {
} }
var toolbar = QuillToolbar.basic( var toolbar = QuillToolbar.basic(
controller: _controller!, onImagePickCallback: _onImagePickCallback); controller: _controller!, onImagePickCallback: _onImagePickCallback);
const isDesktop = !kIsWeb && !Platform.isAndroid && !Platform.isIOS; final isDesktop = !kIsWeb && !Platform.isAndroid && !Platform.isIOS;
if (isDesktop) { if (isDesktop) {
toolbar = QuillToolbar.basic( toolbar = QuillToolbar.basic(
controller: _controller!, controller: _controller!,

@ -81,7 +81,7 @@ class _DemoScaffoldState extends State<DemoScaffold> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
final actions = widget.actions ?? <Widget>[]; final actions = widget.actions ?? <Widget>[];
var toolbar = QuillToolbar.basic(controller: _controller!); var toolbar = QuillToolbar.basic(controller: _controller!);
const isDesktop = !kIsWeb && !Platform.isAndroid && !Platform.isIOS; final isDesktop = !kIsWeb && !Platform.isAndroid && !Platform.isIOS;
if (isDesktop) { if (isDesktop) {
toolbar = QuillToolbar.basic( toolbar = QuillToolbar.basic(
controller: _controller!, controller: _controller!,
@ -102,7 +102,7 @@ class _DemoScaffoldState extends State<DemoScaffold> {
), ),
onPressed: () => Navigator.pop(context), onPressed: () => Navigator.pop(context),
), ),
title: _loading || widget.showToolbar == false ? null : toolbar, title: _loading || !widget.showToolbar? null : toolbar,
actions: actions, actions: actions,
), ),
floatingActionButton: widget.floatingActionButton, floatingActionButton: widget.floatingActionButton,

Loading…
Cancel
Save