Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
li3317 committed Jun 18, 2021
1 parent 9f89ae9 commit 55e99e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/lib/pages/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class _HomePageState extends State<HomePage> {
}
var toolbar = QuillToolbar.basic(
controller: _controller!, onImagePickCallback: _onImagePickCallback);
const isDesktop = !kIsWeb && !Platform.isAndroid && !Platform.isIOS;
final isDesktop = !kIsWeb && !Platform.isAndroid && !Platform.isIOS;
if (isDesktop) {
toolbar = QuillToolbar.basic(
controller: _controller!,
Expand Down
4 changes: 2 additions & 2 deletions example/lib/widgets/demo_scaffold.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class _DemoScaffoldState extends State<DemoScaffold> {
Widget build(BuildContext context) {
final actions = widget.actions ?? <Widget>[];
var toolbar = QuillToolbar.basic(controller: _controller!);
const isDesktop = !kIsWeb && !Platform.isAndroid && !Platform.isIOS;
final isDesktop = !kIsWeb && !Platform.isAndroid && !Platform.isIOS;
if (isDesktop) {
toolbar = QuillToolbar.basic(
controller: _controller!,
Expand All @@ -102,7 +102,7 @@ class _DemoScaffoldState extends State<DemoScaffold> {
),
onPressed: () => Navigator.pop(context),
),
title: _loading || widget.showToolbar == false ? null : toolbar,
title: _loading || !widget.showToolbar? null : toolbar,
actions: actions,
),
floatingActionButton: widget.floatingActionButton,
Expand Down

0 comments on commit 55e99e5

Please sign in to comment.