import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; import 'package:url_launcher/url_launcher.dart'; import '../../core/app_colors.dart'; import '../components/custom_app_bar.dart'; import '../components/link_row.dart'; class DocumentsScreen extends StatelessWidget { const DocumentsScreen({super.key}); @override Widget build(BuildContext context) { return Scaffold( body: Container( decoration: const BoxDecoration(gradient: AppColors.phoneScreenBg), child: SafeArea( child: Padding( padding: const EdgeInsets.symmetric(horizontal: 20), child: Column( children: [ const SizedBox(height: 16), CustomAppBar(title: 'Документы'), const SizedBox(height: 32), LinkRow( icon: 'assets/icons/doc.png', title: 'Договор аренды', onTap: () => context.push('/home/documents/lease-agreement'), ), const Divider(height: 1, color: Colors.white24), const SizedBox(height: 12), LinkRow( icon: 'assets/icons/doc.png', title: 'Политика конфиденциальности', onTap: () => context.push('/privacy-policy'), ), const Divider(height: 1, color: Colors.white24), const SizedBox(height: 12), LinkRow( icon: 'assets/icons/doc.png', title: 'Правила вождения', onTap: () => openLink('https://behappybel.by/#rule'), ), const Divider(height: 1, color: Colors.white24), const SizedBox(height: 12), LinkRow( icon: 'assets/icons/doc.png', title: 'Правила оплаты картой', onTap: () => context.push('/home/documents/payment-rules'), ), const Divider(height: 1, color: Colors.white24), const SizedBox(height: 12), LinkRow( icon: 'assets/icons/doc.png', title: 'Реквизиты', onTap: () => context.push('/home/documents/company-details'), ), const Divider(height: 1, color: Colors.white24), const SizedBox(height: 12), const Spacer(), // Отодвигаем картинку вниз const SizedBox(height: 20), ], ), ), ), ), ); } }