fix: use shared motorcycle photo in technical details

This commit is contained in:
bponders12-cell 2026-09-01 21:55:04 -04:00
parent 07771dbb96
commit 825f327549
1 changed files with 11 additions and 2 deletions

View File

@ -6,6 +6,7 @@ import '../../database/database.dart';
import '../../models/motorcycle_models.dart';
import '../../core/theme/evolution_theme_config.dart';
import 'widgets/evolution_motorcycle_detail_view.dart';
import 'widgets/motorcycle_photo.dart';
import 'garage_providers.dart';
class MotorcycleDetailScreen extends ConsumerWidget {
@ -110,10 +111,18 @@ class MotorcycleDetailScreen extends ConsumerWidget {
padding: const EdgeInsets.all(20.0),
child: Column(
children: [
MotorcyclePhoto(
year: bike.year,
make: bike.makeName,
model: bike.modelName,
height: 210,
borderRadius: BorderRadius.circular(12),
showAttribution: true,
fit: BoxFit.cover,
),
const SizedBox(height: 16),
Row(
children: [
const Icon(Icons.two_wheeler, size: 54, color: Colors.cyanAccent),
const SizedBox(width: 16),
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,