From d139770db7860b4e9da656db09eee896c0382475 Mon Sep 17 00:00:00 2001 From: Ellet <73608287+freshtechtips@users.noreply.github.com> Date: Sun, 5 Nov 2023 22:49:20 +0300 Subject: [PATCH] Fix warrnings 2 --- example/lib/pages/home_page.dart | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/example/lib/pages/home_page.dart b/example/lib/pages/home_page.dart index f5fd5239..b5cfa905 100644 --- a/example/lib/pages/home_page.dart +++ b/example/lib/pages/home_page.dart @@ -13,6 +13,8 @@ import 'package:flutter_quill/extensions.dart'; import 'package:flutter_quill/flutter_quill.dart'; import 'package:flutter_quill_extensions/flutter_quill_extensions.dart'; import 'package:flutter_quill_extensions/presentation/embeds/embed_types/image.dart'; +import 'package:flutter_quill_extensions/presentation/embeds/embed_types/video.dart'; +import 'package:flutter_quill_extensions/presentation/models/config/toolbar/buttons/video.dart'; import 'package:path/path.dart' as path; import 'package:path_provider/path_provider.dart'; @@ -317,6 +319,12 @@ class _HomePageState extends State { return QuillToolbar( configurations: QuillToolbarConfigurations( embedButtons: FlutterQuillEmbeds.toolbarButtons( + videoButtonOptions: QuillToolbarVideoButtonOptions( + videoConfigurations: QuillToolbarVideoConfigurations( + onVideoInsertedCallback: (video) => + _onVideoPickCallback(File(video)), + ), + ), imageButtonOptions: QuillToolbarImageButtonOptions( imageButtonConfigurations: QuillToolbarImageConfigurations( onImageInsertedCallback: (image) async { @@ -463,7 +471,8 @@ class _HomePageState extends State { // TextButton.icon( // icon: const Icon(Icons.collections), // label: const Text('Gallery'), - // onPressed: () => Navigator.pop(ctx, MediaPickSetting.gallery), + // onPressed: () => Navigator.pop(ctx, + // MediaPickSetting.gallery), // ), // TextButton.icon( // icon: const Icon(Icons.link),