From c4ca0553a9a6f77464db9d823911183995249e68 Mon Sep 17 00:00:00 2001 From: Sean Riley Hawkins Date: Mon, 30 May 2022 20:15:30 +0200 Subject: [PATCH] chore: add const to remove flutter warnings --- .../lib/workspace/presentation/plugins/doc/document.dart | 2 +- .../app_flowy/lib/workspace/presentation/widgets/dialogs.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/app_flowy/lib/workspace/presentation/plugins/doc/document.dart b/frontend/app_flowy/lib/workspace/presentation/plugins/doc/document.dart index be70d7a67f..efe4b4bf39 100644 --- a/frontend/app_flowy/lib/workspace/presentation/plugins/doc/document.dart +++ b/frontend/app_flowy/lib/workspace/presentation/plugins/doc/document.dart @@ -179,7 +179,7 @@ class DocumentShareButton extends StatelessWidget { switch (action) { case ShareAction.markdown: context.read().add(const DocShareEvent.shareMarkdown()); - BubbleNotification( + const BubbleNotification( msgTitle: 'Exported Complete ^_^', msgBody: "Check in the flowy folder inside your documents directory") .show(context); diff --git a/frontend/app_flowy/lib/workspace/presentation/widgets/dialogs.dart b/frontend/app_flowy/lib/workspace/presentation/widgets/dialogs.dart index cae4137ba1..c17b386df0 100644 --- a/frontend/app_flowy/lib/workspace/presentation/widgets/dialogs.dart +++ b/frontend/app_flowy/lib/workspace/presentation/widgets/dialogs.dart @@ -248,7 +248,7 @@ class _BubbleNotification extends State { child: ListTile( leading: SizedBox.fromSize( size: const Size(40, 40), - child: ClipOval( + child: const ClipOval( child: Icon(Icons.file_copy), ), ),