fix marker rendering & modernize riding widgets for dark mode - 2026-04-11
This commit is contained in:
@@ -18,10 +18,10 @@ class SplashScreen extends StatelessWidget {
|
||||
|
||||
// ألوان الـ colorize — سيان كهربائي → أبيض → ذهبي عنبري
|
||||
const colorizeColors = [
|
||||
Color(0xFF00D4FF),
|
||||
Color(0xFF1DA1F2),
|
||||
Colors.white,
|
||||
Color(0xFFFFB700),
|
||||
Color(0xFF00D4FF),
|
||||
Color(0xFF1DA1F2),
|
||||
];
|
||||
|
||||
return SafeArea(
|
||||
@@ -44,7 +44,7 @@ class SplashScreen extends StatelessWidget {
|
||||
decoration: BoxDecoration(
|
||||
shape: BoxShape.circle,
|
||||
gradient: RadialGradient(colors: [
|
||||
const Color(0xFF00D4FF).withOpacity(0.11),
|
||||
const Color(0xFF1DA1F2).withOpacity(0.11),
|
||||
Colors.transparent,
|
||||
]),
|
||||
),
|
||||
@@ -92,7 +92,7 @@ class SplashScreen extends StatelessWidget {
|
||||
child: CustomPaint(
|
||||
painter: _OrbitalRingPainter(
|
||||
radius: 100,
|
||||
dotColor: const Color(0xFF00D4FF),
|
||||
dotColor: const Color(0xFF1DA1F2),
|
||||
lineOpacity: 0.22,
|
||||
dotSize: 5.5,
|
||||
),
|
||||
@@ -128,10 +128,10 @@ class SplashScreen extends StatelessWidget {
|
||||
height: 8,
|
||||
decoration: BoxDecoration(
|
||||
shape: BoxShape.circle,
|
||||
color: const Color(0xFF00D4FF),
|
||||
color: const Color(0xFF1DA1F2),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: const Color(0xFF00D4FF)
|
||||
color: const Color(0xFF1DA1F2)
|
||||
.withOpacity(0.25 +
|
||||
controller.glowAnimation.value *
|
||||
0.35),
|
||||
@@ -151,7 +151,7 @@ class SplashScreen extends StatelessWidget {
|
||||
shape: BoxShape.circle,
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: const Color(0xFF00D4FF)
|
||||
color: const Color(0xFF1DA1F2)
|
||||
.withOpacity(0.08 +
|
||||
controller.glowAnimation.value *
|
||||
0.10),
|
||||
@@ -202,11 +202,11 @@ class SplashScreen extends StatelessWidget {
|
||||
decoration: BoxDecoration(
|
||||
border: Border.all(
|
||||
color:
|
||||
const Color(0xFF00D4FF).withOpacity(0.35),
|
||||
const Color(0xFF1DA1F2).withOpacity(0.35),
|
||||
width: 1,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(20),
|
||||
color: const Color(0xFF00D4FF).withOpacity(0.06),
|
||||
color: const Color(0xFF1DA1F2).withOpacity(0.06),
|
||||
),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
@@ -219,13 +219,13 @@ class SplashScreen extends StatelessWidget {
|
||||
height: 6,
|
||||
decoration: BoxDecoration(
|
||||
shape: BoxShape.circle,
|
||||
color: const Color(0xFF00D4FF)
|
||||
color: const Color(0xFF1DA1F2)
|
||||
.withOpacity(0.5 +
|
||||
controller.glowAnimation.value *
|
||||
0.5),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: const Color(0xFF00D4FF)
|
||||
color: const Color(0xFF1DA1F2)
|
||||
.withOpacity(controller
|
||||
.glowAnimation.value *
|
||||
0.6),
|
||||
@@ -242,7 +242,7 @@ class SplashScreen extends StatelessWidget {
|
||||
style: TextStyle(
|
||||
fontSize: 11,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: const Color(0xFF00D4FF)
|
||||
color: const Color(0xFF1DA1F2)
|
||||
.withOpacity(0.85),
|
||||
letterSpacing: 1.4,
|
||||
),
|
||||
@@ -346,12 +346,12 @@ class _GlowProgressBar extends StatelessWidget {
|
||||
decoration: BoxDecoration(
|
||||
gradient: const LinearGradient(colors: [
|
||||
Color(0xFF0052FF),
|
||||
Color(0xFF00D4FF),
|
||||
Color(0xFF1DA1F2),
|
||||
]),
|
||||
borderRadius: BorderRadius.circular(2),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: const Color(0xFF00D4FF).withOpacity(0.55),
|
||||
color: const Color(0xFF1DA1F2).withOpacity(0.55),
|
||||
blurRadius: 8,
|
||||
spreadRadius: 1,
|
||||
),
|
||||
@@ -369,7 +369,7 @@ class _GridPainter extends CustomPainter {
|
||||
@override
|
||||
void paint(Canvas canvas, Size size) {
|
||||
final linePaint = Paint()
|
||||
..color = const Color(0xFF00D4FF).withOpacity(0.04)
|
||||
..color = const Color(0xFF1DA1F2).withOpacity(0.04)
|
||||
..strokeWidth = 0.5;
|
||||
|
||||
const spacing = 36.0;
|
||||
@@ -383,7 +383,7 @@ class _GridPainter extends CustomPainter {
|
||||
|
||||
// نقاط التقاطع
|
||||
final dotPaint = Paint()
|
||||
..color = const Color(0xFF00D4FF).withOpacity(0.07)
|
||||
..color = const Color(0xFF1DA1F2).withOpacity(0.07)
|
||||
..style = PaintingStyle.fill;
|
||||
|
||||
for (double y = 0; y < size.height; y += spacing) {
|
||||
@@ -407,7 +407,7 @@ class _OrbitalRingPainter extends CustomPainter {
|
||||
|
||||
const _OrbitalRingPainter({
|
||||
this.radius = 95,
|
||||
this.dotColor = const Color(0xFF00D4FF),
|
||||
this.dotColor = const Color(0xFF1DA1F2),
|
||||
this.lineOpacity = 0.25,
|
||||
this.dotSize = 5.5,
|
||||
this.dashCount = 0,
|
||||
@@ -420,7 +420,7 @@ class _OrbitalRingPainter extends CustomPainter {
|
||||
if (dashCount > 0) {
|
||||
// حلقة متقطعة (dashed)
|
||||
final dashPaint = Paint()
|
||||
..color = const Color(0xFF00D4FF).withOpacity(lineOpacity)
|
||||
..color = const Color(0xFF1DA1F2).withOpacity(lineOpacity)
|
||||
..strokeWidth = 1
|
||||
..style = PaintingStyle.stroke
|
||||
..strokeCap = StrokeCap.round;
|
||||
@@ -442,7 +442,7 @@ class _OrbitalRingPainter extends CustomPainter {
|
||||
} else {
|
||||
// حلقة متصلة
|
||||
final ringPaint = Paint()
|
||||
..color = const Color(0xFF00D4FF).withOpacity(lineOpacity)
|
||||
..color = const Color(0xFF1DA1F2).withOpacity(lineOpacity)
|
||||
..strokeWidth = 1
|
||||
..style = PaintingStyle.stroke;
|
||||
canvas.drawCircle(center, radius, ringPaint);
|
||||
|
||||
Reference in New Issue
Block a user