From 97b45ebd9150fcd5fd78f00b05c99e2859856903 Mon Sep 17 00:00:00 2001 From: Vaibhav Surve Date: Mon, 27 Oct 2025 15:21:46 +0530 Subject: [PATCH] chore: remove flutter_quill and related dependencies from pubspec.yaml --- .../Directory/comment_editor_card.dart | 135 ------------------ pubspec.yaml | 4 - 2 files changed, 139 deletions(-) delete mode 100644 lib/helpers/widgets/Directory/comment_editor_card.dart diff --git a/lib/helpers/widgets/Directory/comment_editor_card.dart b/lib/helpers/widgets/Directory/comment_editor_card.dart deleted file mode 100644 index c6125af..0000000 --- a/lib/helpers/widgets/Directory/comment_editor_card.dart +++ /dev/null @@ -1,135 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:flutter_quill/flutter_quill.dart' as quill; -import 'package:marco/helpers/widgets/my_text.dart'; - -class CommentEditorCard extends StatefulWidget { - final quill.QuillController controller; - final VoidCallback onCancel; - final Future Function(quill.QuillController controller) onSave; - - const CommentEditorCard({ - super.key, - required this.controller, - required this.onCancel, - required this.onSave, - }); - - @override - State createState() => _CommentEditorCardState(); -} - -class _CommentEditorCardState extends State { - bool _isSubmitting = false; - - Future _handleSave() async { - if (_isSubmitting) return; - setState(() => _isSubmitting = true); - - try { - await widget.onSave(widget.controller); - } finally { - if (mounted) setState(() => _isSubmitting = false); - } - } - - @override - Widget build(BuildContext context) { - return Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - quill.QuillSimpleToolbar( - controller: widget.controller, - configurations: const quill.QuillSimpleToolbarConfigurations( - showBoldButton: true, - showItalicButton: true, - showUnderLineButton: true, - showListBullets: false, - showListNumbers: false, - showAlignmentButtons: true, - showLink: true, - showFontSize: false, - showFontFamily: false, - showColorButton: false, - showBackgroundColorButton: false, - showUndo: false, - showRedo: false, - showCodeBlock: false, - showQuote: false, - showSuperscript: false, - showSubscript: false, - showInlineCode: false, - showDirection: false, - showListCheck: false, - showStrikeThrough: false, - showClearFormat: false, - showDividers: false, - showHeaderStyle: false, - multiRowsDisplay: false, - ), - ), - const SizedBox(height: 24), - Container( - height: 140, - padding: const EdgeInsets.all(8), - decoration: BoxDecoration( - border: Border.all(color: Colors.grey.shade300), - borderRadius: BorderRadius.circular(8), - color: const Color(0xFFFDFDFD), - ), - child: quill.QuillEditor.basic( - controller: widget.controller, - configurations: const quill.QuillEditorConfigurations( - autoFocus: true, - expands: false, - scrollable: true, - ), - ), - ), - const SizedBox(height: 16), - - // 👇 Buttons same as BaseBottomSheet - Row( - children: [ - Expanded( - child: ElevatedButton.icon( - onPressed: _isSubmitting ? null : widget.onCancel, - icon: const Icon(Icons.close, color: Colors.white), - label: MyText.bodyMedium( - "Cancel", - color: Colors.white, - fontWeight: 600, - ), - style: ElevatedButton.styleFrom( - backgroundColor: Colors.grey, - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular(12), - ), - padding: const EdgeInsets.symmetric(vertical: 8), - ), - ), - ), - const SizedBox(width: 12), - Expanded( - child: ElevatedButton.icon( - onPressed: _isSubmitting ? null : _handleSave, - icon: const Icon(Icons.check_circle_outline, color: Colors.white), - label: MyText.bodyMedium( - _isSubmitting ? "Submitting..." : "Submit", - color: Colors.white, - fontWeight: 600, - ), - style: ElevatedButton.styleFrom( - backgroundColor: Colors.indigo, - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular(12), - ), - padding: const EdgeInsets.symmetric(vertical: 8), - ), - ), - ), - ], - ), - ], - ); - } -} diff --git a/pubspec.yaml b/pubspec.yaml index 31e2374..f8f9ba4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -48,7 +48,6 @@ dependencies: carousel_slider: ^5.0.0 reorderable_grid: ^1.0.10 loading_animation_widget: ^1.3.0 - flutter_quill: ^10.8.5 intl: ^0.19.0 syncfusion_flutter_core: ^29.1.40 syncfusion_flutter_sliders: ^29.1.40 @@ -74,9 +73,6 @@ dependencies: font_awesome_flutter: ^10.8.0 flutter_html: ^3.0.0 tab_indicator_styler: ^2.0.0 - html_editor_enhanced: ^2.7.0 - flutter_quill_delta_from_html: ^1.5.2 - quill_delta: ^3.0.0-nullsafety.2 connectivity_plus: ^6.1.4 geocoding: ^4.0.0 firebase_core: ^4.0.0