Version auf 0.9.11 gesetzt
This commit is contained in:
parent
248cd22d2e
commit
e6409bb900
|
|
@ -59,6 +59,7 @@ class _EggTimerScreenState extends State<EggTimerScreen> {
|
|||
void initState() {
|
||||
super.initState();
|
||||
_audioPlayer = AudioPlayer();
|
||||
_configureAudioContext();
|
||||
_initLocationAndAltitude();
|
||||
_loadAppVersion();
|
||||
}
|
||||
|
|
@ -180,6 +181,24 @@ class _EggTimerScreenState extends State<EggTimerScreen> {
|
|||
}
|
||||
}
|
||||
|
||||
Future<void> _configureAudioContext() async {
|
||||
await AudioPlayer.global.setAudioContext(
|
||||
AudioContext(
|
||||
android: const AudioContextAndroid(
|
||||
isSpeakerphoneOn: true,
|
||||
stayAwake: false,
|
||||
contentType: AndroidContentType.sonification,
|
||||
usageType: AndroidUsageType.alarm,
|
||||
audioFocus: AndroidAudioFocus.gainTransient,
|
||||
),
|
||||
iOS: AudioContextIOS(
|
||||
category: AVAudioSessionCategory.playback,
|
||||
options: {AVAudioSessionOptions.defaultToSpeaker},
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
String _formatDuration(Duration d) {
|
||||
final m = d.inMinutes.remainder(60).toString().padLeft(2, '0');
|
||||
final s = d.inSeconds.remainder(60).toString().padLeft(2, '0');
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||
# In Windows, build-name is used as the major, minor, and patch parts
|
||||
# of the product and file versions while build-number is used as the build suffix.
|
||||
version: 0.9.10
|
||||
version: 0.9.11
|
||||
|
||||
environment:
|
||||
sdk: ^3.10.1
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in New Issue