aboutsummaryrefslogtreecommitdiffstats
path: root/lib/presentation/screens/media/media_nav_notifier.dart
blob: 6f93850767ccc0302379fdbdbea70f9b9e8780cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import 'package:flutter_ics_homescreen/export.dart';

enum MediaNavState { media, fm, am, xm }

class MediaNavStateNotifier extends Notifier<MediaNavState> {
  @override
  MediaNavState build() {
    return MediaNavState.media;
  }

  set(MediaNavState value) {
    state = value;
  }
}

final mediaNavStateProvider =
    NotifierProvider<MediaNavStateNotifier, MediaNavState>(
        MediaNavStateNotifier.new);