Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Update Stateful widget generator #20

Open
rafaeljustinox opened this issue Oct 14, 2024 · 1 comment
Open

Update Stateful widget generator #20

rafaeljustinox opened this issue Oct 14, 2024 · 1 comment

Comments

@rafaeljustinox
Copy link

rafaeljustinox commented Oct 14, 2024

Update Stateful widget generator

Instead of:

class Example extends StatefulWidget {
  const Example({ Key? key }) : super(key: key);

  @override
  _ExampleState createState() => _ExampleState();
}

class _ExampleState extends State<Example> {
  @override
  Widget build(BuildContext context) {
     return Container(
			
      );
    }
}

Do this:

class Example extends StatefulWidget {
  const Example({super.key});

  @override
  State<Example> createState() => _ExampleState();
}

class _ExampleState extends State<Example> {
  @override
  Widget build(BuildContext context) {
    return Container();
  }
}
@rafaeljustinox
Copy link
Author

cc: @Alexisvt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant