mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-16 11:48:42 +02:00
refactor(theme): update card and dialog themes to use CardThemeData and DialogThemeData
refactor(ui_components): adjust animation durations for smoother transitions fix(dashboard): rename border property to hasBorder for clarity fix(player): rename border property to hasBorder for consistency
This commit is contained in:
1 parent
5b16029038
commit
863e5ddad4
6 files changed
+11
-11
No files matched your search
@@ -279,7 +279,7 @@ class AppTheme {
|
||||
borderRadius: BorderRadius.circular(radiusMd),
|
||||
),
|
||||
padding:
|
||||
const EdgeInsets.symmetric(horizontal: spacing20, vertical: spacing10),
|
||||
const EdgeInsets.symmetric(horizontal: spacing20, vertical: spacing12),
|
||||
textStyle: GoogleFonts.inter(
|
||||
fontWeight: FontWeight.w600,
|
||||
fontSize: 14,
|
||||
@@ -301,7 +301,7 @@ class AppTheme {
|
||||
),
|
||||
|
||||
// ============ CARDS ============
|
||||
cardTheme: CardTheme(
|
||||
cardTheme: CardThemeData(
|
||||
color: AppColors.surface,
|
||||
elevation: 0,
|
||||
margin: EdgeInsets.zero,
|
||||
@@ -312,7 +312,7 @@ class AppTheme {
|
||||
),
|
||||
|
||||
// ============ DIALOGS & BOTTOM SHEETS ============
|
||||
dialogTheme: DialogTheme(
|
||||
dialogTheme: DialogThemeData(
|
||||
backgroundColor: AppColors.surface,
|
||||
elevation: elevationXl,
|
||||
shape: RoundedRectangleBorder(
|
||||
|
||||
@@ -79,7 +79,7 @@ class _GradientButtonState extends State<GradientButton>
|
||||
void initState() {
|
||||
super.initState();
|
||||
_controller = AnimationController(
|
||||
duration: AppTheme.durationFast,
|
||||
duration: AppTheme.durationSm,
|
||||
vsync: this,
|
||||
);
|
||||
_scaleAnimation = Tween<double>(begin: 1.0, end: 0.95).animate(
|
||||
@@ -356,10 +356,10 @@ class _MediaCardState extends State<MediaCard>
|
||||
Expanded(
|
||||
child: AnimatedScale(
|
||||
scale: _isHovered ? 1.05 : 1.0,
|
||||
duration: AppTheme.durationFast,
|
||||
duration: AppTheme.durationSm,
|
||||
curve: AppTheme.curveDefault,
|
||||
child: AnimatedContainer(
|
||||
duration: AppTheme.durationFast,
|
||||
duration: AppTheme.durationSm,
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(AppTheme.radiusMd),
|
||||
color: AppColors.surface,
|
||||
|
||||
Reference in new issue
Block a user