|
| 1 | +import 'package:flutter/material.dart'; |
| 2 | +import 'size_config.dart'; |
| 3 | + |
| 4 | +const kPrimaryColor = Color(0xFFf85717); |
| 5 | +const kAccentColor = Color(0xff1f2e4e); |
| 6 | +const kActiveGreenColor = Color(0xff29AB87); |
| 7 | +// const kPrimaryColor = Color(0xFFFF7643); |
| 8 | +const kPrimaryLightColor = Color(0xFFFFECDF); |
| 9 | +const kPrimaryGradientColor = [Color(0xFFFFA53E), Color(0xFFFF7643)]; |
| 10 | +const kSecondaryColor = Color(0xFF979797); |
| 11 | +const kTextColor = Color(0xFF757575); |
| 12 | +const errorColor = Color(0xffff0033); |
| 13 | + |
| 14 | +const kAnimationDuration = Duration(milliseconds: 200); |
| 15 | + |
| 16 | +final headingStyle = TextStyle( |
| 17 | + fontSize: getHeight(28), |
| 18 | + fontWeight: FontWeight.bold, |
| 19 | + color: Colors.black, |
| 20 | + height: 1.5, |
| 21 | +); |
| 22 | + |
| 23 | +ElevatedButtonThemeData kElevatedButtonThemeData = ElevatedButtonThemeData( |
| 24 | + style: ButtonStyle( |
| 25 | + backgroundColor: MaterialStateProperty.resolveWith((states) => |
| 26 | + states.contains(MaterialState.pressed) |
| 27 | + ? kAccentColor.withOpacity(.9) |
| 28 | + : kAccentColor), |
| 29 | + shape: MaterialStateProperty.all( |
| 30 | + RoundedRectangleBorder( |
| 31 | + borderRadius: BorderRadius.circular(100), |
| 32 | + ), |
| 33 | + ))); |
| 34 | +TextButtonThemeData kTextButtonThemeData = TextButtonThemeData( |
| 35 | + style: ButtonStyle( |
| 36 | + textStyle: MaterialStateProperty.all(TextStyle(color: kAccentColor)), |
| 37 | + shape: MaterialStateProperty.all( |
| 38 | + RoundedRectangleBorder( |
| 39 | + borderRadius: BorderRadius.circular(100), |
| 40 | + ), |
| 41 | + ))); |
| 42 | +OutlinedButtonThemeData kOutlinedButtonThemeData = OutlinedButtonThemeData( |
| 43 | + style: ButtonStyle( |
| 44 | + textStyle: MaterialStateProperty.all(TextStyle(color: kAccentColor)), |
| 45 | + side: MaterialStateProperty.all( |
| 46 | + BorderSide(color: kAccentColor, width: 1)))); |
| 47 | + |
| 48 | +final otpInputDecoration = InputDecoration( |
| 49 | + contentPadding: EdgeInsets.symmetric(vertical: getHeight(15)), |
| 50 | + border: outlineInputBorder(), |
| 51 | + focusedBorder: outlineInputBorder(), |
| 52 | + enabledBorder: outlineInputBorder(), |
| 53 | +); |
| 54 | + |
| 55 | +OutlineInputBorder outlineInputBorder() { |
| 56 | + return OutlineInputBorder( |
| 57 | + borderRadius: BorderRadius.circular(getWidth(15)), |
| 58 | + borderSide: BorderSide(color: kTextColor), |
| 59 | + ); |
| 60 | +} |
0 commit comments