fix
This commit is contained in:
@@ -12,7 +12,8 @@ import '../state/scooter_detail_state.dart';
|
||||
import '../viewmodel/scooter_detail_bloc.dart';
|
||||
|
||||
class ScooterDetailScreen extends StatelessWidget {
|
||||
const ScooterDetailScreen({super.key});
|
||||
final String address;
|
||||
const ScooterDetailScreen({super.key, required this.address});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -83,7 +84,7 @@ class ScooterDetailScreen extends StatelessWidget {
|
||||
child: Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
const Expanded(child: ScooterInfoSection()),
|
||||
Expanded(child: ScooterInfoSection(distance: scooter?.distance ?? 0, location: address)),
|
||||
const SizedBox(width: 20),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user