Skip to content

Commit ea8f655

Browse files
committed
Fixes small formatting issues
1 parent 8cc5951 commit ea8f655

File tree

5 files changed

+14
-11
lines changed

5 files changed

+14
-11
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.3.1
2+
### Changed
3+
* Small formatting issues.
4+
15
## 0.3.0
26
### Changed
37
* Add support for null-safety.

example/pubspec.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ packages:
8787
path: ".."
8888
relative: true
8989
source: path
90-
version: "0.3.0"
90+
version: "0.3.1"
9191
path:
9292
dependency: transitive
9393
description:
@@ -155,7 +155,7 @@ packages:
155155
name: value_layout_builder
156156
url: "https://pub.dartlang.org"
157157
source: hosted
158-
version: "0.3.0"
158+
version: "0.3.1"
159159
vector_math:
160160
dependency: transitive
161161
description:

lib/src/rendering/overflow_view.dart

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ class RenderOverflowView extends RenderBox
2222
required Axis direction,
2323
required double spacing,
2424
required OverflowViewLayoutBehavior layoutBehavior,
25-
}) : assert(spacing > double.negativeInfinity &&
26-
spacing < double.infinity),
25+
}) : assert(spacing > double.negativeInfinity && spacing < double.infinity),
2726
_direction = direction,
2827
_spacing = spacing,
2928
_layoutBehavior = layoutBehavior,
@@ -44,8 +43,7 @@ class RenderOverflowView extends RenderBox
4443
double get spacing => _spacing;
4544
double _spacing;
4645
set spacing(double value) {
47-
assert(value > double.negativeInfinity &&
48-
value < double.infinity);
46+
assert(value > double.negativeInfinity && value < double.infinity);
4947
if (_spacing != value) {
5048
_spacing = value;
5149
markNeedsLayout();
@@ -60,6 +58,7 @@ class RenderOverflowView extends RenderBox
6058
markNeedsLayout();
6159
}
6260
}
61+
6362
bool _isHorizontal;
6463
@override
6564
void setupParentData(RenderBox child) {
@@ -262,7 +261,7 @@ class RenderOverflowView extends RenderBox
262261
_hasOverflow = true;
263262
}
264263

265-
if (overflowIndicatorConstraints.value != unRenderedChildCount && overflowIndicator != null) {
264+
if (overflowIndicatorConstraints.value != unRenderedChildCount) {
266265
// The number of unrendered child changed, we have to layout the
267266
// indicator another time.
268267
overflowIndicator.layout(
@@ -293,7 +292,7 @@ class RenderOverflowView extends RenderBox
293292
// a last time, and can cause error.
294293
lastChild?.layout(BoxValueConstraints<int>(
295294
value: unRenderedChildCount,
296-
constraints: childConstraints as BoxConstraints,
295+
constraints: childConstraints,
297296
));
298297

299298
// Because the overflow indicator will be paint outside of the screen,

pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ packages:
141141
name: value_layout_builder
142142
url: "https://pub.dartlang.org"
143143
source: hosted
144-
version: "0.3.0"
144+
version: "0.3.1"
145145
vector_math:
146146
dependency: transitive
147147
description:

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: overflow_view
22
description: A widget displaying children in a line with an overflow indicator at the end if there is not enough space.
3-
version: 0.3.0
3+
version: 0.3.1
44
homepage: https://github.com/letsar/overflow_view
55

66
environment:
@@ -10,7 +10,7 @@ environment:
1010
dependencies:
1111
flutter:
1212
sdk: flutter
13-
value_layout_builder: ^0.3.0
13+
value_layout_builder: ^0.3.1
1414

1515
dev_dependencies:
1616
flutter_test:

0 commit comments

Comments
 (0)