Skip to content

Commit

Permalink
[setup] fvm for project
Browse files Browse the repository at this point in the history
  • Loading branch information
this-kin committed Apr 9, 2024
1 parent 58c3feb commit 6eaa1c2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions .fvm/flutter_sdk
4 changes: 4 additions & 0 deletions .fvm/fvm_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"flutterSdkVersion": "3.16.5",
"flavors": {}
}
12 changes: 7 additions & 5 deletions lib/core/extensions/string_extensions.dart
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import 'package:qoute_app/constants/app_constants.dart';

extension StringX on String {
// an extension to get a validated email on string
/// an extension to get a validated email on string
bool get isValidEmail => Constants.emailRegex.hasMatch(this);
// an extension to get a validated name on string

/// an extension to get a validated name on string
bool get isValidFullName => Constants.fullNameRegex.hasMatch(this);
// an extension to get a validated contact on string

/// an extension to get a validated contact on string
bool get isValidContact => Constants.contactRegex.hasMatch(this);

// get app images
/// get app images
String toImage() => "assets/images/$this.png";

// get app svgs
/// get app svgs
String toSvg() => "assets/svgs/$this.svg";
}

0 comments on commit 6eaa1c2

Please sign in to comment.