All Projects → subhamayd2 → day_night_time_picker

subhamayd2 / day_night_time_picker

Licence: Apache-2.0 License
A day night time picker for Flutter. Beautiful day and night animation with Sun and Moon assets.

Programming Languages

dart
5743 projects
HTML
75241 projects

Projects that are alternatives of or similar to day night time picker

Movie-ticket-App-UI
The movie ticket app contains three-screen.
Stars: ✭ 18 (-64.71%)
Mutual labels:  flutterui
coronavirus
No description or website provided.
Stars: ✭ 32 (-37.25%)
Mutual labels:  flutterui
smart-home-neomorphism-app
Smart Home app ui design in a neomorphism style.
Stars: ✭ 82 (+60.78%)
Mutual labels:  flutterui
Bank-profile
a flutter Ui profile for bank account
Stars: ✭ 33 (-35.29%)
Mutual labels:  flutterui
awesome pet ui
Awesome Pet: Trying to code UI of awesome pet app for practice.
Stars: ✭ 15 (-70.59%)
Mutual labels:  flutterui
task management
Task Management / TODO App
Stars: ✭ 60 (+17.65%)
Mutual labels:  flutterui
restnote
Singe DB based open note taking app
Stars: ✭ 26 (-49.02%)
Mutual labels:  flutterui
Drink-Order-App-UI
Drink order app UI using flutter - eCommerce App for Drinks
Stars: ✭ 19 (-62.75%)
Mutual labels:  flutterui
flutter-watch-shop-ui
Flutter Quick UI  -  Watch Shop
Stars: ✭ 48 (-5.88%)
Mutual labels:  flutterui
papernews
A paper-style news application
Stars: ✭ 19 (-62.75%)
Mutual labels:  flutterui
covid-19
An app made with Flutter to track COVID-19 case counts.
Stars: ✭ 47 (-7.84%)
Mutual labels:  flutterui
Yoga-Training-App-UI
Yoga training app ui with flutter
Stars: ✭ 32 (-37.25%)
Mutual labels:  flutterui
HealthoUI
This project ui example for flutter.
Stars: ✭ 55 (+7.84%)
Mutual labels:  flutterui
Flutter-UI-Challenge---Week-1
Flutter UI Challenge - Week 1
Stars: ✭ 18 (-64.71%)
Mutual labels:  flutterui

DayNightTimePicker

All Contributors

A day night time picker for Flutter with Zero Dependencies.

Default style:



IOS style:



View it on pub.dev


Installation

Add to pubspec.yaml.

dependencies:
  day_night_time_picker:

Usage

To use plugin, just import package

import 'package:day_night_time_picker/day_night_time_picker.dart';

Example

FlatButton(
    onPressed: () {
        Navigator.of(context).push(
            showPicker(
                context: context,
                value: _time,
                onChange: onTimeChanged,
            ),
        );
    },
    child: Text(
        "Open time picker",
        style: TextStyle(color: Colors.white),
    ),
),

Props

Name Description Default
value Required Display value. It takes in [TimeOfDay].
onChange Required Return the new time the user picked as [TimeOfDay].
onChangeDateTime Optional Return the new time the user picked as [DateTime].
is24HrFormat Show the time in TimePicker in 24 hour format. false
accentColor Accent color of the TimePicker. Theme.of(context).accentColor
unselectedColor Color applied unselected options (am/pm, hour/minute). Colors.grey
cancelText Text displayed for the Cancel button. cancel
okText Text displayed for the Ok button. ok
sunAsset Image asset used for the Sun. Asset provided
moonAsset Image asset used for the Moon. Asset provided
blurredBackground Whether to blur the background of the [Modal]. false
barrierColor Color of the background of the [Modal]. Colors.black45
borderRadius Border radius of the [Container] in [double]. 10.0
elevation Elevation of the [Modal] in [double]. 12.0
dialogInsetPadding Inset padding of the [Modal] in EdgeInsets. EdgeInsets.symmetric(horizontal: 40.0, vertical: 24.0)
barrierDismissible Whether clicking outside should dismiss the [Modal]. true
iosStylePicker Whether to display a IOS style picker (Not exactly the same). false
hourLabel The label to be displayed for hour picker. Only for iosStylePicker. 'hours'
minuteLabel The label to be displayed for minute picker. Only for iosStylePicker. 'minutes'
minuteInterval Steps interval while changing minute. Accepts MinuteInterval enum. MinuteInterval.ONE
disableMinute Disables the minute picker. false
disableHour Disables the hour picker. false
minHour Selectable minimum hour. Defaults to 1[12hr] or 0[24hr]
maxHour Selectable maximum hour. Defaults to 12[12hr] or 23[24hr]
minMinute Selectable minimum minute. 0
maxMinute Selectable maximum minute. 59
displayHeader Whether to display the sun moon animation. true
isOnValueChangeMode Weather to hide okText, cancelText and return value on every onValueChange. Only for Inline widget false
focusMinutePicker Whether or not the minute picker is auto focus/selected. false
themeData ThemeData to use for the widget. Theme.of(context)
okStyle Ok button's text style. const TextStyle(fontWeight: FontWeight.bold)
cancelStyle Cancel button's text style. const TextStyle(fontWeight: FontWeight.bold)

Notes

To render an inline widget, use the method: createInlinePicker(). It accepts the same props.


Contributors

Thanks goes to these wonderful people:


Subhamay Dutta

💻 📖

Andrew Zuo

💻

Mohammad Odeh

💻

Hashem Alayan

💻

gohdong

💻

nohli

💻

sander102907

💻

Sobhan Moradi

🎨

Omar Dahhane

💻

Fatih Yaman

🎨

JerryShen

💻

本多健也

💻

Tempelritter

💻

Silfalion

💻

This project follows the all-contributors specification. Contributions of any kind welcome!


LICENCE

Copyright 2020 Subhamay Dutta

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].