Skip to content

Commit 39e407a

Browse files
committed
Merge branch 'dev#2.6.0' into stable
# Conflicts: # CHANGELOG.md # README.md # example/lib/main.dart # example/lib/widgets/draw_android.dart # example/macos/Runner.xcodeproj/project.pbxproj # example/pubspec.lock # lib/src/dart/rest.dart # lib/src/extensions/context_ext.dart # lib/src/extensions/iterable_ext.dart # lib/src/flutter/clippers/vx_arc.dart # lib/src/flutter/clippers/vx_diagonal.dart # lib/src/flutter/container.dart # lib/src/flutter/shapes.dart # lib/src/flutter/textfield.dart # lib/src/flutter/widgets.dart # lib/velocity_x.dart # pubspec.lock # pubspec.yaml
2 parents 2c31a23 + ce2ef5c commit 39e407a

File tree

96 files changed

+3497
-1812
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+3497
-1812
lines changed

CHANGELOG.md

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,37 @@
1-
## [1.4.1] - February 12, 2021
1+
## [2.6.1] - March 31, 2020
22

3-
- Enhancements
3+
- Fixed issue with ZStack.
4+
- Fixed issue with isEmptyOrNull String.
45

5-
## [1.4.0] - February 10, 2021
6+
## [2.6.0] - March 16, 2020
67

8+
- VxNavigator (Navigator 2.0) support added.
9+
- AStack widget added.
10+
11+
## [2.5.0] - March 13, 2020
12+
13+
- VxAnimator added.
14+
- VxLayout added for responsiveness.
15+
16+
## [2.4.0-nullsafety.0] - March 11, 2020
17+
18+
- Direct Text Themes support
19+
- Extended & Improved Color Pallete
20+
- New Demo Added
21+
- Added more gradient options
22+
- size percentage widget added for sizedbox and container
23+
- Flat button changed to Material button
724
- Fixed nullOK issues
825
- Added more clippers
926
- Added align() method for text and richtext
1027
- Improvement in textfield
1128
- Added VxState
1229
- Minor bug fixes and improvements
1330

14-
## [1.3.1] - Decemeber 29, 2020
31+
## [2.3.1-nullsafety.0] - Decemeber 29, 2020
1532

1633
- Introducing VxShapes with ext: VxCircle -> .circle(), VxEllipse -> .ellipse(), VxCapsule -> .capsule(), VxContinuousRectangle -> .continuousRectangle(), VxBevel -> .bevel(), VxTriangle -> .triangle() and VxTicket -> .ticket()
1734
- VxPlatform added to create a common widget for different platforms.
18-
- VxAnimator added exposing the animator package.
1935
- Added widget support to badge and new positions.
2036
- Added isIntrinsic prop for some widgets like DataTable which doesn't support layout builder.
2137
- Vx.getColorFromHex() added to convert hex to color.
@@ -26,6 +42,12 @@
2642
- withAnimation returns AnimationController to control and dispose it manually.
2743
- Many Bug Fixes.
2844

45+
## [2.0.0-nullsafety.1] - November 22, 2020
46+
47+
- BREAKING: opt into null safety
48+
- upgrade Dart SDK constraints to >=2.12.0-0 <3.0.0
49+
- upgrade Flutter SDK constraints to >=1.24.0-0 <2.0.0
50+
2951
## [1.0.1] - November 21, 2020
3052

3153
- Added isFastScrollingEnabled to fast scroll the VxSwiper or swiper ext.

README.md

Lines changed: 56 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,65 @@
11
<p align="center">
22
<a href="https://velocityx.dev/" target="_blank">
3-
<h1>VelocityX</h1>
3+
<img src="https://i.imgur.com/GcsbeIW.png" width="800" alt="VelocityX">
44
</a>
55
</p>
66

7-
<p align="center">
8-
<a href="https://velocityx.dev/" target="_blank">
9-
<img src="https://i.imgur.com/CXEiorH.png" width="800" alt="VelocityX">
10-
</a>
11-
</p>
7+
[![VelocityX](https://img.shields.io/badge/velocityx-fast-red)](https://github.com/iampawan/velocityx)
8+
[![Pub release](https://img.shields.io/pub/v/velocity_x.svg?style=flat-square)](https://pub.dev/packages/velocity_x)
9+
[![GitHub Release Date](https://img.shields.io/github/release-date/iampawan/velocityx.svg?style=flat-square)](https://github.com/iampawan/velocityx)
10+
[![GitHub issues](https://img.shields.io/github/issues/iampawan/velocityx.svg?style=flat-square)](https://github.com/iampawan/velocityx/issues)
11+
[![GitHub top language](https://img.shields.io/github/languages/top/iampawan/velocityx.svg?style=flat-square)](https://github.com/iampawan/velocityx)
12+
[![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/iampawan/velocityx.svg?style=flat-square)](https://github.com/iampawan/velocityx)
13+
[![Likes](https://badges.bar/velocity_x/likes)](https://pub.dev/packages/velocity_x/score)
14+
[![Popularity](https://badges.bar/velocity_x/popularity)](https://pub.dev/packages/velocity_x/score)
15+
[![Pub points](https://badges.bar/flutter_week_view/pub%20points)](https://pub.dev/packages/velocity_x/score)
16+
<a href="https://discord.gg/9tXYvNq"><img src="https://img.shields.io/discord/746087597759004835.svg?logo=discord&color=blue" alt="Discord"></a>
17+
18+
### Show some :heart: and star the repo.
19+
20+
[![GitHub followers](https://img.shields.io/github/followers/iampawan.svg?style=social&label=Follow)](https://github.com/iampawan/)
21+
[![Twitter Follow](https://img.shields.io/twitter/follow/imthepk.svg?style=social)](https://twitter.com/imthepk)
22+
23+
[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=102)](https://opensource.org/licenses/Apache-2.0)
1224

1325
[**VelocityX**](https://velocityx.dev/) is a 100% free Flutter open-source minimalist UI Framework built with <a href="https://flutter.dev/" target="_blank">Flutter SDK</a> to make Flutter development easier and more joyful than ever.
1426

1527
## Inspired from Tailwindcss and SwiftUI.
1628

1729
```dart
18-
"Web".text.white.xl4.bold.center.makeCentered().box.roundedLg.red500.shadow2xl.make().whHalf(context).centered();
30+
"Welcome to VelocityX".text.white.xl4.bold.center.makeCentered().box.roundedLg.red500.shadow2xl.make().whHalf(context).centered();
1931
```
2032

2133
---
2234

35+
### 📌 &nbsp; Bulletin
36+
37+
- Now supports null-safety
38+
- [Video Tutorials on YouTube](https://www.youtube.com/watch?v=IOhJCN4T1V4&list=PLR2qQy0Zxs_UHLXSYbK50jEapx0ORmLYv) for updates & walk through videos.
39+
- [Join the discord](https://discord.gg/9tXYvNq)
40+
2341
## Why use VelocityX?
2442

25-
<img src="https://i.imgur.com/UNf4fE6.png" width="300">
26-
<img src="https://i.imgur.com/UAzM6iT.png" width="290">
27-
<img src="https://i.imgur.com/rE46nEL.png" width="245">
43+
VelocityX is known for :
2844

29-
### Show some :heart: and star the repo.
45+
| Vx | Vx |
46+
| :--------------------------------- | :-------------------------- |
47+
| 100% fast, performant & compatible | 100% free & open-source |
48+
| 100% ready for production | 200% faster for writing UIs |
3049

31-
[![GitHub followers](https://img.shields.io/github/followers/iampawan.svg?style=social&label=Follow)](https://github.com/iampawan/)
32-
[![Twitter Follow](https://img.shields.io/twitter/follow/imthepk.svg?style=social)](https://twitter.com/imthepk)
50+
---
3351

34-
[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=102)](https://opensource.org/licenses/Apache-2.0)
52+
## Features
53+
54+
&nbsp; [State Management](https://velocityx.dev/docs/vxstate/getting_started) </br>
55+
&nbsp; [Navigator 2.0](https://velocityx.dev/docs/vxnavigator/getting_started)
56+
&nbsp; [Animations](https://velocityx.dev/docs/supervx/vxanimator)
57+
&nbsp; [Custom UIs](https://velocityx.dev/docs/install)
58+
&nbsp; [Custom Shapes](https://velocityx.dev/docs/shapes/vxcircle)
59+
&nbsp; [Super VX](https://velocityx.dev/docs/supervx/vxswiper)
60+
&nbsp; [Extension Methods](https://velocityx.dev/docs/extensions/context)
61+
&nbsp; [Responsive Layout](https://velocityx.dev/docs/features/responsive)
62+
&nbsp; [Color Palette](https://velocityx.dev/docs/colors)
3563

3664
# Quick start
3765

@@ -43,25 +71,24 @@ Read the [Getting started page of VelocityX](https://velocityx.dev/docs/install)
4371

4472
---
4573

46-
<a href="https://www.buymeacoffee.com/mtechviral"><img src="https://img.buymeacoffee.com/button-api/?text=Buy me a coffee&emoji=&slug=mtechviral&button_colour=5F7FFF&font_colour=ffffff&font_family=Cookie&outline_colour=000000&coffee_colour=FFDD00"></a>
74+
<a href="https://www.buymeacoffee.com/mtechviral"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png"></a>
4775

4876
---
4977

50-
## Some popular Vx widgets
78+
## Some popular Super Vx widgets
5179

52-
| [VxTimeline]() | [VxAnimation]() | [VxSwiper]() | [VxResponsive]() |
53-
| ------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
54-
| <img src="https://imagizer.imageshack.com/img922/3315/lYf8pd.png" width="400"> | <img src="https://imagizer.imageshack.com/img924/6697/M7az7V.png" width="400" /> | <img src="https://imagizer.imageshack.com/img923/4109/Mmsi87.png" width="400"> | <img src="https://imagizer.imageshack.com/img924/1754/lry31m.png" width="400"> |
55-
| Demo 1 | Demo 2 | Demo 3 | Demo 4 |
56-
| <img src="https://i.imgur.com/xtUOjiV.gif" width="400"> | <img src="https://imagizer.imageshack.com/v2/1024x768q90/922/YgXVGd.png" width="400" /> | <img src="https://imagizer.imageshack.com/v2/1024x768q90/924/u5VAhU.png" width="400"> | <img src="https://imagizer.imageshack.com/v2/1024x768q90/922/kNs9eC.png" width="400"> |
80+
| [VxAnimation](https://velocityx.dev/docs/supervx/vxanimator) | [VxSwiper](https://velocityx.dev/docs/supervx/vxswiper) | [VxResponsive](https://velocityx.dev/docs/features/responsive) | [VxPlatform](https://velocityx.dev/docs/supervx/vxplatform) | [VxToast](https://velocityx.dev/docs/supervx/vxtoast) | [VxRating](https://velocityx.dev/docs/supervx/vxrating) | [VxStepper](https://velocityx.dev/docs/supervx/vxstepper) |
5781

58-
## Some quick UIs made using VelocityX
82+
## Some Quick UIs made using VelocityX
5983

60-
| Demo | Demo2 |
61-
| --------------------------------------------------------- | --------------------------------------------------------- |
62-
| <img src="https://i.imgur.com/Uk28KcB.png" width="300"/> | <img src="https://i.imgur.com/V0mr3S9.png" width="300"/> |
63-
| <img src="https://i.imgur.com/50tJKqU.png" width="300"/> | <img src="https://i.imgur.com/vNPjDMs.png" width="300"/> |
64-
| <img src="https://i.imgur.com/cWlCo6P.png" width="300"/> | <img src= "https://i.imgur.com/Xpdx9UP.png" width="300"> |
84+
<p float="left">
85+
<img src="https://i.imgur.com/DlSuaOG.png" width="500"/>
86+
<img src="https://i.imgur.com/JZ9tOoy.png" width="500"/>
87+
<img src="https://i.imgur.com/JFpw795.png" width="500"/>
88+
<img src="https://i.imgur.com/nuGnpG1.png" width="500"/>
89+
<img src="https://i.imgur.com/DlSuaOG.png" width="500"/>
90+
<img src="https://i.imgur.com/41kZ4Hd.png" width="500"/>
91+
</p>
6592

6693
## Contributing
6794

@@ -86,7 +113,8 @@ If you found this project useful, then please consider giving it a :star: on Git
86113

87114
### YouTube Channel
88115

89-
[MTechViral](https://www.youtube.com/mtechviral)
116+
[mtechviral](https://www.youtube.com/mtechviral) </br>
117+
[codepur](https://www.youtube.com/codepur)
90118

91119
### Facebook Group
92120

example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/lib/examples/animated_box_example.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ class AnimatedBoxExample extends StatefulWidget {
1010
}
1111

1212
class _AnimatedBoxExampleState extends State<AnimatedBoxExample> {
13-
double _width, _height, _radius;
14-
Color _color;
13+
double? _width, _height, _radius;
14+
Color? _color;
1515

1616
@override
1717
void initState() {
@@ -43,10 +43,10 @@ class _AnimatedBoxExampleState extends State<AnimatedBoxExample> {
4343
return VxAnimatedBox()
4444
.seconds(sec: 5)
4545
.fastOutSlowIn
46-
.width(_width + 50)
47-
.height(_height)
48-
.color(_color)
49-
.withRounded(value: _radius)
46+
.width(_width! + 50)
47+
.height(_height!)
48+
.color(_color!)
49+
.withRounded(value: _radius!)
5050
.p16
5151
.alignCenter
5252
.make()

example/lib/examples/animated_page_view.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class _AnimatedPageViewState extends State<AnimatedPageView> {
3737
itemCount: pics.length,
3838
controller: PageController(),
3939
itemBuilder: (context, index) {
40-
final String imgUrl = pics.elementAt(index);
40+
final String? imgUrl = pics.elementAt(index);
4141
final double w = context.screenWidth;
4242
final double h = w * calculateImgScale(index);
4343
return GestureDetector(
@@ -60,7 +60,7 @@ class _AnimatedPageViewState extends State<AnimatedPageView> {
6060
itemCount: pics.length,
6161
currentPageIndex: _currentIndex,
6262
computeAspectRadio: (index) {
63-
return calculateImgScale(index);
63+
return calculateImgScale(index!);
6464
},
6565
notifyScroll: (scrollNotification) {},
6666
);

example/lib/examples/animation_example.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class _VxAnimationExampleState extends State<VxAnimationExample>
2020
duration: 5.seconds,
2121
isRepeatReversed: true,
2222
callBack: (value, percent) {
23-
anim = value;
23+
anim = value as num;
2424
setState(() {});
2525
// print(anim);
2626
},
@@ -34,7 +34,7 @@ class _VxAnimationExampleState extends State<VxAnimationExample>
3434
.semiBold
3535
.center
3636
.makeCentered()
37-
.scale(scaleValue: anim)
37+
.scale(scaleValue: anim as double)
3838
.p16();
3939
}
4040
}

example/lib/main.dart

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import 'package:example/new/demo_list.dart';
12
import 'package:example/widgets/platform_widget.dart';
23
import 'package:example/widgets/vx_shapes.dart';
34
import 'package:flutter/cupertino.dart';
@@ -7,15 +8,19 @@ import 'package:velocity_x/velocity_x.dart';
78
import 'examples/animated_page_view.dart';
89
import 'examples/second_page.dart';
910
import 'models/dummy.dart';
10-
import 'new/vx_demo.dart';
1111
import 'widgets/draw_android.dart';
1212

1313
void main() {
1414
runApp(
15-
MaterialApp(
16-
home: Material(child: SafeArea(child: VxDemo())),
15+
MaterialApp.router(
16+
routeInformationParser: VxInformationParser(),
17+
routerDelegate: VxNavigator(routes: {
18+
"/": (uri, param) => MaterialPage(child: DemoList()),
19+
"/demo": (uri, param) => MaterialPage(child: Demo()),
20+
}),
1721
theme: ThemeData(
18-
primarySwatch: Colors.teal,
22+
primarySwatch: Colors.blue,
23+
primaryColor: Vx.blue500,
1924
brightness: Brightness.light,
2025
),
2126
debugShowCheckedModeBanner: false,
@@ -53,16 +58,16 @@ class _DemoState extends State<Demo> {
5358
// TimelineExample(),
5459
// AnimatedBoxExample(),
5560
// VxAnimationExample(),
56-
VxAnimator<double>(
57-
builder: (context, animState, child) {
58-
return VxBox()
59-
.rounded
60-
.alignCenter
61-
.pink400
62-
.square(animState.value)
63-
.makeCentered();
64-
},
65-
).easeInCubic.doubleTween(10.0, 200.0).seconds(sec: 10).infinite.make(),
61+
// VxAnimator<double>(
62+
// builder: (context, animState, child) {
63+
// return VxBox()
64+
// .rounded
65+
// .alignCenter
66+
// .pink400
67+
// .square(animState.value)
68+
// .makeCentered();
69+
// },
70+
// ).easeInCubic.doubleTween(10.0, 200.0).seconds(sec: 10).infinite.make(),
6671
20.heightBox,
6772
"Hello"
6873
.text
@@ -285,7 +290,7 @@ class _DemoState extends State<Demo> {
285290
.textDropDown(
286291
selectedValue: "Item 1",
287292
onChanged: (value) {
288-
Vx.log(value);
293+
Vx.log(value!);
289294
},
290295
)
291296
.make(),
@@ -308,7 +313,7 @@ class TapMeWidget extends StatelessWidget {
308313
.make(),
309314
"assets/vxbox.png".circularAssetImage(radius: 50)
310315
].row().onInkTap(() {
311-
context.navigator.push(const SecondPage("assets/vxbox.png")
316+
context.navigator!.push(const SecondPage("assets/vxbox.png")
312317
.vxPreviewRoute(parentContext: context));
313318
});
314319
}

0 commit comments

Comments
 (0)