Skip to content

Commit

Permalink
fix example error, add demo to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamalianpour committed Mar 28, 2021
1 parent a19c2d1 commit 41293f3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@ Each row show a hour and each column show a day but you can change the title of

## Screenshots

| Mobile | Dark |
| -------------------------------------- | --------------------------------------- |
| ![Notification](screenshot/Mobile.gif) | ![Attached](screenshot/darkMobile.jpg) |
| Mobile | Dark |
| -------------------------------- | ---------------------------------- |
| ![Mobile](screenshot/Mobile.gif) | ![Dark](screenshot/darkMobile.jpg) |

| Desktop | Web |
| --------------------------------------- | ------------------------------- |
| ![Notification](screenshot/Desktop.gif) | ![Attached](screenshot/Web.gif) |
| Desktop | Web |
| ---------------------------------- | -------------------------- |
| ![Desktop](screenshot/Desktop.gif) | ![Web](screenshot/Web.gif) |

## Demo

You can see web demo here: [https://jamalianpour.github.io/time_planner_demo](https://jamalianpour.github.io/time_planner_demo)

## Usage

Expand Down
4 changes: 2 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class MyApp extends StatelessWidget {
}

class MyHomePage extends StatefulWidget {
MyHomePage({Key key, this.title}) : super(key: key);
MyHomePage({Key? key, required this.title}) : super(key: key);

final String title;

Expand All @@ -34,7 +34,7 @@ class _MyHomePageState extends State<MyHomePage> {
List<TimePlannerTask> tasks = [];

void _addObject(BuildContext context) {
List<Color> colors = [
List<Color?> colors = [
Colors.purple,
Colors.blue,
Colors.green,
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: An example for time planner
version: 1.0.0+1

environment:
sdk: ">=2.7.0 <3.0.0"
sdk: ">=2.12.0 <3.0.0"

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ homepage: https://github.com/Jamalianpour/time_planner

environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=1.17.0 <2.0.0"
flutter: ">=1.17.0"

dependencies:
flutter:
Expand Down

0 comments on commit 41293f3

Please sign in to comment.