import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_modular/flutter_modular.dart';
import '../blocs/rapid_order_bloc.dart';
import '../widgets/rapid_order/rapid_order_view.dart';

/// Rapid Order Flow Page - Emergency staffing requests.
/// Features voice recognition simulation and quick example selection.
///
/// This page initializes the [RapidOrderBloc] and displays the [RapidOrderView].
/// It follows the Krow Clean Architecture by being a [StatelessWidget] and
/// delegating its state and UI to other components.
class RapidOrderPage extends StatelessWidget {
  /// Creates a [RapidOrderPage].
  const RapidOrderPage({super.key});

  @override
  Widget build(BuildContext context) {
    return BlocProvider<RapidOrderBloc>(
      create: (BuildContext context) => Modular.get<RapidOrderBloc>(),
      child: const RapidOrderView(),
    );
  }
}
