Skip to content

Commit 55e99e5

Browse files
committed
small fix
1 parent 9f89ae9 commit 55e99e5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

example/lib/pages/home_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class _HomePageState extends State<HomePage> {
140140
}
141141
var toolbar = QuillToolbar.basic(
142142
controller: _controller!, onImagePickCallback: _onImagePickCallback);
143-
const isDesktop = !kIsWeb && !Platform.isAndroid && !Platform.isIOS;
143+
final isDesktop = !kIsWeb && !Platform.isAndroid && !Platform.isIOS;
144144
if (isDesktop) {
145145
toolbar = QuillToolbar.basic(
146146
controller: _controller!,

example/lib/widgets/demo_scaffold.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class _DemoScaffoldState extends State<DemoScaffold> {
8181
Widget build(BuildContext context) {
8282
final actions = widget.actions ?? <Widget>[];
8383
var toolbar = QuillToolbar.basic(controller: _controller!);
84-
const isDesktop = !kIsWeb && !Platform.isAndroid && !Platform.isIOS;
84+
final isDesktop = !kIsWeb && !Platform.isAndroid && !Platform.isIOS;
8585
if (isDesktop) {
8686
toolbar = QuillToolbar.basic(
8787
controller: _controller!,
@@ -102,7 +102,7 @@ class _DemoScaffoldState extends State<DemoScaffold> {
102102
),
103103
onPressed: () => Navigator.pop(context),
104104
),
105-
title: _loading || widget.showToolbar == false ? null : toolbar,
105+
title: _loading || !widget.showToolbar? null : toolbar,
106106
actions: actions,
107107
),
108108
floatingActionButton: widget.floatingActionButton,

0 commit comments

Comments
 (0)