Skip to content

Commit

Permalink
v1.4.2+1
Browse files Browse the repository at this point in the history
  • Loading branch information
huextrat committed Mar 23, 2021
1 parent f0e0bc8 commit e3b9e53
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 1.4.2 - 2021-03-23
## 1.4.2+1 - 2021-03-23

- Fix InkWell when radius is applied to decoration
- `onMenuButtonToggle` is no more required
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Flutter widget to display a popup menu button very simply and easily customizabl

## Installations

Add `menu_button: ^1.4.2` in your `pubspec.yaml` dependencies. And import it:
Add `menu_button: ^1.4.2+1` in your `pubspec.yaml` dependencies. And import it:

```dart
import 'package:menu_button/menu_button.dart';
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.4.2"
version: "1.4.2+1"
meta:
dependency: transitive
description:
Expand Down
7 changes: 3 additions & 4 deletions lib/menu_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class _MenuButtonState<T> extends State<MenuButton<T>> {
child: Material(
color: widget.menuButtonBackgroundColor,
child: InkWell(
borderRadius: decoration.borderRadius as BorderRadius,
borderRadius: decoration.borderRadius != null ? decoration.borderRadius as BorderRadius : null,
child: Container(
child: widget.child,
),
Expand Down Expand Up @@ -569,7 +569,7 @@ class __MenuState<T> extends State<_Menu<T>> {
color: widget.route.decoration.color ??
widget.route.itemBackgroundColor,
border: widget.route.decoration.border,
borderRadius: widget.route.decoration.borderRadius,
borderRadius: widget.route.decoration.borderRadius != null ? widget.route.decoration.borderRadius : null,
boxShadow: <BoxShadow>[
BoxShadow(
color: Color.fromARGB(
Expand All @@ -583,8 +583,7 @@ class __MenuState<T> extends State<_Menu<T>> {
],
),
child: ClipRRect(
borderRadius:
widget.route.decoration.borderRadius as BorderRadius,
borderRadius: widget.route.decoration.borderRadius != null ? widget.route.decoration.borderRadius as BorderRadius : BorderRadius.zero,
child: IntrinsicWidth(
child: SingleChildScrollView(
physics: widget.scrollPhysics,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: menu_button
description: A menu button widget to select an item in a dropdown list easily customizable
homepage: https://github.com/huextrat/menu_button
version: 1.4.2
version: 1.4.2+1

environment:
sdk: ">=2.12.0 <3.0.0"
Expand Down

0 comments on commit e3b9e53

Please sign in to comment.