1
0
mirror of https://github.com/stonega/tsacdop synced 2025-01-19 02:12:12 +01:00
tsacdop-podcast-app-android/lib/class/audiostate.dart
stonegate b868307c0d modified: README.md
modified:   lib/class/audiostate.dart
	modified:   lib/episodes/episodedetail.dart
	modified:   lib/home/appbar/addpodcast.dart
	modified:   lib/home/audio_player.dart
	modified:   lib/home/home.dart
	modified:   pubspec.lock
	modified:   pubspec.yaml
2020-02-14 14:27:40 +08:00

37 lines
787 B
Dart

import 'package:flutter/foundation.dart';
enum AudioState {load, play, pause, complete, error}
class Urlchange with ChangeNotifier {
String _audiourl;
String get audiourl => _audiourl;
set audioUrl(String playing) {
_audiourl = playing;
notifyListeners();
}
String _title;
String get title => _title;
set rssTitle(String title){
_title = title;
}
String _feedTitle;
String get feedtitle => _feedTitle;
set feedTitle(String feed){
_feedTitle = feed;
}
String _primaryColor;
String get primarycolor => _primaryColor;
set primaryColor(String c){
_primaryColor = c;
}
AudioState _audioState;
AudioState get audioState => _audioState;
set audioState(AudioState state){
_audioState = state;
notifyListeners();
}
}