FLUTTER ECOSYSTEM

yashas-hm/day-night-themed-switcher

🎩✨ 使用純 Dart 實現一個簡潔的日夜切換小部件,為您的應用增添魅力——因為切換明暗模式應如魔法一閃般輕鬆!✨🌗

日夜主題切換器 專案封面
Stars
3
Forks
1
最近推送(UTC)
2026年8月14日
專案狀態
未封存
Yashas H Majmudar GitHub avatar
GITHUB User

Yashas H Majmudar ↗

📱 Full Stack Developer and Flutter sorcerer, weaving magic into mobile apps and web solutions. Developer by day and a Musician by night. 🎶

SWE @ NestUSA官方網站 ↗
語言Dart

技術主題

此儲存庫發佈的套件

使用的依賴

依賴清單 5 項

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

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