GitHub 儲存庫divyanshub024/day_night_switch

day_night_switch

用於 Flutter 的日夜切換小工具。

day_night_switch 專案封面
星標
106
分支
13
最近推送(UTC)
2026年2月5日
專案狀態
未封存

原始 README

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

DayNightSwitch

A day night switch widget for Flutter.

Installation

Add to pubspec.yaml.

dependencies:
  day_night_switch:

Usage

To use plugin, just import package import 'package:day_night_switch/day_night_switch.dart';

Example

DayNightSwitch(
  value: val,
  moonImage: AssetImage('assets/moon.png'),
  sunImage: AssetImage('assets/sun.png'),
  sunColor: sunColor,
  moonColor: moonColor,
  dayColor: dayColor,
  nightColor: nightColor,
  onChanged: (value) {
    setState(() {
    val = value;
    });
  },
)

Connect

LICENCE

Copyright 2019 Divyanshu Bhargava

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Divyanshu Bhargava GitHub avatar
GitHub 作者

Divyanshu Bhargava ↗

#Flutter | #NodeJS | #TypeScript | GoogleDevExpert for Flutter & Dart | Organizer FlutterUAE

@StacDevAbu Dhabi, UAE官方網站 ↗
語言DartC++CMakeHTMLCSwiftKotlinObjective-C

分類

此儲存庫發佈的套件

使用的依賴

依賴清單 3 項

  • flutter{"sdk":"flutter"}
  • flutter_test開發依賴{"sdk":"flutter"}
  • lints開發依賴^2.0.0

如何選擇適合專案的儲存庫?

先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。

  1. 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
  2. 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
  3. 使用前在 GitHub 確認 README、授權條款與 Issues。

來源與維護

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗