format code

pull/817/head
li3317 3 years ago
parent 5097e86b76
commit 0a9a6c9625
  1. 4
      lib/src/models/themes/quill_custom_icon.dart
  2. 3
      lib/src/widgets/raw_editor/raw_editor_state_selection_delegate_mixin.dart
  3. 3
      lib/src/widgets/toolbar.dart

@ -1,9 +1,7 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
class QuillCustomIcon { class QuillCustomIcon {
const QuillCustomIcon( const QuillCustomIcon({this.icon, this.onTap});
{this.icon,
this.onTap});
///The icon widget ///The icon widget
final IconData? icon; final IconData? icon;

@ -81,8 +81,7 @@ mixin RawEditorStateSelectionDelegateMixin on EditorState
scrollController.jumpTo(targetOffset.offset); scrollController.jumpTo(targetOffset.offset);
} }
renderEditor.showOnScreen(rect: targetOffset.rect); renderEditor.showOnScreen(rect: targetOffset.rect);
} catch (_) { } catch (_) {}
}
} }
// Finds the closest scroll offset to the current scroll offset that fully // Finds the closest scroll offset to the current scroll offset that fully

@ -482,8 +482,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
size: toolbarIconSize * kIconButtonFactor, size: toolbarIconSize * kIconButtonFactor,
icon: Icon(customIcon.icon, size: toolbarIconSize), icon: Icon(customIcon.icon, size: toolbarIconSize),
borderRadius: iconTheme?.borderRadius ?? 2, borderRadius: iconTheme?.borderRadius ?? 2,
onPressed: customIcon.onTap onPressed: customIcon.onTap),
),
], ],
); );
} }

Loading…
Cancel
Save