im so tired man

This commit is contained in:
Wowieee4
2026-05-28 11:27:06 +07:00
parent 66da2473e1
commit 6272ece15d
86 changed files with 1759 additions and 4090 deletions
@@ -144,6 +144,7 @@ class _WalkGuideScreenState extends State<WalkGuideScreen>
() async {
final cameras = await availableCameras();
if (cameras.isEmpty) return;
await sl<YoloDetector>().init();
final backCamera = cameras.firstWhere(
(camera) => camera.lensDirection == CameraLensDirection.back,
orElse: () => cameras.first,
@@ -808,6 +809,7 @@ class _Page extends StatelessWidget {
@override
Widget build(BuildContext context) {
final compact = MediaQuery.sizeOf(context).height < 520;
return SafeArea(
child: DecoratedBox(
decoration: const BoxDecoration(
@@ -818,15 +820,20 @@ class _Page extends StatelessWidget {
),
),
child: Padding(
padding: const EdgeInsets.fromLTRB(16, 14, 16, 16),
padding: EdgeInsets.fromLTRB(
compact ? 12 : 16,
compact ? 8 : 14,
compact ? 12 : 16,
compact ? 10 : 16,
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
children: [
Container(
width: 46,
height: 46,
width: compact ? 38 : 46,
height: compact ? 38 : 46,
decoration: BoxDecoration(
color: const Color(0xFF2563EB),
borderRadius: BorderRadius.circular(14),
@@ -839,21 +846,24 @@ class _Page extends StatelessWidget {
),
],
),
child: const Icon(Icons.navigation_rounded,
color: Colors.white, size: 26),
child: Icon(Icons.navigation_rounded,
color: Colors.white, size: compact ? 22 : 26),
),
const SizedBox(width: 12),
SizedBox(width: compact ? 10 : 12),
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(title,
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: Theme.of(context)
.textTheme
.headlineSmall
?.copyWith(
fontWeight: FontWeight.w900,
color: const Color(0xFF0F172A),
fontSize: compact ? 22 : null,
)),
if (subtitle != null)
Text(subtitle!,
@@ -866,7 +876,7 @@ class _Page extends StatelessWidget {
...?actions,
],
),
const SizedBox(height: 16),
SizedBox(height: compact ? 8 : 16),
Expanded(child: child),
],
),