Câu hỏi phỏng vấn Flutter
Câu hỏi

Do you know what Ephemeral state means?

Câu trả lời

Yes, ephemeral state refers to the state that is specific to a single widget and does not need to be shared with other parts of the app. It is also known as UI state or local state[1][2][3].

Ephemeral state is used when no other component in the widget tree needs to access a widget's data. Examples include whether a TabBarView tab is selected or when tracking the current progress of a complex animation[3].

For managing ephemeral state, you can use a StatefulWidget and the setState() method to alter the state[1][2]. There is no need to use state management techniques like ScopedModel, Redux, Provid...

middle

middle

Gợi ý câu hỏi phỏng vấn

senior

What is a MediaQuery in Flutter and when do we use it?

middle

Name some cons of using Flutter?

junior

What is the difference between main() and runApp() functions in Flutter?

Bình luận

Chưa có bình luận nào

Chưa có bình luận nào