Prepare to release 9.0.2

pull/1608/head
Ellet 1 year ago
parent 41b2483f90
commit 5004b66a48
No known key found for this signature in database
GPG Key ID: C488CC70BBCEF0D1
  1. 3
      CHANGELOG.md
  2. 3
      flutter_quill_extensions/CHANGELOG.md
  3. 3
      flutter_quill_test/CHANGELOG.md
  4. 19
      lib/src/widgets/toolbar/buttons/font_family_button.dart
  5. 17
      lib/src/widgets/toolbar/buttons/font_size_button.dart
  6. 38
      lib/src/widgets/toolbar/buttons/hearder_style/select_header_style_dropdown_button.dart
  7. 3
      quill_html_converter/CHANGELOG.md

@ -3,7 +3,8 @@
All notable changes to this project will be documented in this file.
## 9.0.2
* Release instead of pre-release
* Remove unused properties in the `QuillToolbarSelectHeaderStyleDropdownButton`
* Fix the `QuillSimpleToolbar` when `useMaterial3` is false, please upgrade to the latest version of flutter for better support
## 9.0.2-dev.3
* Export `QuillSingleChildScrollView`

@ -3,7 +3,8 @@
All notable changes to this project will be documented in this file.
## 9.0.2
* Release instead of pre-release
* Remove unused properties in the `QuillToolbarSelectHeaderStyleDropdownButton`
* Fix the `QuillSimpleToolbar` when `useMaterial3` is false, please upgrade to the latest version of flutter for better support
## 9.0.2-dev.3
* Export `QuillSingleChildScrollView`

@ -3,7 +3,8 @@
All notable changes to this project will be documented in this file.
## 9.0.2
* Release instead of pre-release
* Remove unused properties in the `QuillToolbarSelectHeaderStyleDropdownButton`
* Fix the `QuillSimpleToolbar` when `useMaterial3` is false, please upgrade to the latest version of flutter for better support
## 9.0.2-dev.3
* Export `QuillSingleChildScrollView`

@ -183,19 +183,30 @@ class QuillToolbarFontFamilyButtonState
}
return Tooltip(message: effectiveTooltip, child: child);
},
child: IconButton(
// tooltip: '', // TODO: Use this here
child: Builder(
builder: (context) {
final isMaterial3 = Theme.of(context).useMaterial3;
if (!isMaterial3) {
return RawMaterialButton(
onPressed: _onPressed,
child: _buildContent(context),
);
}
return IconButton(
// tooltip: , // TODO: Use this here
visualDensity: VisualDensity.compact,
style: IconButton.styleFrom(
shape: iconTheme?.borderRadius != null
? RoundedRectangleBorder(
borderRadius:
BorderRadius.circular(iconTheme?.borderRadius ?? -1),
borderRadius: BorderRadius.circular(
iconTheme?.borderRadius ?? -1),
)
: null,
),
onPressed: _onPressed,
icon: _buildContent(context),
);
},
),
),
);

@ -142,9 +142,17 @@ class QuillToolbarFontSizeButtonState
height: iconSize * 1.81,
width: options.width,
),
child: UtilityWidgets.maybeTooltip(
message: tooltip,
child: IconButton(
child: Builder(
builder: (context) {
final isMaterial3 = Theme.of(context).useMaterial3;
if (!isMaterial3) {
return RawMaterialButton(
onPressed: _onPressed,
child: _buildContent(context),
);
}
return IconButton(
tooltip: tooltip,
visualDensity: VisualDensity.compact,
style: IconButton.styleFrom(
shape: iconTheme?.borderRadius != null
@ -156,7 +164,8 @@ class QuillToolbarFontSizeButtonState
),
onPressed: _onPressed,
icon: _buildContent(context),
),
);
},
),
);
}

@ -26,7 +26,7 @@ class _QuillToolbarSelectHeaderStyleDropdownButtonState
extends State<QuillToolbarSelectHeaderStyleDropdownButton> {
Attribute<dynamic> _selectedItem = Attribute.header;
final _controller = MenuController();
final _menuController = MenuController();
@override
void initState() {
super.initState();
@ -158,7 +158,7 @@ class _QuillToolbarSelectHeaderStyleDropdownButtonState
}
return MenuAnchor(
controller: _controller,
controller: _menuController,
menuChildren: headerAttributes
.map(
(e) => MenuItemButton(
@ -169,15 +169,10 @@ class _QuillToolbarSelectHeaderStyleDropdownButtonState
),
)
.toList(),
child: IconButton(
onPressed: () {
if (_controller.isOpen) {
_controller.close();
return;
}
_controller.open();
},
icon: Row(
child: Builder(
builder: (context) {
final isMaterial3 = Theme.of(context).useMaterial3;
final child = Row(
mainAxisSize: MainAxisSize.min,
children: [
Text(
@ -192,8 +187,27 @@ class _QuillToolbarSelectHeaderStyleDropdownButtonState
size: iconSize * iconButtonFactor,
),
],
),
);
if (!isMaterial3) {
return RawMaterialButton(
onPressed: _onDropdownButtonPressed,
child: child,
);
}
return IconButton(
onPressed: _onDropdownButtonPressed,
icon: child,
);
},
),
);
}
void _onDropdownButtonPressed() {
if (_menuController.isOpen) {
_menuController.close();
return;
}
_menuController.open();
}
}

@ -3,7 +3,8 @@
All notable changes to this project will be documented in this file.
## 9.0.2
* Release instead of pre-release
* Remove unused properties in the `QuillToolbarSelectHeaderStyleDropdownButton`
* Fix the `QuillSimpleToolbar` when `useMaterial3` is false, please upgrade to the latest version of flutter for better support
## 9.0.2-dev.3
* Export `QuillSingleChildScrollView`

Loading…
Cancel
Save