Skip to content

Commit a6d896b

Browse files
committed
Fix: Reformat with dart format
The `fading_marquee_widget.dart` file has been reformatted using `dart format`. The CHANGELOG.md has been updated to reflect this change.
1 parent 0cc517e commit a6d896b

File tree

2 files changed

+33
-37
lines changed

2 files changed

+33
-37
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,8 @@
1414
## 1.0.3
1515

1616
* Minimum supported dart version is 3.8.0.
17-
* updated the version of flutter lints from 4.0.0 to 6.0.0.
17+
* updated the version of flutter lints from 4.0.0 to 6.0.0.
18+
19+
## 1.0.3+1
20+
21+
* Reformatted the package with dart format.

lib/src/fading_marquee_widget.dart

Lines changed: 28 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class _FadingMarqueeWidgetState extends State<FadingMarqueeWidget>
102102
super.didUpdateWidget(oldWidget);
103103
}
104104

105-
animationHandler() async {
105+
Future<void> animationHandler() async {
106106
if (scrollController.position.maxScrollExtent > 0) {
107107
shouldScroll.value = true;
108108

@@ -158,39 +158,31 @@ class _FadingMarqueeWidgetState extends State<FadingMarqueeWidget>
158158
);
159159
}
160160

161-
buildHorizontalWidget(bool shouldScroll) => Row(
162-
children: [
163-
Padding(
164-
padding: EdgeInsets.only(
165-
right: shouldScroll ? widget.gap : 0,
166-
),
167-
child: widget.child,
168-
),
169-
if (shouldScroll)
170-
Padding(
171-
padding: EdgeInsets.only(
172-
right: widget.gap,
173-
),
174-
child: widget.child,
175-
),
176-
],
177-
);
178-
179-
buildVerticalWidget(bool shouldScroll) => Column(
180-
children: [
181-
Padding(
182-
padding: EdgeInsets.only(
183-
bottom: shouldScroll ? widget.gap : 0,
184-
),
185-
child: widget.child,
186-
),
187-
if (shouldScroll)
188-
Padding(
189-
padding: EdgeInsets.only(
190-
bottom: widget.gap,
191-
),
192-
child: widget.child,
193-
),
194-
],
195-
);
161+
Row buildHorizontalWidget(bool shouldScroll) => Row(
162+
children: [
163+
Padding(
164+
padding: EdgeInsets.only(right: shouldScroll ? widget.gap : 0),
165+
child: widget.child,
166+
),
167+
if (shouldScroll)
168+
Padding(
169+
padding: EdgeInsets.only(right: widget.gap),
170+
child: widget.child,
171+
),
172+
],
173+
);
174+
175+
Column buildVerticalWidget(bool shouldScroll) => Column(
176+
children: [
177+
Padding(
178+
padding: EdgeInsets.only(bottom: shouldScroll ? widget.gap : 0),
179+
child: widget.child,
180+
),
181+
if (shouldScroll)
182+
Padding(
183+
padding: EdgeInsets.only(bottom: widget.gap),
184+
child: widget.child,
185+
),
186+
],
187+
);
196188
}

0 commit comments

Comments
 (0)