Files
immich/mobile-v2/lib/utils/constants/size_constants.dart
shenlong-tanwen 8450c8cc4f feat: appbar
2025-02-26 08:58:19 +05:30

36 lines
723 B
Dart

import 'package:flutter/material.dart';
@immutable
abstract final class SizeConstants {
const SizeConstants._();
static const s = 8.0;
static const xs = 11.0;
static const xxs = 14.0;
static const m = 16.0;
static const xm = 20.0;
static const xxm = 25.0;
static const l = 32.0;
static const xl = 48.0;
static const xxl = 64.0;
}
abstract final class RatioConstants {
const RatioConstants._();
// 0.75
static const threeFourth = 3 / 4;
// 0.6
static const twoThird = 2 / 3;
// 0.5
static const half = 1 / 2;
// 0.3
static const oneThird = 1 / 3;
// 0.25
static const quarter = 1 / 4;
// 0.15
static const halfQuarter = 3 / 20;
// 0.10
static const oneTenth = 1 / 10;
}