79568089

Date: 2025-04-11 05:57:34
Score: 1.5
Natty:
Report link

Step 1: Store a bool value using shared preferences like isDark or isLight.

Step 2: fetch the bool value from shared preferences on click of the button

Step 3: Change the theme as per the received boolean value.

Step 4: Define the light and dark theme data in MaterialApp widget.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Tushar Khatri