Search packages, repositories and app categories

day_night_themed_switcher cover
Package detailsv2.0.2

day_night_themed_switcher

Elevate your app's charm with a sleek day/night switcher widget in pure Dart – because toggling between light and dark modes should be as effortless as a flicker of magic!

AndroidiOSWebmacOSWindowsLinux
30-day downloads
185
Likes
9
Pub points
160

Install package

flutter pub add day_night_themed_switcher

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A sleek, pure Dart widget for effortlessly toggling between day and night themes in Flutter apps. It enhances user experience by enabling smooth light/dark mode switching with minimal setup. Designed for developers seeking a clean, customizable solution to support dynamic theming across all major platforms. The switcher integrates seamlessly into existing UIs and promotes accessibility through intuitive visual feedback.

Use cases

  • Implementing dark mode in mobile apps
  • Enabling user preference for light/dark themes
  • Creating accessible UIs with theme awareness
  • Supporting cross-platform theming on web and desktop
  • Adding a toggle for app-wide theme changes

Key features

  • Pure Dart implementation
  • Cross-platform compatibility
  • Minimal boilerplate setup
  • Customizable appearance
  • Smooth theme transition effects
  • Easy integration with ThemeData

Suitable for

  • Flutter developers building apps with theme preferences
  • Apps targeting multiple platforms including web and desktop
  • Designers wanting a polished theme toggle
  • Projects emphasizing user experience and accessibility

Considerations

  • Requires manual handling of theme persistence
  • May need additional logic for system theme detection
  • Limited to basic day/night theme switching
  • Does not auto-sync with device system settings
  • Custom styling may require extra code

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Day and Night Themed Switcher

Demo

🎩✨ Behold, the marvel of simplicity meets elegance: the day_night_themed_switcher crafted purely in Dart! 🌗 With this widget, you can seamlessly toggle between the luminous radiance of daytime and the captivating allure of nighttime, right at your fingertips.

This nifty little creation not only adds functionality but also sprinkles a touch of charm to your app interface. Let your users revel in the joy of effortlessly transitioning between light and dark modes with just a tap.

So, why settle for mundane when you can dazzle your users with the magic of day and night? Add this widget to your arsenal and watch as your app shines bright like a diamond, day or night! ✨🌞🌙

Show some ❤️ and ⭐️ the Repo

Resources:

How to Use?

Utilizing this Plugin is as smooth as a gentle breeze. Tailor your experience effortlessly with customizable parameters such as duration, initiallyDark, and size, allowing you to craft the perfect appearance and behavior to suit your needs. 🛠️💫

DayNightSwitch(
  // duration: Duration(milliseconds: 800),
  // initiallyDark: true,
  size: 20,onChange: (dark) => setState(() {
    if (dark) {
      theme = ThemeMode.dark;
    } else {
      theme = ThemeMode.light;
    }
  }),
);

Contributions

Categories

Dependencies

Dependency list 2 items

Source repository

Projects using this package

No data available yet.