Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
iampawan committed Mar 21, 2020
1 parent 032a3cb commit 792920f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 11 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions example/fvm
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
);

Expand Down
12 changes: 3 additions & 9 deletions lib/src/flutter/card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ import 'velocityx_mixins/padding_mixin.dart';
import 'velocityx_mixins/round_mixin.dart';

class _VelocityXCardBuilder extends VelocityXWidgetBuilder<Widget>
with
VelocityColorMixin<_VelocityXCardBuilder>,
VelocityPaddingMixin<_VelocityXCardBuilder>,
VelocityRoundMixin<_VelocityXCardBuilder> {
with VelocityColorMixin<_VelocityXCardBuilder>, VelocityPaddingMixin<_VelocityXCardBuilder>, VelocityRoundMixin<_VelocityXCardBuilder> {
_VelocityXCardBuilder(
this._child,
) : assert(_child != null) {
Expand All @@ -40,8 +37,7 @@ class _VelocityXCardBuilder extends VelocityXWidgetBuilder<Widget>

_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;

Expand All @@ -61,9 +57,7 @@ class _VelocityXCardBuilder extends VelocityXWidgetBuilder<Widget>
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,
);
}
Expand Down
1 change: 1 addition & 0 deletions lib/src/flutter/selectable_text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ class VelocityXSelectableTextBuilder extends VelocityXWidgetBuilder<SelectableTe
toolbarOptions: const ToolbarOptions(copy: true, cut: true, paste: true, selectAll: true),
onTap: _onTap,
enableInteractiveSelection: true,

// showCursor: true,
textScaleFactor: _scaleFactor,
style: _textStyle?.copyWith(
Expand Down
2 changes: 1 addition & 1 deletion velocitylib.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
"settings": {
"dart.lineLength": 200
}
}
}

0 comments on commit 792920f

Please sign in to comment.