Value setting Stateful toolbar buttons derive from base class

pull/2082/head
AtlasAutocode 12 months ago
parent 6ecd377b26
commit ab4d3f40df
  1. 43
      lib/src/controller/quill_controller.dart

@ -81,6 +81,49 @@ class QuillController extends ChangeNotifier {
notifyListeners();
}
// Those are the values that the user selects and not the one
// from the current line
/// The current font family, null to use the default one
@Deprecated('No longer used')
MapEntry<String, String>? _selectedFontFamily;
/// The current font family, null to use the default one
@Deprecated('No longer used')
MapEntry<String, String>? get selectedFontFamily => _selectedFontFamily;
@Deprecated('No longer used')
void selectFontFamily(MapEntry<String, String>? newFontFamily) {
_selectedFontFamily = newFontFamily;
}
/// The current font size, null to use the default one
@Deprecated('No longer used')
MapEntry<String, String>? _selectedFontSize;
/// The current font size, null to use the default one
@Deprecated('No longer used')
MapEntry<String, String>? get selectedFontSize => _selectedFontSize;
@Deprecated('No longer used')
void selectFontSize(MapEntry<String, String>? newFontSize) {
_selectedFontSize = newFontSize;
}
/// For the [QuillToolbarToggleStyleButton]
@Deprecated('No longer used')
final Map<Attribute, bool?> _selectedStyles = {};
/// For the [QuillToolbarToggleStyleButton]
@Deprecated('No longer used')
Map<Attribute, bool?> get selectedStyles => _selectedStyles;
/// For the [QuillToolbarToggleStyleButton]
@Deprecated('No longer used')
void selectStyle(Attribute attribute, bool value) {
_selectedStyles[attribute] = value;
}
/// Tells whether to keep or reset the [toggledStyle]
/// when user adds a new line.
final bool keepStyleOnNewLine;

Loading…
Cancel
Save