Using Flutter Provider means no StatefulWidgets?

Posted by Andre Scott | Updated on

Using Flutter Provider means no StatefulWidgets?

provider doesn’t care whether you write stateless/stateful or anything else (hooks?).

It removes the need to write a StatefulWidget in many situations, but it doesn’t claim that you should use StatelessWidget only.

In the end, it’s your job to decide if you need a StatefulWidget or not. You may need it when writing animations for example.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers