POLISHING STUFF and Smarter AI, and alot i mean.. ALOT OF BUG FIX AND OPTIMIZE
This commit is contained in:
@@ -1,15 +1,28 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class AppColors {
|
||||
static const primary = Color(0xFF2563EB);
|
||||
static const primaryDark = Color(0xFF0F3EA8);
|
||||
static const accent = Color(0xFF0891B2);
|
||||
static const primaryBlue = Color(0xFF4A90D9);
|
||||
static const softBlueBg = Color(0xFFEBF4FF);
|
||||
static const softPinkBg = Color(0xFFFFF0F5);
|
||||
static const softYellowBg = Color(0xFFFFFBEB);
|
||||
static const cardWhite = Color(0xFFFFFFFF);
|
||||
static const textDark = Color(0xFF2D3748);
|
||||
static const textMuted = Color(0xFFA0AEC0);
|
||||
static const gold = Color(0xFFF6C90E);
|
||||
static const gradientBlueStart = Color(0xFF6BB8FF);
|
||||
static const gradientBlueEnd = Color(0xFF4A90D9);
|
||||
static const gradientPinkStart = Color(0xFFFFB3C6);
|
||||
static const gradientPinkEnd = Color(0xFFFF6B9D);
|
||||
|
||||
static const primary = primaryBlue;
|
||||
static const primaryDark = Color(0xFF256FB8);
|
||||
static const accent = Color(0xFFFF6B9D);
|
||||
static const warning = Color(0xFFD97706);
|
||||
static const danger = Color(0xFFDC2626);
|
||||
static const success = Color(0xFF059669);
|
||||
static const surface = Color(0xFFF7FAFC);
|
||||
static const surfaceRaised = Color(0xFFFFFFFF);
|
||||
static const text = Color(0xFF0F172A);
|
||||
static const muted = Color(0xFF64748B);
|
||||
static const surface = softBlueBg;
|
||||
static const surfaceRaised = cardWhite;
|
||||
static const text = textDark;
|
||||
static const muted = textMuted;
|
||||
static const border = Color(0xFFE2E8F0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'app_colors.dart';
|
||||
|
||||
class AppDecorations {
|
||||
static const cardRadius = BorderRadius.all(Radius.circular(20));
|
||||
static const pillRadius = BorderRadius.all(Radius.circular(50));
|
||||
static const inputRadius = BorderRadius.all(Radius.circular(14));
|
||||
static const iconCircleSize = 44.0;
|
||||
|
||||
static const cardShadow = [
|
||||
BoxShadow(
|
||||
color: Color(0x14000000),
|
||||
blurRadius: 20,
|
||||
offset: Offset(0, 4),
|
||||
),
|
||||
];
|
||||
|
||||
static const avatarShadow = [
|
||||
BoxShadow(
|
||||
color: Color(0x18000000),
|
||||
blurRadius: 18,
|
||||
offset: Offset(0, 6),
|
||||
),
|
||||
];
|
||||
|
||||
static const blueGradient = LinearGradient(
|
||||
colors: [AppColors.gradientBlueStart, AppColors.gradientBlueEnd],
|
||||
begin: Alignment.topLeft,
|
||||
end: Alignment.bottomRight,
|
||||
);
|
||||
|
||||
static const pinkGradient = LinearGradient(
|
||||
colors: [AppColors.gradientPinkStart, AppColors.gradientPinkEnd],
|
||||
begin: Alignment.topLeft,
|
||||
end: Alignment.bottomRight,
|
||||
);
|
||||
|
||||
static const cardShape = RoundedRectangleBorder(
|
||||
borderRadius: cardRadius,
|
||||
);
|
||||
|
||||
static BoxDecoration get card => const BoxDecoration(
|
||||
color: AppColors.cardWhite,
|
||||
borderRadius: cardRadius,
|
||||
boxShadow: cardShadow,
|
||||
);
|
||||
|
||||
static BoxDecoration pillGradient({
|
||||
Gradient gradient = blueGradient,
|
||||
}) =>
|
||||
BoxDecoration(
|
||||
gradient: gradient,
|
||||
borderRadius: pillRadius,
|
||||
);
|
||||
|
||||
static BoxDecoration iconCircle({
|
||||
Color color = AppColors.softBlueBg,
|
||||
}) =>
|
||||
BoxDecoration(
|
||||
color: color,
|
||||
borderRadius: pillRadius,
|
||||
);
|
||||
|
||||
static BoxDecoration avatar({
|
||||
Color borderColor = Colors.white,
|
||||
}) =>
|
||||
BoxDecoration(
|
||||
shape: BoxShape.circle,
|
||||
color: AppColors.cardWhite,
|
||||
border: Border.all(color: borderColor, width: 3),
|
||||
boxShadow: avatarShadow,
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
|
||||
import 'app_colors.dart';
|
||||
|
||||
class AppTextStyles {
|
||||
static TextStyle get heading => GoogleFonts.poppins(
|
||||
fontSize: 24,
|
||||
fontWeight: FontWeight.w700,
|
||||
color: AppColors.textDark,
|
||||
letterSpacing: 0,
|
||||
height: 1.2,
|
||||
);
|
||||
|
||||
static TextStyle get subheading => GoogleFonts.poppins(
|
||||
fontSize: 18,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: AppColors.textDark,
|
||||
letterSpacing: 0,
|
||||
height: 1.25,
|
||||
);
|
||||
|
||||
static TextStyle get body => GoogleFonts.poppins(
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: AppColors.textDark,
|
||||
letterSpacing: 0,
|
||||
height: 1.45,
|
||||
);
|
||||
|
||||
static TextStyle get caption => GoogleFonts.poppins(
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: AppColors.textMuted,
|
||||
letterSpacing: 0,
|
||||
height: 1.35,
|
||||
);
|
||||
|
||||
static TextTheme get textTheme => GoogleFonts.poppinsTextTheme().copyWith(
|
||||
headlineSmall: heading,
|
||||
titleMedium: subheading,
|
||||
bodyMedium: body,
|
||||
bodySmall: caption,
|
||||
labelLarge: body.copyWith(fontWeight: FontWeight.w700),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user