Initial commit
This commit is contained in:
19
app_code/lib/configs/app_config.dart
Normal file
19
app_code/lib/configs/app_config.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
|
||||
class AppConfig{
|
||||
static String appName ="KarvonMarket.uz";//Rename it with your app name
|
||||
|
||||
static const bool https = true;//Make it true if your domain support https otherwise make it false
|
||||
|
||||
|
||||
// static const domain = "192.168.31.237/enmart-laravel"; //If you want to connect with local host provide your ip address instead localhost.
|
||||
// static const domain = "domain.com"; //If you want to connect with your server replace it with your domain name
|
||||
// static const domain = "grostore.themetags.com"; //If you want to connect with your server replace it with your domain name
|
||||
static const domain = "karvonmarket.uz"; //If you want to connect with your server replace it with your domain name
|
||||
|
||||
//Don't try change below values
|
||||
static const String apiEndPath = "api";
|
||||
static const String protocol = https ? "https://" : "http://";
|
||||
static const String baseUrl = protocol+ domain;
|
||||
static const String apiUrl = "$baseUrl/$apiEndPath";
|
||||
}
|
||||
118
app_code/lib/configs/style_config.dart
Normal file
118
app_code/lib/configs/style_config.dart
Normal file
@@ -0,0 +1,118 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:grostore/configs/theme_config.dart';
|
||||
|
||||
class StyleConfig {
|
||||
static double get padding => 18.0;
|
||||
static double get padding14 => 14.0;
|
||||
|
||||
static double get xsSectionSpacer => 10.0;//Extra Small section separator
|
||||
static double get smSectionSpacer => 14.0;//Small section separator
|
||||
static double get mSectionSpacer => 24.0;//Medium section separator
|
||||
|
||||
|
||||
static RoundedRectangleBorder buttonRadius(radius) => RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(radius.toDouble()));
|
||||
|
||||
static TextStyle fs30fwEBold() {
|
||||
return TextStyle(
|
||||
fontSize: 30,
|
||||
color: ThemeConfig.fontColor,
|
||||
fontWeight: FontWeight.w800);
|
||||
}
|
||||
|
||||
static TextStyle get fs8 => TextStyle(
|
||||
fontSize: 8, color: ThemeConfig.fontColor, fontWeight: FontWeight.normal);
|
||||
|
||||
static TextStyle get fs10 => TextStyle(
|
||||
fontSize: 10,
|
||||
color: ThemeConfig.fontColor,
|
||||
fontWeight: FontWeight.normal);
|
||||
static TextStyle get fs10Black => TextStyle(
|
||||
fontSize: 9,
|
||||
color: ThemeConfig.fontColor,
|
||||
fontWeight: FontWeight.normal);
|
||||
|
||||
static TextStyle get fs11 => TextStyle(
|
||||
fontSize: 11,
|
||||
color: ThemeConfig.fontColor,
|
||||
fontWeight: FontWeight.normal);
|
||||
|
||||
static TextStyle get fs12 => TextStyle(
|
||||
fontSize: 12,
|
||||
color: ThemeConfig.fontColor,
|
||||
fontWeight: FontWeight.normal);
|
||||
|
||||
static TextStyle get fs12Red => TextStyle(
|
||||
fontSize: 12,
|
||||
color: ThemeConfig.red,
|
||||
fontWeight: FontWeight.normal);
|
||||
|
||||
static TextStyle get fs12cWhitefwBold => TextStyle(
|
||||
fontSize: 12, color: ThemeConfig.white, fontWeight: FontWeight.bold);
|
||||
|
||||
static TextStyle get fs12cWhite => TextStyle(
|
||||
fontSize: 12, color: ThemeConfig.white, fontWeight: FontWeight.normal);
|
||||
|
||||
static TextStyle get fs12cGrey => TextStyle(
|
||||
fontSize: 12, color: ThemeConfig.grey, fontWeight: FontWeight.normal);
|
||||
|
||||
static TextStyle get fs12cLightfwEBold => TextStyle(
|
||||
fontSize: 12,
|
||||
color: ThemeConfig.lightFontColor,
|
||||
fontWeight: FontWeight.bold);
|
||||
|
||||
static TextStyle get fs12cLightfwNormal => TextStyle(
|
||||
fontSize: 12,
|
||||
color: ThemeConfig.lightFontColor,
|
||||
fontWeight: FontWeight.normal);
|
||||
|
||||
static TextStyle get fs14fwNormal => TextStyle(
|
||||
fontSize: 14,
|
||||
color: ThemeConfig.fontColor,
|
||||
fontWeight: FontWeight.normal);
|
||||
|
||||
static TextStyle get fs14fwBold => TextStyle(
|
||||
fontSize: 14, color: ThemeConfig.fontColor, fontWeight: FontWeight.bold);
|
||||
static TextStyle get fs14cSecondryfwNormal => TextStyle(
|
||||
fontSize: 14, color: ThemeConfig.secondaryColor, fontWeight: FontWeight.bold);
|
||||
static TextStyle get fs14cSecondryfwBold => TextStyle(
|
||||
fontSize: 14, color: ThemeConfig.secondaryColor, fontWeight: FontWeight.bold);
|
||||
|
||||
static TextStyle get fs14cRedfwBold => TextStyle(
|
||||
fontSize: 14, color: ThemeConfig.red, fontWeight: FontWeight.bold);
|
||||
static TextStyle get fs14cRedfwNormal => TextStyle(
|
||||
fontSize: 14, color: ThemeConfig.red, fontWeight: FontWeight.normal);
|
||||
|
||||
static TextStyle get fs14cWhitefwNormal => TextStyle(
|
||||
fontSize: 14, color: ThemeConfig.white, fontWeight: FontWeight.normal);
|
||||
static TextStyle get fs14cWhitefwBold => TextStyle(
|
||||
fontSize: 14, color: ThemeConfig.white, fontWeight: FontWeight.bold);
|
||||
|
||||
static TextStyle get fs16 => TextStyle(
|
||||
fontSize: 16, color: ThemeConfig.fontColor, fontWeight: FontWeight.normal);
|
||||
|
||||
static TextStyle get fs16fwBold => TextStyle(
|
||||
fontSize: 16, color: ThemeConfig.fontColor, fontWeight: FontWeight.bold);
|
||||
|
||||
static TextStyle get fs16cWhitefwBold => TextStyle(
|
||||
fontSize: 16, color: ThemeConfig.white, fontWeight: FontWeight.bold);
|
||||
|
||||
static TextStyle get fs16cRedfwBold => TextStyle(
|
||||
fontSize: 16, color: ThemeConfig.red, fontWeight: FontWeight.bold);
|
||||
|
||||
static TextStyle get fs18BlackfwBold => TextStyle(
|
||||
fontSize: 18, color: ThemeConfig.fontColor, fontWeight: FontWeight.bold);
|
||||
|
||||
static TextStyle get fs20fwBold => TextStyle(
|
||||
fontSize: 20, color: ThemeConfig.fontColor, fontWeight: FontWeight.bold);
|
||||
|
||||
static TextStyle get fs20cWhitefwBold => const TextStyle(
|
||||
fontSize: 20, color: ThemeConfig.white, fontWeight: FontWeight.bold);
|
||||
|
||||
static TextStyle get fs22fwEBold => TextStyle(
|
||||
fontSize: 22, color: ThemeConfig.fontColor, fontWeight: FontWeight.bold);
|
||||
|
||||
static TextStyle get fs24fwBold => TextStyle(
|
||||
fontSize: 24, color: ThemeConfig.fontColor, fontWeight: FontWeight.bold);
|
||||
}
|
||||
55
app_code/lib/configs/theme_config.dart
Normal file
55
app_code/lib/configs/theme_config.dart
Normal file
@@ -0,0 +1,55 @@
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class ThemeConfig{
|
||||
static Color accentColor=const Color.fromRGBO(78, 181, 41,1);// main theme color
|
||||
static Color accentDarkColor=const Color.fromRGBO(18, 104, 13,1);// deep theme color
|
||||
static Color splashBackground =const Color.fromRGBO(237, 248, 234, 1);
|
||||
static Color fontColor=const Color.fromRGBO(33, 43, 54, 1);
|
||||
static Color lightFontColor=const Color.fromRGBO(67, 78, 88, 1);
|
||||
|
||||
//Optional Color
|
||||
static Color secondaryColor=const Color.fromRGBO(255, 124, 8,1);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//DO NOT TRY TO CHANGE THIS COLOR'S
|
||||
static const Color white = Color.fromRGBO(255,255,255, 1);
|
||||
static Color noColor = Color.fromRGBO(255,255,255, 0);
|
||||
static Color xxlightGrey = Color.fromRGBO(243, 245, 247, 1.0);
|
||||
static Color xlightGrey = Color.fromRGBO(239,239,239, 1);
|
||||
static Color lightGrey = Color.fromRGBO(209,209,209, 1);
|
||||
static Color mediumGrey = Color.fromRGBO(167,175,179, 1);
|
||||
static Color blueGrey = Color.fromRGBO(168,175,179, 1);
|
||||
static Color grey = Color.fromRGBO(153,153,153, 1);
|
||||
static Color darkGrey = Color.fromRGBO(107,115,119, 1);
|
||||
static Color extraDarkGrey = Color.fromRGBO(62,68,71, 1);
|
||||
static Color amberLight = Color.fromRGBO(254, 234, 209, 1);
|
||||
static Color amberMedium = Color.fromRGBO(254, 240, 215, 1);
|
||||
static Color amber = Color.fromRGBO(228, 0, 43, 1.0);
|
||||
static Color amberShadow = Color.fromRGBO(255, 168, 0, .4);
|
||||
static Color red = Color.fromRGBO(236, 9, 44, 1);
|
||||
static Color green = Colors.green;
|
||||
static Color blue = Colors.blue;
|
||||
static Color shimmer_base = Colors.grey.shade50;
|
||||
static Color shimmer_highlighted = Colors.grey.shade200;
|
||||
|
||||
|
||||
|
||||
|
||||
static MaterialColor accentMaterialColor= MaterialColor(ThemeConfig.accentColor.value,{
|
||||
50 : ThemeConfig.accentColor.withOpacity(0.05),
|
||||
100 : ThemeConfig.accentColor.withOpacity(0.1),
|
||||
200 : ThemeConfig.accentColor.withOpacity(0.2),
|
||||
300 : ThemeConfig.accentColor.withOpacity(0.3),
|
||||
400 : ThemeConfig.accentColor.withOpacity(0.4),
|
||||
500 : ThemeConfig.accentColor.withOpacity(0.5),
|
||||
600 : ThemeConfig.accentColor.withOpacity(0.6),
|
||||
700 : ThemeConfig.accentColor.withOpacity(0.7),
|
||||
800 : ThemeConfig.accentColor.withOpacity(0.8),
|
||||
900 : ThemeConfig.accentColor.withOpacity(0.9),
|
||||
});
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user