Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
## 2.3.0

* Added `SmartDateRangePicker` widget
* Visual range selection with highlight
* Preset ranges: today, thisWeek, thisMonth,
last7Days, last30Days, thisYear + more
* Min/Max date constraints
* `onRangeSelected` callback
* `onCleared` callback
* `showAsBottomSheet()` — dialog mode
* Custom preset labels support
* Configurable primary + range colors
* Added `SmartDateRangePickerController`
* `setRange(start, end)`
* `setPreset(DateRangePreset)`
* `clear()`
* `value`, `hasValue`
* Added `SelectedDateRange` model
* `days` — range length
* `contains(date)` — check if date in range
* `toDateRange()` — convert to DateRange
* Added `DateRangePreset` enum

## 2.2.0

* Added `SmartDateField` — smart Flutter form field for date input
Expand Down
11 changes: 4 additions & 7 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ class ExampleApp extends StatelessWidget {
return MaterialApp(
title: 'SmartDateFormatter Example',
debugShowCheckedModeBanner: false,
theme: ThemeData(
colorSchemeSeed: Colors.indigo, useMaterial3: true),
theme: ThemeData(colorSchemeSeed: Colors.indigo, useMaterial3: true),
home: const ExampleHomePage(),
);
}
Expand All @@ -45,11 +44,9 @@ class ExampleHomePage extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text('smart_date_formatter',
style: TextStyle(
fontSize: 16, fontWeight: FontWeight.bold)),
style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold)),
Text('v2.2.0 — Full Example',
style: TextStyle(
fontSize: 11, color: Colors.white70)),
style: TextStyle(fontSize: 11, color: Colors.white70)),
],
),
bottom: const TabBar(
Expand Down Expand Up @@ -90,4 +87,4 @@ class ExampleHomePage extends StatelessWidget {
),
);
}
}
}
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ packages:
path: ".."
relative: true
source: path
version: "2.2.0"
version: "2.3.0"
source_span:
dependency: transitive
description:
Expand Down
1 change: 1 addition & 0 deletions lib/smart_date_formatter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,4 @@ export 'src/calendar/calendar_event.dart';
export 'src/calendar/calendar_controller.dart';
export 'src/calendar/smart_calendar.dart';
export 'src/widgets/smart_date_field.dart';
export 'src/widgets/smart_date_range_picker.dart';
Loading
Loading