Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

🐛 Expander.initiallyExpanded not working #251

Closed
mgenware opened this issue Mar 27, 2022 · 0 comments · Fixed by #252
Closed

🐛 Expander.initiallyExpanded not working #251

mgenware opened this issue Mar 27, 2022 · 0 comments · Fixed by #252
Labels
bug Something isn't working

Comments

@mgenware
Copy link

mgenware commented Mar 27, 2022

Describe the bug
Expander.initiallyExpanded does not seem to work. Expander is still collapsed when initiallyExpanded is set to true.

To Reproduce
Steps to reproduce the behavior:

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    // This method is rerun every time setState is called, for instance as done
    // by the _incrementCounter method above.
    //
    // The Flutter framework has been optimized to make rerunning build methods
    // fast, so that you can just rebuild anything that needs updating rather
    // than having to individually change instances of widgets.
    return ScaffoldPage(
      content: Expander(
          header: Text('Expander'),
          initiallyExpanded: true,
          content: Container(
            height: 100,
            color: Colors.black,
          )),
    );
  }
}

Expected behavior
Expander is expanded when rendered.

Screenshots
image

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants