python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
How can I prevent the widget rebuilding when opening the keyboard
i have main StatefulWidget which contains several StatefulWidget classes by it's TabBarView
like following
class MyNainClass extends StatefulWidget {
const MyNainClass({Key? key}) : super(key: k...
Mohammed Hamdan
Votes: 0
Answers: 1
Stateful widget consumer widget builds twice and hence calls initState twice. How to stop this from happening?
So for my project, I am using Riverpod, and I am creating the home page of my app.
The tree looks like this ->
CommunityView(Stateful Widget)
WillPopScope
ProviderScope
Consumer
Scaffold
...and so ...

codenameakshay
Votes: 0
Answers: 0
Using Riverpod for Flutter state, what's better: ConsumerWidget or just a Consumer where needed?
I'm fairly new to Riverpod but it seems that using a ConsumerWidget as the body of a screen is a bad practice because the screen is rebuilt when not needed.
For example:
the main widget (the screen i...

stcojo
Votes: 0
Answers: 0
tree rebuilds when keyboard shows
I'm using responsive_sizer package for my app..
my whole tree is rebuilt when the keyboard opens with a textfield.
Here the code of the textfield :
class ProfileNameTextField extends StatefulWidget {...

Athlas
Votes: 0
Answers: 1