@ -31,16 +31,11 @@ Widget getPaymentMethods() {
mainAxisSize: MainAxisSize . max ,
mainAxisAlignment: MainAxisAlignment . spaceBetween ,
children: [
Image . asset ( " assets/images/new/payment/Mada.png " ,
width: 40 , height: 40 ) ,
Image . asset ( " assets/images/new/payment/tamara_en.png " ,
width: 40 , height: 40 ) ,
Image . asset ( " assets/images/new/payment/visa.png " ,
width: 40 , height: 40 ) ,
Image . asset ( " assets/images/new/payment/Mastercard.png " ,
width: 50 , height: 40 ) ,
Image . asset ( " assets/images/new/payment/Apple_Pay.png " ,
width: 40 , height: 40 ) ,
Image . asset ( " assets/images/new/payment/Mada.png " , width: 40 , height: 40 ) ,
Image . asset ( " assets/images/new/payment/tamara_en.png " , width: 40 , height: 40 ) ,
Image . asset ( " assets/images/new/payment/visa.png " , width: 40 , height: 40 ) ,
Image . asset ( " assets/images/new/payment/Mastercard.png " , width: 50 , height: 40 ) ,
Image . asset ( " assets/images/new/payment/Apple_Pay.png " , width: 40 , height: 40 ) ,
] ,
) ,
) ;
@ -52,15 +47,8 @@ Widget getNoDataWidget(BuildContext context) {
child: Column (
mainAxisAlignment: MainAxisAlignment . center ,
children: [
SvgPicture . asset ( ' assets/images/new/not_found.svg ' ,
width: 110.0 , height: 110.0 ) ,
Container (
margin: EdgeInsets . only ( top: 15.0 ) ,
child: Text ( TranslationBase . of ( context ) . noResultFound ,
style: TextStyle (
fontSize: 14 ,
fontWeight: FontWeight . w600 ,
color: Color ( 0xFFBABABA ) ) ) ) ,
SvgPicture . asset ( ' assets/images/new/not_found.svg ' , width: 110.0 , height: 110.0 ) ,
Container ( margin: EdgeInsets . only ( top: 15.0 ) , child: Text ( TranslationBase . of ( context ) . noResultFound , style: TextStyle ( fontSize: 14 , fontWeight: FontWeight . w600 , color: Color ( 0xFFBABABA ) ) ) ) ,
] ,
) ,
) ,
@ -88,8 +76,7 @@ spacer() {
}
Future navigateTo ( context , page ) async {
return await Navigator . push (
context , MaterialPageRoute ( builder: ( context ) = > page ) ) ;
return await Navigator . push ( context , MaterialPageRoute ( builder: ( context ) = > page ) ) ;
}
/ / Future navigateToReplace ( context , page ) async {
@ -147,11 +134,7 @@ Widget circularAviator(
child: Container (
width: s ,
height: s ,
decoration: containerColorRadiusBorderWidth (
bcColor = = null ? Colors . grey [ 200 ] : bcColor ,
2000 ,
brColor = = null ? Colors . blueGrey [ 800 ] : brColor ,
borderWidth = = null ? 2 : borderWidth ) ,
decoration: containerColorRadiusBorderWidth ( bcColor = = null ? Colors . grey [ 200 ] : bcColor , 2000 , brColor = = null ? Colors . blueGrey [ 800 ] : brColor , borderWidth = = null ? 2 : borderWidth ) ,
child: Icon (
icon = = null ? Icons . person : icon ,
size: s / 1.7 ,
@ -233,8 +216,7 @@ RoundedRectangleBorder buttonShape() {
) ;
}
Decoration containerRadiusWithGradient ( double radius ,
{ Color color1 , Color color2 } ) {
Decoration containerRadiusWithGradient ( double radius , { Color color1 , Color color2 } ) {
return BoxDecoration (
borderRadius: BorderRadius . circular ( radius ) ,
gradient: LinearGradient (
@ -248,8 +230,7 @@ Decoration containerRadiusWithGradient(double radius,
) ;
}
Decoration containerBottomRightRadiusWithGradient ( double radius ,
{ Color darkColor , Color lightColor } ) {
Decoration containerBottomRightRadiusWithGradient ( double radius , { Color darkColor , Color lightColor } ) {
return BoxDecoration (
borderRadius: BorderRadius . only ( bottomRight: Radius . circular ( radius ) ) ,
gradient: LinearGradient (
@ -263,8 +244,7 @@ Decoration containerBottomRightRadiusWithGradient(double radius,
) ;
}
Decoration containerBottomRightRadiusWithGradientForAr ( double radius ,
{ Color darkColor , Color lightColor } ) {
Decoration containerBottomRightRadiusWithGradientForAr ( double radius , { Color darkColor , Color lightColor } ) {
return BoxDecoration (
borderRadius: BorderRadius . only ( bottomLeft: Radius . circular ( radius ) ) ,
gradient: LinearGradient (
@ -307,11 +287,7 @@ Decoration containerRadiusWithGradientServices(
) ;
}
Decoration containerBottomRightRadiusWithGradientBorder ( double radius ,
{ Color darkColor ,
Color lightColor ,
Color borderColor = Colors . transparent ,
double w = 0 } ) {
Decoration containerBottomRightRadiusWithGradientBorder ( double radius , { Color darkColor , Color lightColor , Color borderColor = Colors . transparent , double w = 0 } ) {
return BoxDecoration (
borderRadius: BorderRadius . all ( Radius . circular ( radius ) ) ,
border: Border . all (
@ -332,6 +308,13 @@ Decoration containerBottomRightRadiusWithGradientBorder(double radius,
Decoration containerRadius ( Color background , double radius ) {
return BoxDecoration (
color: background ,
boxShadow: [
BoxShadow (
color: Color ( 0xff000000 ) . withOpacity ( . 05 ) ,
blurRadius: 27 ,
offset: Offset ( 0 , - 3 ) ,
) ,
] ,
border: Border . all (
width: 1 , / /
color: background / / < - - - border width here
@ -340,8 +323,7 @@ Decoration containerRadius(Color background, double radius) {
) ;
}
Decoration containerColorRadiusBorder (
Color background , double radius , Color color ) {
Decoration containerColorRadiusBorder ( Color background , double radius , Color color ) {
return BoxDecoration (
color: background ,
border: Border . all (
@ -352,8 +334,7 @@ Decoration containerColorRadiusBorder(
) ;
}
Decoration containerColorRadiusBorderWidth (
Color background , double radius , Color color , double w ) {
Decoration containerColorRadiusBorderWidth ( Color background , double radius , Color color , double w ) {
return BoxDecoration (
color: background ,
border: Border . all (
@ -364,8 +345,7 @@ Decoration containerColorRadiusBorderWidth(
) ;
}
Decoration containerColorRadiusBorderWidthCircular (
Color background , double radius , Color color , double w ) {
Decoration containerColorRadiusBorderWidthCircular ( Color background , double radius , Color color , double w ) {
return BoxDecoration (
color: background ,
border: Border . all (
@ -380,36 +360,29 @@ Decoration containerColorRadiusBorderWidthCircular(
Decoration containerColorRadiusRight ( Color background , double radius ) {
return BoxDecoration (
color: background ,
borderRadius: BorderRadius . only (
topRight: Radius . circular ( radius ) ,
bottomRight: Radius . circular ( radius ) ) ,
borderRadius: BorderRadius . only ( topRight: Radius . circular ( radius ) , bottomRight: Radius . circular ( radius ) ) ,
) ;
}
Decoration containerColorRadiusLeft ( Color background , double radius ) {
return BoxDecoration (
color: background ,
borderRadius: BorderRadius . only (
topLeft: Radius . circular ( radius ) , bottomLeft: Radius . circular ( radius ) ) ,
borderRadius: BorderRadius . only ( topLeft: Radius . circular ( radius ) , bottomLeft: Radius . circular ( radius ) ) ,
) ;
}
Decoration containerColorRadiusRightBorder (
Color background , double radius , double w ) {
Decoration containerColorRadiusRightBorder ( Color background , double radius , double w ) {
return BoxDecoration (
color: background ,
border: Border . all (
width: w , / /
color: Colors . white / / < - - - border width here
) ,
borderRadius: BorderRadius . only (
topRight: Radius . circular ( radius ) ,
bottomRight: Radius . circular ( radius ) ) ,
borderRadius: BorderRadius . only ( topRight: Radius . circular ( radius ) , bottomRight: Radius . circular ( radius ) ) ,
) ;
}
Decoration containerColorRadiusRightBorderc (
Color background , double radius , double w , Color borderColor ) {
Decoration containerColorRadiusRightBorderc ( Color background , double radius , double w , Color borderColor ) {
return BoxDecoration (
color: background ,
border: Border . all (
@ -440,16 +413,14 @@ Decoration containerColorRadiusBottom(Color color, double radius) {
) ;
}
Decoration containerColorRadiusLeftBorder (
Color background , double radius , double w ) {
Decoration containerColorRadiusLeftBorder ( Color background , double radius , double w ) {
return BoxDecoration (
color: background ,
border: Border . all (
width: w , / /
color: Colors . white / / < - - - border width here
) ,
borderRadius: BorderRadius . only (
topLeft: Radius . circular ( radius ) , bottomLeft: Radius . circular ( radius ) ) ,
borderRadius: BorderRadius . only ( topLeft: Radius . circular ( radius ) , bottomLeft: Radius . circular ( radius ) ) ,
) ;
}
@ -481,23 +452,19 @@ ShapeBorder cardRadiusNew(double radius) {
ShapeBorder cardRadiusTop ( double radius ) {
return RoundedRectangleBorder (
side: BorderSide ( color: Colors . transparent , width: 0 ) ,
borderRadius: BorderRadius . only (
topLeft: Radius . circular ( radius ) , topRight: Radius . circular ( radius ) ) ,
borderRadius: BorderRadius . only ( topLeft: Radius . circular ( radius ) , topRight: Radius . circular ( radius ) ) ,
) ;
}
ShapeBorder cardRadiusTop2 ( double radius ) {
return RoundedRectangleBorder (
borderRadius: BorderRadius . only (
topLeft: Radius . circular ( radius ) , topRight: Radius . circular ( radius ) ) ,
borderRadius: BorderRadius . only ( topLeft: Radius . circular ( radius ) , topRight: Radius . circular ( radius ) ) ,
) ;
}
ShapeBorder cardRadiusBottom ( double radius ) {
return RoundedRectangleBorder (
borderRadius: BorderRadius . only (
bottomLeft: Radius . circular ( radius ) ,
bottomRight: Radius . circular ( radius ) ) ,
borderRadius: BorderRadius . only ( bottomLeft: Radius . circular ( radius ) , bottomRight: Radius . circular ( radius ) ) ,
) ;
}
@ -620,8 +587,7 @@ FontStyle getFontStyle(String fontStyle) {
bool timeCalculator ( int startHour , int startMint , int endHour , int endMint ) {
DateTime now = DateTime . now ( ) ;
DateTime startDate =
DateTime ( now . year , now . month , now . day , startHour , startHour ) ;
DateTime startDate = DateTime ( now . year , now . month , now . day , startHour , startHour ) ;
DateTime endDate = DateTime ( now . year , now . month , now . day , endHour , endMint ) ;
if ( startDate . isBefore ( now ) & & endDate . isAfter ( now ) )
return true ;