1
0
mirror of https://github.com/stonega/tsacdop synced 2025-01-24 04:32:28 +01:00
tsacdop-podcast-app-android/lib/class/audiostate.dart
stonegate 69dfc393ba modified: lib/class/audiostate.dart
modified:   lib/class/episodebrief.dart
	modified:   lib/class/importompl.dart
	modified:   lib/class/podcast_group.dart
	modified:   lib/class/podcastlocal.dart
	modified:   lib/episodes/episodedetail.dart
	modified:   lib/episodes/episodedownload.dart
	modified:   lib/home/appbar/addpodcast.dart
	modified:   lib/home/appbar/popupmenu.dart
	modified:   lib/home/audio_player.dart
	modified:   lib/home/homescroll.dart
	modified:   lib/local_storage/sqflite_localpodcast.dart
	modified:   lib/main.dart
	modified:   lib/podcasts/podcastdetail.dart
	modified:   lib/podcasts/podcastgroup.dart
	modified:   lib/podcasts/podcastlist.dart
	modified:   lib/util/episodegrid.dart
2020-02-20 23:44:42 +08:00

21 lines
507 B
Dart

import 'package:flutter/foundation.dart';
import 'package:tsacdop/class/episodebrief.dart';
enum AudioState {load, play, pause, complete, error}
class AudioPlay with ChangeNotifier {
EpisodeBrief _episode;
EpisodeBrief get episode => _episode;
set episodeLoad(EpisodeBrief episdoe){
_episode = episdoe;
notifyListeners();
}
AudioState _audioState;
AudioState get audioState => _audioState;
set audioState(AudioState state){
_audioState = state;
notifyListeners();
}
}