mirrored_repositories/flutter-ui-designs/lib/widgets
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

class ScreenStateProvider extends ChangeNotifier {
  static ScreenStateProvider state(BuildContext context, [listen = false]) =>
      Provider.of<ScreenStateProvider>(context, listen: listen);

  bool _isSettingsOpen = false;
  bool get isSettingsOpen => this._isSettingsOpen;
  setSettingsOpen(bool flag) {
    if (flag == this._isSettingsOpen) {
      return;
    }
    this._isSettingsOpen = flag;
    notifyListeners();
  }
}
