Add pricing entry flow and platform admin foundations

This commit is contained in:
egecankomur
2026-06-20 18:24:40 +03:00
parent 1d36ccdf30
commit ac42681f7e
44 changed files with 6567 additions and 1419 deletions
@@ -0,0 +1,79 @@
import 'package:flutter/material.dart';
import '../../core/theme/app_theme.dart';
class LocationCompletionBanner extends StatelessWidget {
const LocationCompletionBanner({
super.key,
required this.title,
required this.description,
required this.buttonLabel,
required this.onTap,
this.compact = false,
});
final String title;
final String description;
final String buttonLabel;
final VoidCallback onTap;
final bool compact;
@override
Widget build(BuildContext context) {
return Container(
width: double.infinity,
padding: EdgeInsets.all(compact ? 14 : 16),
decoration: BoxDecoration(
color: const Color(0xFFFFF7ED),
borderRadius: BorderRadius.circular(16),
border: Border.all(color: const Color(0xFFFDBA74)),
),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
width: compact ? 36 : 40,
height: compact ? 36 : 40,
decoration: BoxDecoration(
color: const Color(0xFFFFEDD5),
borderRadius: BorderRadius.circular(12),
),
child: const Icon(
Icons.location_off_rounded,
color: Color(0xFFEA580C),
),
),
const SizedBox(width: 12),
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
title,
style: const TextStyle(
fontWeight: FontWeight.w700,
color: AppColors.textPrimary,
),
),
const SizedBox(height: 4),
Text(
description,
style: const TextStyle(
fontSize: 13,
color: AppColors.textSecondary,
),
),
const SizedBox(height: 10),
OutlinedButton.icon(
onPressed: onTap,
icon: const Icon(Icons.edit_location_alt_outlined, size: 18),
label: Text(buttonLabel),
),
],
),
),
],
),
);
}
}