Skip to content

Commit

Permalink
Merge pull request #19 from mduccc/improve
Browse files Browse the repository at this point in the history
Improve
  • Loading branch information
mduccc authored Jan 11, 2021
2 parents fe01848 + c21b848 commit c162c7c
Show file tree
Hide file tree
Showing 9 changed files with 54 additions and 339 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
*.iws
.idea/

pubspec.lock

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies:
flutter_calendar_week:
git:
url: https://github.com/mduccc/flutter_calendar_week.git
ref: 1.0.0
ref: 1.0.0+1
```

```Dart
Expand Down
2 changes: 2 additions & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
*.iws
.idea/

pubspec.lock

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
Expand Down
2 changes: 1 addition & 1 deletion example/ios/Flutter/.last_build_id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4e4071df548a909b2df46e25a0870af7
884d3f830506071fa3bd52c8b5f3d3b8
1 change: 1 addition & 0 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class _HomePageState extends State<HomePage> {
),
onDatePressed: (DateTime datetime) {
// Do something
setState(() {});
},
onDateLongPressed: (DateTime datetime) {
// Do something
Expand Down
174 changes: 0 additions & 174 deletions example/pubspec.lock

This file was deleted.

44 changes: 44 additions & 0 deletions lib/src/calendar_week.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,50 @@ import 'package:flutter_calendar_week/src/strings.dart';
import 'package:rxdart/subjects.dart';

class CalendarWeekController {

/*
Example:
CalendarWeek(
controller: _controller,
height: 100,
showMonth: true,
minDate: DateTime.now().add(
Duration(days: -365),
),
maxDate: DateTime.now().add(
Duration(days: 365),
),
onDatePressed: (DateTime datetime) {
// Do something
},
onDateLongPressed: (DateTime datetime) {
// Do something
},
onWeekChanged: () {
// Do something
},
decorations: [
DecorationItem(
decorationAlignment: FractionalOffset.bottomRight,
date: DateTime.now(),
decoration: Icon(
Icons.today,
color: Colors.blue,
)),
DecorationItem(
date: DateTime.now().add(Duration(days: 3)),
decoration: Text(
'Holiday',
style: TextStyle(
color: Colors.brown,
fontWeight: FontWeight.w600,
),
)),
],
)
*/

/// Today date time
DateTime _today = DateTime.now();

Expand Down
Loading

0 comments on commit c162c7c

Please sign in to comment.