Skip to content

Commit 341a363

Browse files
author
deimos
committed
dartfmt !
1 parent fa724d4 commit 341a363

File tree

5 files changed

+21
-11
lines changed

5 files changed

+21
-11
lines changed

.idea/workspace.xml

+12-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## [2.0.0+4] - 10 Aug 2021
2+
* dartfmt!
3+
14
## [2.0.0+3] - 10 Aug 2021
25
* removed dart:io dependency for web compatibility
36
* bug fix in web version when animating the blur

example/pubspec.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ packages:
113113
path: ".."
114114
relative: true
115115
source: path
116-
version: "2.0.0+3"
116+
version: "2.0.0+4"
117117
stream_channel:
118118
dependency: transitive
119119
description:

lib/star_menu.dart

+4-5
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ class StarMenu extends StatefulWidget {
197197
required this.params,
198198
required this.items,
199199
required this.child,
200-
}) : assert(items.length > 0),
201-
super(key: key);
200+
}) : assert(items.length > 0),
201+
super(key: key);
202202

203203
@override
204204
StarMenuState createState() => StarMenuState();
@@ -269,8 +269,7 @@ class StarMenuState extends State<StarMenu>
269269

270270
@override
271271
void didChangeMetrics() {
272-
if (!paramsAlreadyGot && MediaQuery.of(context).size != screenSize)
273-
return;
272+
if (!paramsAlreadyGot && MediaQuery.of(context).size != screenSize) return;
274273

275274
_addPostFrameCallback();
276275

@@ -444,7 +443,7 @@ class StarMenuState extends State<StarMenu>
444443
);
445444

446445
if ((widget.params.backgroundParams.sigmaX > 0 ||
447-
widget.params.backgroundParams.sigmaY > 0) &&
446+
widget.params.backgroundParams.sigmaY > 0) &&
448447
animValue > 0) {
449448
late double db;
450449
if (widget.params.backgroundParams.animatedBlur)

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: star_menu
22
description: Contextual popup menu with different shapes and multiple ways to fine-tune animation and position. The menu entries can be almost any kind of widgets.
3-
version: 2.0.0+3
3+
version: 2.0.0+4
44
homepage: https://github.com/alnitak/flutter_star_menu
55
issue_tracker: https://github.com/alnitak/flutter_star_menu/issues
66

0 commit comments

Comments
 (0)