mirrored_repositories/Puebly/lib/features/home/presentation
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';

final showHomeScreenProvider = StateProvider<bool>((ref) => true);
final showSectionsScreenProvider = StateProvider<bool>((ref) => true);

final scrollControllerProvider =
    StateProvider<ScrollController>((ref) => ScrollController());

final showDialogProvider = StateProvider<bool>((ref) {
  if (!ref.watch(dialogActivated) &&
      !ref.watch(showHomeScreenProvider) &&
      !ref.watch(showSectionsScreenProvider)) {
    return true;
  }
  return false;
});
final dialogActivated = StateProvider<bool>((ref) => false);
