1-fake location
2-bottom navigation
3-bottom sheet
4-lazy map loading
This commit is contained in:
2025-04-12 18:07:36 +03:30
parent 39578bcff3
commit 503dcd91b8
52 changed files with 5435 additions and 121 deletions

View File

@@ -0,0 +1,24 @@
import 'package:flutter/material.dart';
extension ColorUtils on Color {
Color _darken([double amount = 0.1]) {
assert(amount >= 0 && amount <= 1, 'مقدار تیرگی باید بین 0 و 1 باشد');
final hslColor = HSLColor.fromColor(this);
final newLightness = (hslColor.lightness - amount).clamp(0.0, 1.0);
final hslDarkerColor = hslColor.withLightness(newLightness);
return hslDarkerColor.toColor();
}
get disabledColor{
return withAlpha(38);
}
get hoverColor{
return _darken(0.5);
}
get pressedColor{
return _darken(0.10);
}
}

View File

@@ -0,0 +1 @@
import 'color_utils.dart';