23 lines
650 B
Dart
23 lines
650 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
|
|
abstract class WalletCardConfig {
|
|
static const double elevation = 4.0;
|
|
static const double borderRadius = 16.0;
|
|
static const double viewportFraction = 0.96;
|
|
|
|
static const EdgeInsets cardPadding = EdgeInsets.symmetric(horizontal: 6);
|
|
static const EdgeInsets contentPadding = EdgeInsets.symmetric(
|
|
horizontal: 28,
|
|
vertical: 16,
|
|
);
|
|
|
|
static const double dotSize = 8.0;
|
|
static const EdgeInsets dotMargin = EdgeInsets.symmetric(horizontal: 4);
|
|
|
|
static double cardHeightForWidth(double width) {
|
|
final adaptiveHeight = width * 0.18;
|
|
return adaptiveHeight.clamp(150.0, 230.0);
|
|
}
|
|
}
|