DEV Community

Ajay
Ajay

Posted on

Conditional widgets in Flutter (Shred_Preferences)

How to apply conditions in widgets flutter I am trying to: if user is logged in the system display profile Widget otherwise display login widget. How is it possible? Does anybody have any idea? I used shred_preferences packages for set, get and remove data in android local storage. Codes

profile_screen

Top comments (0)