Skip to content

Commit

Permalink
fix: Resolve button overflow issue in editor interface
Browse files Browse the repository at this point in the history
- Refine `flat_icon_text_button.dart` to enhance button responsiveness and layout consistency across various screen sizes and resolutions, to prevent button overflow, as reported in issue [#5](#5).
  • Loading branch information
hm21 committed Feb 12, 2024
1 parent 0def88d commit 3ce217b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## Version 2.3.1
- **Fixed:** fix overflow bug in BottomAppBar, details in [GitHub issue #5](https://github.com/hm21/pro_image_editor/issues/5)

## Version 2.3.0
- **Feat:** Enhance state history management

Expand Down
2 changes: 1 addition & 1 deletion lib/pro_image_editor_main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1905,7 +1905,7 @@ class ProImageEditorState extends State<ProImageEditor> {
scrollbarOrientation: ScrollbarOrientation.top,
thickness: isDesktop ? null : 0,
child: BottomAppBar(
height: kToolbarHeight,
height: kBottomNavigationBarHeight,
color: Colors.black,
padding: EdgeInsets.zero,
child: Center(
Expand Down
7 changes: 6 additions & 1 deletion lib/widgets/flat_icon_text_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@ class FlatIconTextButton extends TextButton {
required Widget icon,
required Widget label,
}) : super(
style: TextButton.styleFrom(
padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 2),
maximumSize:
const Size(double.infinity, kBottomNavigationBarHeight),
),
child: Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
icon,
const SizedBox(height: 4.0),
const SizedBox(height: 5.0),
label,
],
),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: pro_image_editor
description: "A Flutter image editor: Seamlessly enhance your images with user-friendly editing features."
version: 2.3.0
version: 2.3.1
homepage: https://github.com/hm21/pro_image_editor/
repository: https://github.com/hm21/pro_image_editor/
issue_tracker: https://github.com/hm21/pro_image_editor/issues/
Expand Down

0 comments on commit 3ce217b

Please sign in to comment.