mirrored_repositories/WordPlay/lib
import 'package:news/theme/app_theme.dart';
import 'package:flutter/material.dart';

class Constant {
  static const double profileTileTopPadding = 50;
  static const double accountCirccleImageRadius1 = 27;
  static const double profileNameTitleSize = 16;
  static const double viewMyProfileTitleHeight = 1.8;
  static const double profileNameSubTitleSize = 11;
  static const double settingTitleTopPadding = 50;
  static const double settingTileTitleBottomPadding = 16;
  static const double settingTitleSize = 16;
  static const double settingTileDividerHeight = 2.2;
  static const double settingTileDividerColorOpacity = 0.014;
  static const double settingTileTitleTopPadding = 16;
  static const double settingTileSize = 15;

  static double splashIconRadius = 15;
  static const double midiumn = 14;
  static const double splashText = 18;
  static const double splashTextPadding = 15;
  static const double splashAllPadding = 40;
  static const double customTextfieldCorner = 15;
  static const double customfieldHintSize = 12;
  static const double customOpacity = 0.5;
  static const int statusCode200 = 200;
  static const double vectorHeight = 20;
  static const double vectorWidth = 20;
  static const double appbarTitleSize = 22;
  static const double customUnderlineHeight = 1;
  static const double dropDownTextSize = 13.5;
  static const double drawerWidth = 0.6;

  static const double drawerPannelPadding = 12;
  static const double drawerIconPadding = 8;
  static const double appNameTextSize = 15;
  static const double appNamePadding = 15;
  static const double categoryPanelHight = 0.08;
  static const double categoryPanelPadding = 14;
  static const double categoryBoxPadding = 10;

  static const double categoryPanelPlateTopPadding = 1;
  static const double categoryPanelPlateBottomPadding = 1;
  static const double categoryPanelPlateLeftPadding = 12;
  static const double categoryPanelPlateRightPadding = 12;
  static const double categoryTextSize = 12;

  static const double applogoWidgeLogoBoxRadius = 15;
  static const double applogoWidgetTitlePadding = 8;
  static const double applogoWidgetAppnameHeight = 1.5;
  static const double applogoWidgetAppnameSize = 18;
  static const CODE_NO_INTERNET_CONNECTION = 10000;
  static const CODE_NO_TRY_CATCH = 500;

  static const double customfieldContentLeftPadding = 40;
  static const double customfieldContentRightPadding = 0;
  static const double customfieldContentBottomPadding = 0;
  static const double customfieldContentTopPadding = 40;

  static const double size12 = 12;
  static const double zero = 0;
  static const double SIZE10 = 10;
  static const double SIZE15 = 15;
  static const double SIZE20 = 20;
  static const double SIZE25 = 25;
  static const double SIZE30 = 30;
  static const double SIZE45 = 45;
  static const double SIZE60 = 60;
  static const double SIZE70 = 70;
  static const double SIZE80 = 80;
  static const double SIZE50 = 50;
  static const double SIZE100 = 100;
  static const int INT_ZERO = 0;
  static const int INT_ONE = 1;
  static const int INT_TWO = 2;
  static const int INT_THREE = 3;
  static const int INT_FIVE = 5;
  static const int INT_SIX = 6;
  static const int INT_TEN = 10;
  static const int INT_FOUR = 4;
  static const double ONE = 1;
  static const double TWO = 2;
  static const double THREE = 3;
  static const double FIVE = 5;
  static const double FOUR = 4;
  static const bool isTrue = true;
  static const bool isFalse = false;
  static const double customButtonHeight = 0.072;
  static const double splashAppLogoHeight = 3;

  // Rate page

  static const double rateBodyLeftPadding = 20;
  static const double rateBodyRightPadding = 20;
  static const double rateBodyTopPadding = 50;

  // Home Page
  static const double skelatonContainerMargin = 5;
  static const double skelatonContainerPadding = 10;
  static const double skelatonContainerRadius = 15;
  static const double skelatonContainerImageBoxRadius = 15;
  static const double skelatonContainerImageHeight = 0.17;
  static const double skelatonContainerImageWidth = 0.3;
  static const double skelatonTitleContainerWidth = 0.4;
  static const double skelatonTitleshimmerHight = 10;
  static const double skelatonTitleshimmerWidth = 100;
  static const double skelatonTitle2shimmerWidth = 0.5;
  static const double skelatonTitleSpace = 8;
  static const double skelatonTitleBoxWidth = 0.8;
  static const double skelatonImageHight = 0.19;
  static const double skelatonLeftPadding = 2;
  static const double skelatonTopPadding = 8;
  static const double drawerLeftPadding = 25;

  static const double publishedTextSize = 10;
  static const double newsTileImage = 0.19;

  static const double rownewsTileAuthorTextWidth = 0.4;
  static const double authorTextBOttomPedding = 10;
  static const double rownewsTileTitleTextWidth = 0.5;
  static const int subString30 = 30;
  static const double readMoreSizedBoxxWidth = 0.25;
  static const double rawNewsImageWidth = 0.34;
  static const double rawNewsImageHight = 0.15;

  static const double newsTileTitleLeftPadding = 8;
  static const double newsTileTitleTopPadding = 5;
  static const double newsTileTitleSizedBoxWidth = 0.8;
  static const double newsTilePublishedAtSize = 10;

  static const double newsSourceUrlTopPadding = 10;
  static const double newsSourceUrlLeftPadding = 10;
  static const double newsSourceUrlRightPadding = 25;


  static const double skelatonTitleshimmerSpace = 20;

  static const double profileTileMargin = 5;

  static const double profileTileImageBoxMargin = 5;

  static const double profileTileProductNameHeight = 1.2;
  static const double profileTileProductCategoryTopPadding = 10;
  static const double homeBodyPadding = 10;
  static const double menuIconHeight = 27;
  static const double tamplateWordChooseYourBestHeight = 1.2;

  static const double headlineDetailsAppBarPadding = 15;
  static const double headlineDetailsAppBarTitleFontSize = 15;
  static const double headlineDetailsAppBarTitleLeftPadding = 15;
  static const double headileImageHeight = 0.3;
  static const double headileTitleLeftPadding = 10;
  static const double headileTitleRightPadding = 10;
  static const double headileTitleSize = 20;
  static const double headileTitleHeight = 1.2;
  static const double headlineContentTopPadding = 10;
  static const double headlineContentLeftPadding = 10;
  static const double headlineContentRightPadding = 10;
  static const double headlineContentBottomPadding = 10;
  static const double headlineContentSize = 15;
  static const double headlineContentHeight = 1.3;
  static const double headlineAuthorCircleLeftPadding = 12;
  static const double authorAvtarRadius = 15;
  static const double authorNameBottomPadding = 2;
  static const double authorNameWordSpacing = 2;
  static const double authorNameSize = 13;
  static const double headlineDescriptionTopPadding = 10;
  static const double headlineDescriptionLeftPadding = 10;
  static const double headlineDescriptionRightPadding = 10;
  static const double headlineDescriptionBottomPadding = 10;
  static const double headlineDescriptionSize = 15;
  static const double headlineDescriptionHeight = 1.2;
  static const double newsSourceTextLeftPadding = 10;
  static const double newsSourceTextTopPadding = 10;

  static const double failedSnackbarMargin = 20;

  static const double sourceUrlHeight = 1.5;
  static const double sourceUrlSize = 10;
  static const double hedlinePublishedTextSize = 15;
  static const double hedlinePublishedTextTopPadding = 20;
  static const double hedlinePublishedTextRightPadding = 15;
  static const double hedlinePublishedTextBottomPadding = 50;

  static const double headlineAuthorTitleBottomSheetBottomPadding = 2;
  static const double headlineAuthorTitleBottomSheetWordSpacing = 2;
  static const double headlineAuthorTitleBottomSheetSize = 13;
  static const double headlineAuthorBottomSheetPadding = 15;
  static const double headlineAuthorBottomSheetRadius = 21;
  static const double authorRoleTextLeftPadding = 3;
  static const double authorRoleTextTopPadding = 3;
  static const double authorRoleTextSize = 13;
  static const double authorRoleTextWordSpacing = 2;
  static const double authorBioLeftPadding = 15;
  static const double authorBioRightPadding = 15;
  static const double authorBioBottomPadding = 15;
  static const double authorBioBottomHeight = 1.5;
  static const double authorBioBottomSize = 12;

  static BoxShadow boxShadow(
      {required Color color, double blurradius = 15, double opacity = 0.2}) {
    return BoxShadow(
        spreadRadius: 0,
        blurRadius: blurradius,
        offset: const Offset(0, 0.02),
        color: color.withOpacity(opacity));
  }

  static BoxDecoration bottomBoxDecoration = BoxDecoration(
    borderRadius: BorderRadius.circular(20),
    gradient: const LinearGradient(
      begin: Alignment.centerRight,
      end: Alignment.centerLeft,
      stops: [-0.0304, 0.9061],
      colors: [
        Color(0xFF414141),
        Color(0xFF232023),
      ],
      transform: GradientRotation(166.98 * 3.14159 / 180.0),
    ),
  );
  static BoxDecoration boxDecoration = BoxDecoration(
      color: Colors.black,
      borderRadius: BorderRadius.circular(20),
      boxShadow: [Constant.boxShadow(color: AppTheme.greyColor)]);
}
