v1 release
This commit is contained in:
commit
cb24b68069
116 changed files with 4913 additions and 0 deletions
34
lib/shared/configs/flash_mail_icons.dart
Normal file
34
lib/shared/configs/flash_mail_icons.dart
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
// ignore_for_file: constant_identifier_names
|
||||
///
|
||||
/// Flutter icons FlashMailIcons
|
||||
/// Copyright (C) 2023 by original authors @ fluttericon.com, fontello.com
|
||||
/// This font was generated by FlutterIcon.com, which is derived from Fontello.
|
||||
///
|
||||
/// To use this font, place it in your fonts/ directory and include the
|
||||
/// following in your pubspec.yaml
|
||||
///
|
||||
/// flutter:
|
||||
/// fonts:
|
||||
/// - family: FlashMailIcons
|
||||
/// fonts:
|
||||
/// - asset: fonts/FlashMailIcons.ttf
|
||||
|
||||
import "package:flutter/widgets.dart";
|
||||
|
||||
class FlashMailIcons {
|
||||
FlashMailIcons._();
|
||||
|
||||
static const _kFontFam = "FlashMailIcons";
|
||||
static const String? _kFontPkg = null;
|
||||
|
||||
static const IconData sign_out =
|
||||
IconData(0xe800, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData inbox =
|
||||
IconData(0xe801, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData redirect =
|
||||
IconData(0xe802, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData bin =
|
||||
IconData(0xe803, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData arrow_left =
|
||||
IconData(0xe804, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
}
|
||||
12
lib/shared/utils/random_color.dart
Normal file
12
lib/shared/utils/random_color.dart
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import "dart:math";
|
||||
import "dart:ui";
|
||||
|
||||
Color getRandomColor() {
|
||||
Random random = Random();
|
||||
return Color.fromRGBO(
|
||||
random.nextInt(256),
|
||||
random.nextInt(256),
|
||||
random.nextInt(256),
|
||||
1,
|
||||
);
|
||||
}
|
||||
12
lib/shared/utils/random_string.dart
Normal file
12
lib/shared/utils/random_string.dart
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import "dart:math";
|
||||
|
||||
String randomString(int length) {
|
||||
const charset =
|
||||
"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
||||
final random = Random.secure();
|
||||
final codeUnits = List<int>.generate(
|
||||
length,
|
||||
(index) => charset.codeUnitAt(random.nextInt(charset.length)),
|
||||
);
|
||||
return String.fromCharCodes(codeUnits);
|
||||
}
|
||||
3
lib/shared/utils/regex_patterns.dart
Normal file
3
lib/shared/utils/regex_patterns.dart
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
final RegExp emailRegex = RegExp(
|
||||
r'^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$',
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue