Skip to content

Commit aa5c581

Browse files
committed
v4.1.0 ready
1 parent 7b8085a commit aa5c581

File tree

13 files changed

+44
-30
lines changed

13 files changed

+44
-30
lines changed

CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
## [4.1.0] - May 29, 2023
2+
3+
- [New] VxAdaptive widget for responsive screen adaption and scaling.
4+
- [New] VxFlip widget for flipping effect.
5+
- [New] VxStat widget for common stats view.
6+
- [New] New extension methods for context, color, duration, and function etc.
7+
- [New] debounce() and throttle() extension methods added along with .foregroundColor().
8+
- [New] More boolean for device and OS checks.
9+
- [Breaking] VxDiscList and VxDecimalList are now VxUnorderedList and VxOrderedList with more options.
10+
- VStack, HStack, VxTimeline, VxUniversal etc improved.
11+
- Demo updated.
12+
- Many Bug Fixes.
13+
114
## [4.0.0] - May 22, 2023
215

316
- [New] VxFilter to support filters on your widgets.

example/lib/new/test.dart

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

example/pubspec.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ packages:
376376
path: ".."
377377
relative: true
378378
source: path
379-
version: "4.0.0"
379+
version: "4.1.0"
380380
vxstate:
381381
dependency: transitive
382382
description:

lib/src/flutter/animated/animated_height.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ class VxAnimatedHeightView<T extends Widget> extends StatefulWidget {
1414
final int? currentPageIndex;
1515

1616
const VxAnimatedHeightView(
17-
{super.key, required this.pageViewChild,
17+
{super.key,
18+
required this.pageViewChild,
1819
required this.computeAspectRadio,
1920
this.notifyScroll,
2021
required this.itemCount,

lib/src/flutter/badge.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ class VxBadge extends StatelessWidget {
3434
/// To provide an optional widget like an Icon
3535
final Widget? optionalWidget;
3636

37-
const VxBadge({super.key,
37+
const VxBadge({
38+
super.key,
3839
required this.child,
3940
this.type = VxBadgeType.round,
4041
this.color,

lib/src/flutter/common/velocity_round.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ class VxRound extends StatelessWidget {
2424
final dynamic child;
2525
final TextStyle? textStyle;
2626

27-
const VxRound({super.key,
27+
const VxRound({
28+
super.key,
2829
this.type = VxRoundType.point,
2930
this.size,
3031
this.color,

lib/src/flutter/divider.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ class VxDivider extends StatelessWidget {
1212
final double? indent;
1313
final double? endIndent;
1414

15-
const VxDivider({super.key,
15+
const VxDivider({
16+
super.key,
1617
this.type = VxDividerType.horizontal,
1718
this.color,
1819
this.width = 1,

lib/src/flutter/marquee.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ class VxMarquee extends StatefulWidget {
2424
final Axis scrollAxis;
2525
final double ratioOfBlankToScreen;
2626

27-
const VxMarquee({super.key,
27+
const VxMarquee({
28+
super.key,
2829
required this.text,
2930
this.textStyle,
3031
this.scrollAxis = Axis.horizontal,

lib/src/flutter/pinview.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class VxPinView extends StatefulWidget {
7171
this.onEditingComplete,
7272
this.onSubmitted,
7373
this.focusNode,
74-
}) : assert(count > 0);
74+
}) : assert(count > 0);
7575

7676
@override
7777
VxPinViewState createState() => VxPinViewState();

lib/src/flutter/random.dart

+5-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ class VxRandomBox extends StatefulWidget {
2020
final bool changeOnRedraw;
2121

2222
const VxRandomBox(
23-
{super.key, this.width, this.height, this.child, this.changeOnRedraw = true});
23+
{super.key,
24+
this.width,
25+
this.height,
26+
this.child,
27+
this.changeOnRedraw = true});
2428

2529
@override
2630
VxRandomBoxState createState() => VxRandomBoxState();

lib/src/flutter/rating.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ class VxRating extends StatefulWidget {
5151
/// Use onRatingUpdate to get the selected value.
5252
final ValueChanged<String> onRatingUpdate;
5353

54-
const VxRating({super.key,
54+
const VxRating({
55+
super.key,
5556
this.maxRating = 10.0,
5657
this.count = 5,
5758
this.value = 10.0,

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: velocity_x
22
description: A minimalist Flutter framework for rapidly building custom designs.
3-
version: 4.0.0
3+
version: 4.1.0
44
homepage: https://velocityx.dev
55
repository: https://github.com/iampawan/VelocityX
66
documentation: https://velocityx.dev

test/flutter/text_test.dart

+10-20
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ void main() {
5151
});
5252

5353
group("Group all text tests", () {
54-
testWidgets('text used on String creates a Text Widget',
55-
(tester) async {
54+
testWidgets('text used on String creates a Text Widget', (tester) async {
5655
await tester.pumpWidget(
5756
getDirectionalityWidget(
5857
child: 'VelocityX'.text.make(),
@@ -65,8 +64,7 @@ void main() {
6564
);
6665
});
6766

68-
testWidgets('Text widget responds to Font Scale',
69-
(tester) async {
67+
testWidgets('Text widget responds to Font Scale', (tester) async {
7068
await tester.pumpWidget(
7169
getDirectionalityWidget(
7270
child: 'VelocityX'.text.xs.make(),
@@ -80,8 +78,7 @@ void main() {
8078
);
8179
});
8280

83-
testWidgets('Text widget responds to fontSize',
84-
(tester) async {
81+
testWidgets('Text widget responds to fontSize', (tester) async {
8582
await tester.pumpWidget(
8683
getDirectionalityWidget(
8784
child: "VelocityX".text.size(24).make(),
@@ -94,8 +91,7 @@ void main() {
9491
);
9592
});
9693

97-
testWidgets('Text widget responds to FontWeight',
98-
(tester) async {
94+
testWidgets('Text widget responds to FontWeight', (tester) async {
9995
await tester.pumpWidget(
10096
getDirectionalityWidget(
10197
child: 'VelocityX'.text.medium.make(),
@@ -112,8 +108,7 @@ void main() {
112108
);
113109
});
114110

115-
testWidgets('Text widget responds to FontStyle',
116-
(tester) async {
111+
testWidgets('Text widget responds to FontStyle', (tester) async {
117112
await tester.pumpWidget(
118113
getDirectionalityWidget(child: 'VelocityX'.text.italic.make()));
119114

@@ -123,17 +118,15 @@ void main() {
123118
);
124119
});
125120

126-
testWidgets('Text widget responds to alignment',
127-
(tester) async {
121+
testWidgets('Text widget responds to alignment', (tester) async {
128122
await tester.pumpWidget(
129123
getDirectionalityWidget(child: 'VelocityX'.text.start.make()));
130124

131125
expect(tester.widget<AutoSizeText>(find.byType(AutoSizeText)).textAlign,
132126
TextAlign.start);
133127
});
134128

135-
testWidgets('Text widget responds to letter spacing',
136-
(tester) async {
129+
testWidgets('Text widget responds to letter spacing', (tester) async {
137130
await tester.pumpWidget(
138131
getDirectionalityWidget(child: 'VelocityX'.text.tightest.make()));
139132

@@ -158,8 +151,7 @@ void main() {
158151
4.0);
159152
});
160153

161-
testWidgets('Text widget responds to TextDecoration',
162-
(tester) async {
154+
testWidgets('Text widget responds to TextDecoration', (tester) async {
163155
await tester.pumpWidget(
164156
getDirectionalityWidget(child: 'VelocityX'.text.underline.make()));
165157

@@ -171,8 +163,7 @@ void main() {
171163
TextDecoration.underline);
172164
});
173165

174-
testWidgets('Text widget responds to line height',
175-
(tester) async {
166+
testWidgets('Text widget responds to line height', (tester) async {
176167
await tester.pumpWidget(
177168
getDirectionalityWidget(child: 'VelocityX'.text.heightSnug.make()));
178169

@@ -182,8 +173,7 @@ void main() {
182173
0.875);
183174
});
184175

185-
testWidgets('Text widget responds to text utilities',
186-
(tester) async {
176+
testWidgets('Text widget responds to text utilities', (tester) async {
187177
await tester.pumpWidget(
188178
getDirectionalityWidget(child: 'VelocityX'.text.uppercase.make()));
189179

0 commit comments

Comments
 (0)