Skip to content

Commit

Permalink
withGradient Added
Browse files Browse the repository at this point in the history
  • Loading branch information
iampawan committed Apr 7, 2020
1 parent 8a7a6b1 commit 217c369
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 2 deletions.
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,36 @@
## Breaking Change[0.3.0] - April 07, 2020

- VxCard Introduced
- withShadow method for box added.
- withGradient method for box added.
- scaleFactor for text improved.
- withRounded method added for Vx.

This classes are renamed (Breaking change).

1. VelocityX -> Vx

1. VelocityAnimatedBox -> VxAnimatedBox
1. VelocityConditional -> VxConditional
1. VelocityConditionalSwitch -> VxConditionalSwitch
1. VelocityEnsureVisibleWhenFocused -> VxEnsureVisibleWhenFocused

1. VelocityDevice -> VxDevice
1. VelocityResponsive -> VxResponsive
1. VelocityTwo -> VxTwo
1. VelocityTwoColumn -> VxTwoColumn
1. VelocityTwoRow -> VxTwoRow
1. VelocityZeroCard -> VxZeroCard
1. VelocityZeroList -> VxZeroList

1. VelocityBox -> VxBox
1. VelocityXBlock -> VxBlock
1. VelocityXInlineBlock -> VxInlineBlock
1. VelocityDiscList -> VxDiscList
1. VelocityDecimalList -> VxDecimalList

## [0.2.0] - April 01, 2020

-- Added support for rich text.
-- Added support for animated container.
-- Added new textstyle prop for all kind of texts.
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.2.0"
version: "0.3.0"
xml:
dependency: transitive
description:
Expand Down
2 changes: 2 additions & 0 deletions lib/src/flutter/animated/animated_container.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ class VxAnimatedBox extends VxWidgetBuilder<Widget>
VxAnimatedBox sweepGradient(List<Color> colors) =>
this.._gradient = SweepGradient(colors: colors);

VxAnimatedBox withGradient(Gradient gradient) => this.._gradient = gradient;

VxAnimatedBox margin(EdgeInsetsGeometry val) => this.._margin = val;

// DecorationImage BoxDecoration
Expand Down
2 changes: 2 additions & 0 deletions lib/src/flutter/container.dart
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ class VxBox extends VxWidgetBuilder<Widget>
VxBox sweepGradient(List<Color> colors) =>
this.._gradient = SweepGradient(colors: colors);

VxBox withGradient(Gradient gradient) => this.._gradient = gradient;

VxBox bgImage(DecorationImage image) => this.._bgImage = image;

VxBox neumorphic(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: velocity_x
description: A minimalist Flutter framework for rapidly building custom designs.
version: 0.2.0
version: 0.3.0
homepage: https://velocityx.dev
repository: https://github.com/iampawan/VelocityX

Expand Down

0 comments on commit 217c369

Please sign in to comment.