Skip to content

Commit

Permalink
v0.3.4 ready
Browse files Browse the repository at this point in the history
  • Loading branch information
iampawan committed May 3, 2020
1 parent 3f983d0 commit 5788882
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## [0.3.3] - May 04, 2020
## [0.3.4] - May 04, 2020

- Fixed transform extension issues.
- Added clip prop to the card and box.
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,6 @@ packages:
path: ".."
relative: true
source: path
version: "0.3.2"
version: "0.3.4"
sdks:
dart: ">=2.6.0 <3.0.0"
11 changes: 8 additions & 3 deletions lib/src/flutter/common/velocity_ensure_visible.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ class VxEnsureVisibleWhenFocused extends StatefulWidget {
final Duration duration;

@override
_VxEnsureVisibleWhenFocusedState createState() => _VxEnsureVisibleWhenFocusedState();
_VxEnsureVisibleWhenFocusedState createState() =>
_VxEnsureVisibleWhenFocusedState();
}

///
Expand Down Expand Up @@ -109,7 +110,10 @@ class _VxEnsureVisibleWhenFocusedState extends State<VxEnsureVisibleWhenFocused>

Future<void> _ensureVisible() async {
// Wait for the keyboard to come into view
await Future.any([Future.delayed(const Duration(milliseconds: 300)), _keyboardToggled()]);
await Future.any([
Future.delayed(const Duration(milliseconds: 300)),
_keyboardToggled()
]);

// No need to go any further if the node has not the focus
if (!widget.focusNode.hasFocus) {
Expand All @@ -136,7 +140,8 @@ class _VxEnsureVisibleWhenFocusedState extends State<VxEnsureVisibleWhenFocused>
if (position.pixels > viewport.getOffsetToReveal(object, 0.0).offset) {
// Move down to the top of the viewport
alignment = 0.0;
} else if (position.pixels < viewport.getOffsetToReveal(object, 1.0).offset) {
} else if (position.pixels <
viewport.getOffsetToReveal(object, 1.0).offset) {
// Move up to the bottom of the viewport
alignment = 1.0;
} else {
Expand Down
5 changes: 2 additions & 3 deletions lib/src/flutter/container.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class VxBox extends VxWidgetBuilder<Widget>
double _height;
double _width;
VxNeumorph _velocityNeumorph;
Clip _clip;
// Clip _clip;

EdgeInsetsGeometry _margin;
Matrix4 _transform;
Expand Down Expand Up @@ -81,7 +81,7 @@ class VxBox extends VxWidgetBuilder<Widget>
// transforming
VxBox transform(Matrix4 val) => this.._transform = val;

VxBox clip(Clip clip) => this.._clip = clip;
// VxBox clip(Clip clip) => this.._clip = clip;

VxBox get roundedFull => this.._isCircleRounded = true;

Expand Down Expand Up @@ -266,7 +266,6 @@ class VxBox extends VxWidgetBuilder<Widget>
alignment: velocityAlignment,
transform: _transform,
child: child,
clipBehavior: _clip ?? Clip.antiAlias,
decoration: _velocityNeumorph != null
? BoxDecoration(
borderRadius: _isCircleRounded || roundedValue.isNull
Expand Down
1 change: 0 additions & 1 deletion lib/src/flutter/velocityx_mixins/duration_mixin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,4 @@ mixin VxDurationMixing<T> {
velocityDuration = Duration(minutes: mins);
return _child;
}

}
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.3.3
version: 0.3.4
homepage: https://velocityx.dev
repository: https://github.com/iampawan/VelocityX

Expand Down

0 comments on commit 5788882

Please sign in to comment.