Skip to content
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.

Add key for reusing in stateful widgets. #149

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nikhilkul
Copy link

@nikhilkul nikhilkul commented Mar 13, 2021

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());
      ],
    );
  }

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

example build method of stateful widget:

```
@OverRide
  Widget build(BuildContext context) {
    return Column(
      children: <Widget>[
          AudioApp(key: UniqueKey());
      ],
    );
  }
```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant