fix: use shared motorcycle photo in technical details
This commit is contained in:
parent
07771dbb96
commit
825f327549
|
|
@ -6,6 +6,7 @@ import '../../database/database.dart';
|
||||||
import '../../models/motorcycle_models.dart';
|
import '../../models/motorcycle_models.dart';
|
||||||
import '../../core/theme/evolution_theme_config.dart';
|
import '../../core/theme/evolution_theme_config.dart';
|
||||||
import 'widgets/evolution_motorcycle_detail_view.dart';
|
import 'widgets/evolution_motorcycle_detail_view.dart';
|
||||||
|
import 'widgets/motorcycle_photo.dart';
|
||||||
import 'garage_providers.dart';
|
import 'garage_providers.dart';
|
||||||
|
|
||||||
class MotorcycleDetailScreen extends ConsumerWidget {
|
class MotorcycleDetailScreen extends ConsumerWidget {
|
||||||
|
|
@ -110,10 +111,18 @@ class MotorcycleDetailScreen extends ConsumerWidget {
|
||||||
padding: const EdgeInsets.all(20.0),
|
padding: const EdgeInsets.all(20.0),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
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(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
const Icon(Icons.two_wheeler, size: 54, color: Colors.cyanAccent),
|
|
||||||
const SizedBox(width: 16),
|
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue