forked from subhamayd2/day_night_time_picker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Subhamay Dutta
committed
Apr 3, 2020
1 parent
5540db1
commit 6e1db99
Showing
3 changed files
with
57 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,60 @@ | ||
# day_night_time_picker | ||
# DayNightTimePicker | ||
|
||
A new Flutter package project. | ||
A day night time picker for Flutter. | ||
|
||
## Getting Started | ||
<img src="https://raw.githubusercontent.com/subhamayd2/day_night_time_picker/master/example.gif" /> | ||
|
||
This project is a starting point for a Dart | ||
[package](https://flutter.dev/developing-packages/), | ||
a library module containing code that can be shared easily across | ||
multiple Flutter or Dart projects. | ||
## Installation | ||
|
||
For help getting started with Flutter, view our | ||
[online documentation](https://flutter.dev/docs), which offers tutorials, | ||
samples, guidance on mobile development, and a full API reference. | ||
Add to pubspec.yaml. | ||
|
||
```yaml | ||
dependencies: | ||
day_night_time_picker: | ||
``` | ||
## Usage | ||
To use plugin, just import package | ||
```dart | ||
import 'package:day_night_time_picker/day_night_time_picker.dart'; | ||
``` | ||
|
||
## Example | ||
|
||
```dart | ||
FlatButton( | ||
onPressed: () { | ||
Navigator.of(context).push( | ||
showPicker( | ||
context: context, | ||
value: _time, | ||
onChange: onTimeChanged, | ||
), | ||
); | ||
}, | ||
child: Text( | ||
"Open time picker", | ||
style: TextStyle(color: Colors.white), | ||
), | ||
), | ||
``` | ||
|
||
## 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. | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.