Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#6 امکان ارسال تاریخ انتخاب شده به عنوان پارامتر ورودی به #7

Merged
merged 4 commits into from
Jul 7, 2021
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
11 changes: 8 additions & 3 deletions example/ios/Flutter/flutter_export_environment.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
#!/bin/sh
# This is a generated file; do not edit or check into version control.
export "FLUTTER_ROOT=E:\flutter-sdk"
export "FLUTTER_APPLICATION_PATH=E:\Project\Flutter\jalali_calendar\example"
export "FLUTTER_ROOT=C:\src\flutter"
export "FLUTTER_APPLICATION_PATH=C:\Users\h_mohammadi\source\repos\jalali_calendar\example"
export "FLUTTER_TARGET=lib\main.dart"
export "FLUTTER_BUILD_DIR=build"
export "SYMROOT=${SOURCE_ROOT}/../build\ios"
export "FLUTTER_FRAMEWORK_DIR=E:\flutter-sdk\bin\cache\artifacts\engine\ios"
export "OTHER_LDFLAGS=$(inherited) -framework Flutter"
export "FLUTTER_FRAMEWORK_DIR=C:\src\flutter\bin\cache\artifacts\engine\ios"
export "FLUTTER_BUILD_NAME=1.0.0"
export "FLUTTER_BUILD_NUMBER=1"
export "DART_OBFUSCATION=false"
export "TRACK_WIDGET_CREATION=false"
export "TREE_SHAKE_ICONS=false"
export "PACKAGE_CONFIG=.packages"
28 changes: 14 additions & 14 deletions lib/src/jalalicalendarpicker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1239,20 +1239,20 @@ typedef SelectableDayPredicate = bool Function(DateTime day);
///
/// * [showTimePicker]
/// * <https://material.google.com/components/pickers.html#pickers-date-pickers>
Future<String> jalaliCalendarPicker({
@required BuildContext context,
SelectableDayPredicate selectableDayPredicate,
DatePickerMode initialDatePickerMode = DatePickerMode.day,
String selectedFormat,
bool toArray,
Locale locale,
TextDirection textDirection = TextDirection.rtl,
bool convertToGregorian = false,
bool showTimePicker = false,
bool hore24Format = false,
TimeOfDay initialTime,
}) async {
DateTime initialDate = DateTime.now();
Future<String> jalaliCalendarPicker(
{@required BuildContext context,
SelectableDayPredicate selectableDayPredicate,
DatePickerMode initialDatePickerMode = DatePickerMode.day,
String selectedFormat,
bool toArray,
Locale locale,
TextDirection textDirection = TextDirection.rtl,
bool convertToGregorian = false,
bool showTimePicker = false,
bool hore24Format = false,
TimeOfDay initialTime,
DateTime initialDate}) async {
initialDate = initialDate ?? DateTime.now();
DateTime firstDate = DateTime(1700);
DateTime lastDate = DateTime(2200);

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 1.0.3+1
homepage: https://github.com/irdeveloper89/jalali_calendar

environment:
sdk: ">=2.0.0 <3.0.0"
sdk: ">=2.8.0 <3.0.0"
flutter: ">=0.1.2 <2.0.0"

dependencies:
Expand Down