feat : refresh login

test: core
This commit is contained in:
2025-06-02 09:38:02 +03:30
parent b86a2d986e
commit 7dbb66465c
24 changed files with 538 additions and 62 deletions

View File

@@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
extension ColorUtils on Color {
Color _darken([double amount = 0.1]) {
assert(amount >= 0 && amount <= 1, 'مقدار تیرگی باید بین 0 و 1 باشد');
assert(amount >= 0 && amount <= 1, 'Amount must be between 0 and 1');
final hslColor = HSLColor.fromColor(this);
final newLightness = (hslColor.lightness - amount).clamp(0.0, 1.0);
final hslDarkerColor = hslColor.withLightness(newLightness);