From 816687b2c13f50c12445fa298288908985caa01a Mon Sep 17 00:00:00 2001 From: shan-shaji Date: Sat, 15 Aug 2020 19:05:57 +0530 Subject: [PATCH] =?UTF-8?q?Fixed=20Link=20Issues=20in=20=F0=9F=93=8BReadme?= =?UTF-8?q?.md=20and=20moved=20example=20to=20single=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 8 +++- README.md | 2 +- example/lib/homePage.dart | 98 --------------------------------------- example/lib/main.dart | 98 ++++++++++++++++++++++++++++++++++++++- example/pubspec.lock | 2 +- pubspec.yaml | 2 +- 6 files changed, 106 insertions(+), 104 deletions(-) delete mode 100644 example/lib/homePage.dart diff --git a/CHANGELOG.md b/CHANGELOG.md index 0106d00..63ee371 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,14 @@ +## [1.0.1] - 2020-08-15 + +`Fixed Link Issues in [Readme.md] and added Example to Single file.` + ## [1.0.0] - 2020-08-15 -`Intitial Release` +`Intitial Release.` ## [0.2.0] - 2020-08-15 -`padding added` +`padding added.` ## [0.1.0] - 2020-08-15 diff --git a/README.md b/README.md index 4e1adff..515c5fb 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Add `day_picker` to your `pubspec.yaml` file. ```dependencies: flutter: sdk: flutter - day_picker: 1.0.0 + day_picker: 1.0.1 ``` import the package: diff --git a/example/lib/homePage.dart b/example/lib/homePage.dart deleted file mode 100644 index 7d24c36..0000000 --- a/example/lib/homePage.dart +++ /dev/null @@ -1,98 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:day_picker/day_picker.dart'; - -class HomePage extends StatelessWidget { - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar( - title: Text("Select days in week"), - ), - body: Column( - mainAxisAlignment: MainAxisAlignment.spaceEvenly, - children: [ - Padding( - padding: const EdgeInsets.all(8.0), - child: SelectWeekDays( - onSelect: (values) { - print(values); - }, - ), - ), - Padding( - padding: const EdgeInsets.all(8.0), - child: SelectWeekDays( - border: false, - boxDecoration: BoxDecoration( - borderRadius: BorderRadius.circular(30.0), - gradient: LinearGradient( - begin: Alignment.topLeft, - // 10% of the width, so there are ten blinds. - colors: [ - const Color(0xFFE55CE4), - const Color(0xFFBB75FB) - ], // whitish to gray - tileMode: - TileMode.repeated, // repeats the gradient over the canvas - ), - ), - onSelect: (values) { - print(values); - }, - ), - ), - Padding( - padding: const EdgeInsets.all(8.0), - child: SelectWeekDays( - boxDecoration: BoxDecoration( - borderRadius: BorderRadius.circular(30.0), - gradient: LinearGradient( - begin: Alignment.topLeft, - // 10% of the width, so there are ten blinds. - colors: [ - const Color(0xFFE55CE4), - const Color(0xFFBB75FB) - ], // whitish to gray - tileMode: - TileMode.repeated, // repeats the gradient over the canvas - ), - ), - onSelect: (values) { - print(values); - }, - ), - ), - SelectWeekDays( - backgroundColor: Color(0xFF303030), - onSelect: (values) { - print(values); - }, - ), - Padding( - padding: const EdgeInsets.all(8.0), - child: SelectWeekDays( - border: false, - backgroundColor: Color(0xFF303030), - onSelect: (values) { - print(values); - }, - ), - ), - Padding( - padding: const EdgeInsets.all(8.0), - child: SelectWeekDays( - border: false, - boxDecoration: BoxDecoration( - color: Colors.red, - borderRadius: BorderRadius.circular(30.0), - ), - onSelect: (values) { - print(values); - }, - ), - ), - ], - ), - ); - } -} diff --git a/example/lib/main.dart b/example/lib/main.dart index 61912d2..900e641 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:example/homePage.dart'; +import 'package:day_picker/day_picker.dart'; void main() { runApp(MyApp()); @@ -13,3 +13,99 @@ class MyApp extends StatelessWidget { ); } } + +class HomePage extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: Text("Select days in week"), + ), + body: Column( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + Padding( + padding: const EdgeInsets.all(8.0), + child: SelectWeekDays( + onSelect: (values) { + print(values); + }, + ), + ), + Padding( + padding: const EdgeInsets.all(8.0), + child: SelectWeekDays( + border: false, + boxDecoration: BoxDecoration( + borderRadius: BorderRadius.circular(30.0), + gradient: LinearGradient( + begin: Alignment.topLeft, + // 10% of the width, so there are ten blinds. + colors: [ + const Color(0xFFE55CE4), + const Color(0xFFBB75FB) + ], // whitish to gray + tileMode: + TileMode.repeated, // repeats the gradient over the canvas + ), + ), + onSelect: (values) { + print(values); + }, + ), + ), + Padding( + padding: const EdgeInsets.all(8.0), + child: SelectWeekDays( + boxDecoration: BoxDecoration( + borderRadius: BorderRadius.circular(30.0), + gradient: LinearGradient( + begin: Alignment.topLeft, + // 10% of the width, so there are ten blinds. + colors: [ + const Color(0xFFE55CE4), + const Color(0xFFBB75FB) + ], // whitish to gray + tileMode: + TileMode.repeated, // repeats the gradient over the canvas + ), + ), + onSelect: (values) { + print(values); + }, + ), + ), + SelectWeekDays( + backgroundColor: Color(0xFF303030), + onSelect: (values) { + print(values); + }, + ), + Padding( + padding: const EdgeInsets.all(8.0), + child: SelectWeekDays( + border: false, + backgroundColor: Color(0xFF303030), + onSelect: (values) { + print(values); + }, + ), + ), + Padding( + padding: const EdgeInsets.all(8.0), + child: SelectWeekDays( + border: false, + boxDecoration: BoxDecoration( + color: Colors.red, + borderRadius: BorderRadius.circular(30.0), + ), + onSelect: (values) { + print(values); + }, + ), + ), + ], + ), + ); + } +} diff --git a/example/pubspec.lock b/example/pubspec.lock index 853fdea..6b82549 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -56,7 +56,7 @@ packages: path: ".." relative: true source: path - version: "1.0.0" + version: "1.0.1" fake_async: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 132d8fa..21a8730 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: day_picker description: A Flutter widget library which helps us to select days in a week. -version: 1.0.0 +version: 1.0.1 author: Shan Shaji homepage: https://github.com/shan-shaji/day_picker