From 792920f1abb27a94c28114cb15ae5c749b5b2c83 Mon Sep 17 00:00:00 2001 From: iampawan Date: Sat, 21 Mar 2020 12:39:05 +0530 Subject: [PATCH] minor changes --- .vscode/settings.json | 1 + example/fvm | 1 + example/lib/main.dart | 2 +- lib/src/flutter/card.dart | 12 +++--------- lib/src/flutter/selectable_text.dart | 1 + velocitylib.code-workspace | 2 +- 6 files changed, 8 insertions(+), 11 deletions(-) create mode 100644 .vscode/settings.json create mode 120000 example/fvm diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1 @@ +{} diff --git a/example/fvm b/example/fvm new file mode 120000 index 0000000..3687a9b --- /dev/null +++ b/example/fvm @@ -0,0 +1 @@ +/Users/pawankumar/fvm/versions/stable/bin/flutter \ No newline at end of file diff --git a/example/lib/main.dart b/example/lib/main.dart index 6daceaa..1fca033 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -17,7 +17,7 @@ class Demo extends StatelessWidget { // ), // ); child: VelocityDevice( - mobile: "Mobile".text.white.xl4.semiBold.center.makeCentered().box.roundedLg.green500.shadow2xl.make().whHalf(context).centered(), + mobile: "Mobile".selectableText.white.xl4.semiBold.center.makeCentered().box.roundedLg.green500.shadow2xl.make().whHalf(context).centered(), web: "Web".text.white.xl4.bold.center.makeCentered().box.roundedLg.red500.shadow2xl.make().whHalf(context).centered()), ); diff --git a/lib/src/flutter/card.dart b/lib/src/flutter/card.dart index be71d71..c3c9a06 100644 --- a/lib/src/flutter/card.dart +++ b/lib/src/flutter/card.dart @@ -21,10 +21,7 @@ import 'velocityx_mixins/padding_mixin.dart'; import 'velocityx_mixins/round_mixin.dart'; class _VelocityXCardBuilder extends VelocityXWidgetBuilder - with - VelocityColorMixin<_VelocityXCardBuilder>, - VelocityPaddingMixin<_VelocityXCardBuilder>, - VelocityRoundMixin<_VelocityXCardBuilder> { + with VelocityColorMixin<_VelocityXCardBuilder>, VelocityPaddingMixin<_VelocityXCardBuilder>, VelocityRoundMixin<_VelocityXCardBuilder> { _VelocityXCardBuilder( this._child, ) : assert(_child != null) { @@ -40,8 +37,7 @@ class _VelocityXCardBuilder extends VelocityXWidgetBuilder _VelocityXCardBuilder color(Color val) => this..velocityColor = val; - _VelocityXCardBuilder hexColor(String colorHex) => - this..velocityColor = VelocityX.hexToColor(colorHex); + _VelocityXCardBuilder hexColor(String colorHex) => this..velocityColor = VelocityX.hexToColor(colorHex); _VelocityXCardBuilder elevation(double val) => this.._elevation = val; @@ -61,9 +57,7 @@ class _VelocityXCardBuilder extends VelocityXWidgetBuilder color: velocityColor ?? ThemeData().cardColor, clipBehavior: Clip.antiAlias, elevation: _elevation, - shape: roundedValue.isNotNull - ? RoundedRectangleBorder(borderRadius: BorderRadius.circular(roundedValue)) - : _shape, + shape: roundedValue.isNotNull ? RoundedRectangleBorder(borderRadius: BorderRadius.circular(roundedValue)) : _shape, shadowColor: _shadowColor, ); } diff --git a/lib/src/flutter/selectable_text.dart b/lib/src/flutter/selectable_text.dart index 6c96c87..50c3c7d 100644 --- a/lib/src/flutter/selectable_text.dart +++ b/lib/src/flutter/selectable_text.dart @@ -158,6 +158,7 @@ class VelocityXSelectableTextBuilder extends VelocityXWidgetBuilder