rxlabz / audioplayer

A flutter plugin to play audio files iOS / Android / MacOS / Web ( Swift/Java )
https://pub.dartlang.org/packages/audioplayer
494 stars 189 forks source link

Add key for reusing in stateful widgets. #149

Open nikhilkul opened 3 years ago

nikhilkul commented 3 years ago

Makes it possible to use this stateful widget as AudioApp(key: UniqueKey()); inside other Stateful widgets

example build method of stateful widget:

@override
  Widget build(BuildContext context) {
    return Column(
      children: <Widget>[
          AudioApp(key: UniqueKey());
      ],
    );
  }