import 'package:flutter/widgets.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:pharmacy_mobile/blocs/guest/guest_bloc.dart';
import 'package:pharmacy_mobile/blocs/guest/guest_event.dart';

Future<bool> blocSetGuestOn(BuildContext context) async {
  try {
    final guestBloc = context.read<GuestBloc>();
    guestBloc.add(GuestSetOn());
    return true;
  } catch (e) {
    return false;
  }
}
