Skip to content

Commit

Permalink
Fixed Link Issues in 📋Readme.md and moved example to single file
Browse files Browse the repository at this point in the history
  • Loading branch information
shan-shaji committed Aug 15, 2020
1 parent debc130 commit 816687b
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 104 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
98 changes: 0 additions & 98 deletions example/lib/homePage.dart

This file was deleted.

98 changes: 97 additions & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -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());
Expand All @@ -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);
},
),
),
],
),
);
}
}
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.0.0"
version: "1.0.1"
fake_async:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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 <shanshaji224@gmail.com>
homepage: https://github.com/shan-shaji/day_picker

Expand Down

0 comments on commit 816687b

Please sign in to comment.