Flutter的昼夜切换小部件

网友投稿 696 2022-11-04

Flutter的昼夜切换小部件

Flutter的昼夜切换小部件

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

TwitterMediumLinkedIn

LICENCE

Copyright 2019 Divyanshu BhargavaLicensed 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://apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed 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 andlimitations under the License.

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Ailurus- 小熊猫Ubuntu增强工具
下一篇:一个微小的现代CSS reset
相关文章

 发表评论

暂时没有评论,来抢沙发吧~