{"repo":"BirjuVachhani/adaptive_theme","free":true,"listed":false,"github":"https://github.com/BirjuVachhani/adaptive_theme","clone":"git clone https://github.com/BirjuVachhani/adaptive_theme.git","description":"Easiest way to add support for light and dark theme in your flutter app.","language":"Dart","stars":682,"topics":["flutter","theme","adaptive","flutter-ui","flutter-package","flutter-widget","hactoberfest","hactoberfest-accepted","hacktoberfest","hacktoberfest2023"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"Adaptive Theme The easiest way to add support for light and dark themes in your Flutter app. It allows you to manually set a light or dark theme and also lets you define themes based on the system. It also persists the theme mode changes across app restarts. Demo: Adaptive Theme Index - Getting Started - Initialization - Changing Theme Mode - Toggle Theme Mode - Changing Themes - Reset Theme - Set Default Theme - Handling App Start - Handling Theme Changes - Using a floating theme button overlay - Caveats - Non-Persistent theme changes - Using SharedPreferences - Using CupertinoTheme - Changing Cupertino Theme - Contribution - License Getting Started Add the following dependency to your pubspec.yaml Initialization You need to wrap your MaterialApp with AdaptiveTheme in order to apply themes. Changing Theme Mode Now that you have initialized your app as mentioned above. It's very easy and straightforward to change your theme modes: light to dark, dark to light, or to system default. Toggle Theme Mode AdaptiveTheme allows you to toggle between light, dark, and system themes the easiest way possible. Changing Themes If you want to change the theme entirely, e.g., change all the colors to some other color swatch, then you can use setTheme method. Reset Theme AdaptiveTheme is smart enough to keep your default themes handy that you provided at the time of initialization. You can fall back to those default themes in a very easy way. This will reset your theme as well as theme mode t","default_branch":null,"files":null,"tree":[],"storefront":"/r/BirjuVachhani","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/BirjuVachhani/adaptive_theme/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}