fixing a ton of sloppy mess...

This commit is contained in:
Wowieee4
2026-05-17 18:40:03 +07:00
parent f970f1bac8
commit d2608e0188
37 changed files with 3099 additions and 1795 deletions
@@ -151,8 +151,6 @@ class _StubLoginScreenState extends State<_StubLoginScreen> {
}
// Workaround untuk SizedBox(height(12)) yang error — gunakan helper
SizedBox _gap(double h) => SizedBox(height: h);
// ---------------------------------------------------------------------------
// Tests
// ---------------------------------------------------------------------------
@@ -397,4 +395,4 @@ void main() {
});
});
});
}
}
@@ -1,5 +1,6 @@
// test/widget/manual_screen_test.dart
//
// test/widget/manual_screen_test.dart
// ignore_for_file: prefer_const_constructors
//
// Widget tests untuk ManualScreen — halaman panduan perintah suara.
// Jalankan: flutter test test/widget/manual_screen_test.dart
@@ -1,5 +1,6 @@
// test/widget/notification_screen_test.dart
//
// test/widget/notification_screen_test.dart
// ignore_for_file: prefer_const_constructors
//
// Widget tests untuk NotificationScreen — menampilkan notifikasi dari Guardian.
// Jalankan: flutter test test/widget/notification_screen_test.dart
@@ -167,7 +167,7 @@ class _StubSosScreenState extends State<_StubSosScreen> {
shape: BoxShape.circle,
boxShadow: [
BoxShadow(
color: Colors.red.withOpacity(0.4),
color: Colors.red.withValues(alpha: 0.4),
blurRadius: 20,
spreadRadius: 4,
),
@@ -1,5 +1,6 @@
// test/widget/walk_guide_screen_test.dart
//
// test/widget/walk_guide_screen_test.dart
// ignore_for_file: prefer_const_constructors, prefer_const_literals_to_create_immutables
//
// Widget tests untuk WalkGuideScreen — layar utama navigasi tunanetra.
// Jalankan: flutter test test/widget/walk_guide_screen_test.dart
//
@@ -264,7 +265,7 @@ class _DetectionOverlay extends StatelessWidget {
margin: const EdgeInsets.symmetric(horizontal: 16),
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
decoration: BoxDecoration(
color: detection.isAlert ? Colors.red.withOpacity(0.85) : Colors.black87,
color: detection.isAlert ? Colors.red.withValues(alpha: 0.85) : Colors.black87,
borderRadius: BorderRadius.circular(8),
),
child: Text(
@@ -578,4 +579,4 @@ void main() {
});
});
});
}
}