Added components to article
This commit is contained in:
@ -52,7 +52,13 @@ class _CarSelectionPageState extends State<CarSelectionPage> {
|
||||
|
||||
void _onConfirm() {
|
||||
if (_selectedCar == null) return;
|
||||
context.read<CarSelectBloc>().add(CarSelectConfirm(car: _selectedCar!));
|
||||
final authState = context.read<AuthBloc>().state as Authenticated;
|
||||
context.read<CarSelectBloc>().add(
|
||||
CarSelectConfirm(
|
||||
userId: authState.user.number,
|
||||
car: _selectedCar!,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildCarList(List<Car> cars) {
|
||||
|
||||
Reference in New Issue
Block a user