-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconstants.dart
53 lines (44 loc) · 1.69 KB
/
constants.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import 'package:flutter/material.dart';
import 'configuration.dart';
const kPrimaryColor = Color(0xFFF27E63);
const kPrimaryLightColor = Color(0xFFFFECDF);
// const kPrimaryGradientColor = LinearGradient(
// begin: Alignment.topLeft,
// end: Alignment.bottomRight,
// colors: [Color(0xFFFFA53E), Color(0xFFFF7643)],
// );
const kSecondaryColor = Color(0xFF979797);
const kTextColor = Color(0xFF757575);
const newColor = Color(0xff3C8590);
const kAnimationDuration = Duration(milliseconds: 200);
final headingStyle = TextStyle(
fontSize: getProportionateScreenWidth(28),
fontWeight: FontWeight.bold,
color: Colors.black,
height: 1.5,
);
const defaultDuration = Duration(milliseconds: 250);
// Form Error
final RegExp emailValidatorRegExp =
RegExp(r"^[a-zA-Z0-9.]+@[a-zA-Z0-9]+\.[a-zA-Z]+");
const String kEmailNullError = "Please Enter your email";
const String kInvalidEmailError = "Please Enter Valid Email";
const String kPassNullError = "Please Enter your password";
const String kShortPassError = "Password is too short";
const String kMatchPassError = "Passwords don't match";
const String kNamelNullError = "Please Enter your name";
const String kPhoneNumberNullError = "Please Enter your phone number";
const String kAddressNullError = "Please Enter your address";
final otpInputDecoration = InputDecoration(
contentPadding:
EdgeInsets.symmetric(vertical: getProportionateScreenWidth(15)),
border: outlineInputBorder(),
focusedBorder: outlineInputBorder(),
enabledBorder: outlineInputBorder(),
);
OutlineInputBorder outlineInputBorder() {
return OutlineInputBorder(
borderRadius: BorderRadius.circular(getProportionateScreenWidth(15)),
borderSide: BorderSide(color: kTextColor),
);
}