diff --git a/.gitignore b/.gitignore index 7eb5560..2daacaf 100644 --- a/.gitignore +++ b/.gitignore @@ -30,7 +30,6 @@ example/.vscode/ .pub-cache/ .pub/ build/ - # Android related **/android/**/gradle-wrapper.jar **/android/.gradle diff --git a/example/ios/Flutter/ephemeral/flutter_lldb_helper.py b/example/ios/Flutter/ephemeral/flutter_lldb_helper.py new file mode 100644 index 0000000..a88caf9 --- /dev/null +++ b/example/ios/Flutter/ephemeral/flutter_lldb_helper.py @@ -0,0 +1,32 @@ +# +# Generated file, do not edit. +# + +import lldb + +def handle_new_rx_page(frame: lldb.SBFrame, bp_loc, extra_args, intern_dict): + """Intercept NOTIFY_DEBUGGER_ABOUT_RX_PAGES and touch the pages.""" + base = frame.register["x0"].GetValueAsAddress() + page_len = frame.register["x1"].GetValueAsUnsigned() + + # Note: NOTIFY_DEBUGGER_ABOUT_RX_PAGES will check contents of the + # first page to see if handled it correctly. This makes diagnosing + # misconfiguration (e.g. missing breakpoint) easier. + data = bytearray(page_len) + data[0:8] = b'IHELPED!' + + error = lldb.SBError() + frame.GetThread().GetProcess().WriteMemory(base, data, error) + if not error.Success(): + print(f'Failed to write into {base}[+{page_len}]', error) + return + +def __lldb_init_module(debugger: lldb.SBDebugger, _): + target = debugger.GetDummyTarget() + # Caveat: must use BreakpointCreateByRegEx here and not + # BreakpointCreateByName. For some reasons callback function does not + # get carried over from dummy target for the later. + bp = target.BreakpointCreateByRegex("^NOTIFY_DEBUGGER_ABOUT_RX_PAGES$") + bp.SetScriptCallbackFunction('{}.handle_new_rx_page'.format(__name__)) + bp.SetAutoContinue(True) + print("-- LLDB integration loaded --") diff --git a/example/ios/Flutter/ephemeral/flutter_lldbinit b/example/ios/Flutter/ephemeral/flutter_lldbinit new file mode 100644 index 0000000..e3ba6fb --- /dev/null +++ b/example/ios/Flutter/ephemeral/flutter_lldbinit @@ -0,0 +1,5 @@ +# +# Generated file, do not edit. +# + +command script import --relative-to-command-file flutter_lldb_helper.py diff --git a/example/ios/Flutter/flutter_export_environment.sh b/example/ios/Flutter/flutter_export_environment.sh index 5db6e80..58a0ef4 100755 --- a/example/ios/Flutter/flutter_export_environment.sh +++ b/example/ios/Flutter/flutter_export_environment.sh @@ -1,14 +1,13 @@ #!/bin/sh # This is a generated file; do not edit or check into version control. -export "FLUTTER_ROOT=/Users/vivek/development/flutter" -export "FLUTTER_APPLICATION_PATH=/Users/vivek/StudioProjects/DatePickerTimelineFlutter/example" -export "FLUTTER_TARGET=/Users/vivek/StudioProjects/DatePickerTimelineFlutter/example/lib/main.dart" +export "FLUTTER_ROOT=C:\development\flutter" +export "FLUTTER_APPLICATION_PATH=f:\work_space\DatePickerTimelineFlutter\example" +export "COCOAPODS_PARALLEL_CODE_SIGN=true" +export "FLUTTER_TARGET=lib\main.dart" export "FLUTTER_BUILD_DIR=build" -export "SYMROOT=${SOURCE_ROOT}/../build/ios" export "FLUTTER_BUILD_NAME=1.0.0" export "FLUTTER_BUILD_NUMBER=1" -export "DART_DEFINES=flutter.inspector.structuredErrors%3Dtrue" export "DART_OBFUSCATION=false" export "TRACK_WIDGET_CREATION=true" export "TREE_SHAKE_ICONS=false" -export "PACKAGE_CONFIG=/Users/vivek/StudioProjects/DatePickerTimelineFlutter/example/.dart_tool/package_config.json" +export "PACKAGE_CONFIG=.dart_tool/package_config.json" diff --git a/example/pubspec.lock b/example/pubspec.lock index c36cbe3..b103fc3 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -5,49 +5,48 @@ packages: dependency: transitive description: name: async - url: "https://pub.dartlang.org" + sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb" + url: "https://pub.dev" source: hosted - version: "2.5.0" + version: "2.13.0" boolean_selector: dependency: transitive description: name: boolean_selector - url: "https://pub.dartlang.org" + sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea" + url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.2" characters: dependency: transitive description: name: characters - url: "https://pub.dartlang.org" + sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803 + url: "https://pub.dev" source: hosted - version: "1.1.0" - charcode: - dependency: transitive - description: - name: charcode - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.0" + version: "1.4.0" clock: dependency: transitive description: name: clock - url: "https://pub.dartlang.org" + sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b + url: "https://pub.dev" source: hosted - version: "1.1.0" + version: "1.1.2" collection: dependency: transitive description: name: collection - url: "https://pub.dartlang.org" + sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76" + url: "https://pub.dev" source: hosted - version: "1.15.0" + version: "1.19.1" cupertino_icons: dependency: "direct main" description: name: cupertino_icons - url: "https://pub.dartlang.org" + sha256: caac504f942f41dfadcf45229ce8c47065b93919a12739f20d6173a883c5ec73 + url: "https://pub.dev" source: hosted version: "1.0.2" date_picker_timeline: @@ -61,9 +60,10 @@ packages: dependency: transitive description: name: fake_async - url: "https://pub.dartlang.org" + sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44" + url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.3.3" flutter: dependency: "direct main" description: flutter @@ -78,90 +78,135 @@ packages: dependency: transitive description: name: intl - url: "https://pub.dartlang.org" + sha256: "3df61194eb431efc39c4ceba583b95633a403f46c9fd341e550ce0bfa50e9aa5" + url: "https://pub.dev" + source: hosted + version: "0.20.2" + leak_tracker: + dependency: transitive + description: + name: leak_tracker + sha256: "6bb818ecbdffe216e81182c2f0714a2e62b593f4a4f13098713ff1685dfb6ab0" + url: "https://pub.dev" + source: hosted + version: "10.0.9" + leak_tracker_flutter_testing: + dependency: transitive + description: + name: leak_tracker_flutter_testing + sha256: f8b613e7e6a13ec79cfdc0e97638fddb3ab848452eff057653abd3edba760573 + url: "https://pub.dev" + source: hosted + version: "3.0.9" + leak_tracker_testing: + dependency: transitive + description: + name: leak_tracker_testing + sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" + url: "https://pub.dev" source: hosted - version: "0.17.0" + version: "3.0.1" matcher: dependency: transitive description: name: matcher - url: "https://pub.dartlang.org" + sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2 + url: "https://pub.dev" + source: hosted + version: "0.12.17" + material_color_utilities: + dependency: transitive + description: + name: material_color_utilities + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec + url: "https://pub.dev" source: hosted - version: "0.12.10" + version: "0.11.1" meta: dependency: transitive description: name: meta - url: "https://pub.dartlang.org" + sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c + url: "https://pub.dev" source: hosted - version: "1.3.0" + version: "1.16.0" path: dependency: transitive description: name: path - url: "https://pub.dartlang.org" + sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5" + url: "https://pub.dev" source: hosted - version: "1.8.0" + version: "1.9.1" sky_engine: dependency: transitive description: flutter source: sdk - version: "0.0.99" + version: "0.0.0" source_span: dependency: transitive description: name: source_span - url: "https://pub.dartlang.org" + sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c" + url: "https://pub.dev" source: hosted - version: "1.8.0" + version: "1.10.1" stack_trace: dependency: transitive description: name: stack_trace - url: "https://pub.dartlang.org" + sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1" + url: "https://pub.dev" source: hosted - version: "1.10.0" + version: "1.12.1" stream_channel: dependency: transitive description: name: stream_channel - url: "https://pub.dartlang.org" + sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d" + url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.4" string_scanner: dependency: transitive description: name: string_scanner - url: "https://pub.dartlang.org" + sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43" + url: "https://pub.dev" source: hosted - version: "1.1.0" + version: "1.4.1" term_glyph: dependency: transitive description: name: term_glyph - url: "https://pub.dartlang.org" + sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e" + url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.2.2" test_api: dependency: transitive description: name: test_api - url: "https://pub.dartlang.org" + sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd + url: "https://pub.dev" source: hosted - version: "0.2.19" - typed_data: + version: "0.7.4" + vector_math: dependency: transitive description: - name: typed_data - url: "https://pub.dartlang.org" + name: vector_math + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + url: "https://pub.dev" source: hosted - version: "1.3.0" - vector_math: + version: "2.1.4" + vm_service: dependency: transitive description: - name: vector_math - url: "https://pub.dartlang.org" + name: vm_service + sha256: ddfa8d30d89985b96407efce8acbdd124701f96741f2d981ca860662f1c0dc02 + url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "15.0.0" sdks: - dart: ">=2.12.0 <3.0.0" + dart: ">=3.7.0-0 <4.0.0" + flutter: ">=3.18.0-18.0.pre.54" diff --git a/lib/date_picker_widget.dart b/lib/date_picker_widget.dart index 14ca445..377974c 100644 --- a/lib/date_picker_widget.dart +++ b/lib/date_picker_widget.dart @@ -1,5 +1,3 @@ - - import 'package:date_picker_timeline/date_widget.dart'; import 'package:date_picker_timeline/extra/color.dart'; import 'package:date_picker_timeline/extra/style.dart'; @@ -40,7 +38,7 @@ class DatePicker extends StatefulWidget { final TextStyle dateTextStyle; /// Current Selected Date - final DateTime?/*?*/ initialSelectedDate; + final DateTime? /*?*/ initialSelectedDate; /// Contains the list of inactive dates. /// All the dates defined in this List will be deactivated @@ -60,12 +58,28 @@ class DatePicker extends StatefulWidget { /// Locale for the calendar default: en_us final String locale; + ///show noth field + final bool showMonth; + + /// Custom Widget Builder + final Widget Function(DateTime date,bool isDeactivated)? builder; + + ///jump to initial date + final bool jumpToInitialDate; + + /// disable old dates + final bool disableOldDates; + DatePicker( this.startDate, { Key? key, this.width = 60, this.height = 80, this.controller, + this.builder, + this.showMonth = false, + this.jumpToInitialDate = true, + this.disableOldDates = false, this.monthTextStyle = defaultMonthTextStyle, this.dayTextStyle = defaultDayTextStyle, this.dateTextStyle = defaultDateTextStyle, @@ -109,12 +123,17 @@ class _DatePickerState extends State { if (widget.controller != null) { widget.controller!.setDatePickerState(this); + if (widget.initialSelectedDate != null && widget.jumpToInitialDate) { + _controller = ScrollController( + initialScrollOffset: + _calculateDateOffset(widget.initialSelectedDate!)); + } } this.selectedDateStyle = - widget.dateTextStyle.copyWith(color: widget.selectedTextColor); + widget.dateTextStyle.copyWith(color: widget.selectedTextColor); this.selectedMonthStyle = - widget.monthTextStyle.copyWith(color: widget.selectedTextColor); + widget.monthTextStyle.copyWith(color: widget.selectedTextColor); this.selectedDayStyle = widget.dayTextStyle.copyWith(color: widget.selectedTextColor); @@ -128,6 +147,14 @@ class _DatePickerState extends State { super.initState(); } + double _calculateDateOffset(DateTime date) { + final startDate = new DateTime(this.widget.startDate.year, + this.widget.startDate.month, this.widget.startDate.day); + + int offset = date.difference(startDate).inDays; + return (offset * this.widget.width) + (offset * 6); + } + @override Widget build(BuildContext context) { return Container( @@ -168,6 +195,17 @@ class _DatePickerState extends State { } } + // check if this date old to disable it + if (widget.disableOldDates) { + if (date.isBefore( + DateTime.now().subtract( + Duration(days: 1), + ), + )) { + isDeactivated = true; + } + } + // Check if this date is the one that is currently selected bool isSelected = _currentDate != null ? _compareDate(date, _currentDate!) : false; @@ -175,6 +213,9 @@ class _DatePickerState extends State { // Return the Date Widget return DateWidget( date: date, + showMonth: widget.showMonth, + builder: widget.builder, + isDeactivated: isDeactivated, monthTextStyle: isDeactivated ? deactivatedMonthStyle : isSelected @@ -266,14 +307,15 @@ class DatePickerController { void setDateAndAnimate(DateTime date, {duration = const Duration(milliseconds: 500), curve = Curves.linear}) { assert(_datePickerState != null, - 'DatePickerController is not attached to any DatePicker View.'); + 'DatePickerController is not attached to any DatePicker View.'); _datePickerState!._controller.animateTo(_calculateDateOffset(date), duration: duration, curve: curve); if (date.compareTo(_datePickerState!.widget.startDate) >= 0 && - date.compareTo(_datePickerState!.widget.startDate.add( - Duration(days: _datePickerState!.widget.daysCount))) <= 0) { + date.compareTo(_datePickerState!.widget.startDate + .add(Duration(days: _datePickerState!.widget.daysCount))) <= + 0) { // date is in the range _datePickerState!._currentDate = date; } diff --git a/lib/date_widget.dart b/lib/date_widget.dart index 1eb13f4..fbabb69 100644 --- a/lib/date_widget.dart +++ b/lib/date_widget.dart @@ -12,10 +12,15 @@ import 'package:intl/intl.dart'; class DateWidget extends StatelessWidget { final double? width; final DateTime date; - final TextStyle? monthTextStyle, dayTextStyle, dateTextStyle; + final TextStyle monthTextStyle; + final TextStyle dayTextStyle; + final TextStyle dateTextStyle; final Color selectionColor; final DateSelectionCallback? onDateSelected; final String? locale; + final bool isDeactivated; + final bool showMonth; + final Widget Function(DateTime date, bool isDeactivated)? builder; DateWidget({ required this.date, @@ -23,44 +28,71 @@ class DateWidget extends StatelessWidget { required this.dayTextStyle, required this.dateTextStyle, required this.selectionColor, + required this.isDeactivated, this.width, + this.showMonth = false, this.onDateSelected, this.locale, + this.builder, }); @override Widget build(BuildContext context) { - return InkWell( - child: Container( - width: width, - margin: EdgeInsets.all(3.0), - decoration: BoxDecoration( - borderRadius: BorderRadius.all(Radius.circular(8.0)), - color: selectionColor, - ), - child: Padding( - padding: EdgeInsets.all(8), - child: Column( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - crossAxisAlignment: CrossAxisAlignment.center, - children: [ - Text(new DateFormat("MMM", locale).format(date).toUpperCase(), // Month - style: monthTextStyle), - Text(date.day.toString(), // Date - style: dateTextStyle), - Text(new DateFormat("E", locale).format(date).toUpperCase(), // WeekDay - style: dayTextStyle) - ], + if (builder != null) { + return InkWell( + child: builder!(date, isDeactivated), + onTap: () { + // Check if onDateSelected is not null + if (onDateSelected != null) { + // Call the onDateSelected Function + onDateSelected!(this.date); + } + }, + ); + } else { + return InkWell( + child: Container( + width: width, + margin: EdgeInsets.all(3.0), + decoration: BoxDecoration( + borderRadius: BorderRadius.all(Radius.circular(8.0)), + color: selectionColor, + ), + child: Padding( + padding: EdgeInsets.all(8), + child: Column( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + if (showMonth) + Text( + new DateFormat("MMM", locale) + .format(date) + .toUpperCase(), // Month + style: monthTextStyle, + ), + Text( + new DateFormat("E", locale) + .format(date) + .toUpperCase(), // WeekDay + style: dayTextStyle, + ), + Text( + date.day.toString(), // Date + style: dateTextStyle, + ), + ], + ), ), ), - ), - onTap: () { - // Check if onDateSelected is not null - if (onDateSelected != null) { - // Call the onDateSelected Function - onDateSelected!(this.date); - } - }, - ); + onTap: () { + // Check if onDateSelected is not null + if (onDateSelected != null) { + // Call the onDateSelected Function + onDateSelected!(this.date); + } + }, + ); + } } } diff --git a/pubspec.lock b/pubspec.lock index a38f32a..c19dc95 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -5,51 +5,50 @@ packages: dependency: transitive description: name: async - url: "https://pub.dartlang.org" + sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb" + url: "https://pub.dev" source: hosted - version: "2.5.0" + version: "2.13.0" boolean_selector: dependency: transitive description: name: boolean_selector - url: "https://pub.dartlang.org" + sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea" + url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.2" characters: dependency: transitive description: name: characters - url: "https://pub.dartlang.org" + sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803 + url: "https://pub.dev" source: hosted - version: "1.1.0" - charcode: - dependency: transitive - description: - name: charcode - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.0" + version: "1.4.0" clock: dependency: transitive description: name: clock - url: "https://pub.dartlang.org" + sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b + url: "https://pub.dev" source: hosted - version: "1.1.0" + version: "1.1.2" collection: dependency: transitive description: name: collection - url: "https://pub.dartlang.org" + sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76" + url: "https://pub.dev" source: hosted - version: "1.15.0" + version: "1.19.1" fake_async: dependency: transitive description: name: fake_async - url: "https://pub.dartlang.org" + sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44" + url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.3.3" flutter: dependency: "direct main" description: flutter @@ -64,90 +63,135 @@ packages: dependency: "direct main" description: name: intl - url: "https://pub.dartlang.org" + sha256: "3df61194eb431efc39c4ceba583b95633a403f46c9fd341e550ce0bfa50e9aa5" + url: "https://pub.dev" + source: hosted + version: "0.20.2" + leak_tracker: + dependency: transitive + description: + name: leak_tracker + sha256: "6bb818ecbdffe216e81182c2f0714a2e62b593f4a4f13098713ff1685dfb6ab0" + url: "https://pub.dev" + source: hosted + version: "10.0.9" + leak_tracker_flutter_testing: + dependency: transitive + description: + name: leak_tracker_flutter_testing + sha256: f8b613e7e6a13ec79cfdc0e97638fddb3ab848452eff057653abd3edba760573 + url: "https://pub.dev" + source: hosted + version: "3.0.9" + leak_tracker_testing: + dependency: transitive + description: + name: leak_tracker_testing + sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" + url: "https://pub.dev" source: hosted - version: "0.17.0" + version: "3.0.1" matcher: dependency: transitive description: name: matcher - url: "https://pub.dartlang.org" + sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2 + url: "https://pub.dev" + source: hosted + version: "0.12.17" + material_color_utilities: + dependency: transitive + description: + name: material_color_utilities + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec + url: "https://pub.dev" source: hosted - version: "0.12.10" + version: "0.11.1" meta: dependency: transitive description: name: meta - url: "https://pub.dartlang.org" + sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c + url: "https://pub.dev" source: hosted - version: "1.3.0" + version: "1.16.0" path: dependency: transitive description: name: path - url: "https://pub.dartlang.org" + sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5" + url: "https://pub.dev" source: hosted - version: "1.8.0" + version: "1.9.1" sky_engine: dependency: transitive description: flutter source: sdk - version: "0.0.99" + version: "0.0.0" source_span: dependency: transitive description: name: source_span - url: "https://pub.dartlang.org" + sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c" + url: "https://pub.dev" source: hosted - version: "1.8.0" + version: "1.10.1" stack_trace: dependency: transitive description: name: stack_trace - url: "https://pub.dartlang.org" + sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1" + url: "https://pub.dev" source: hosted - version: "1.10.0" + version: "1.12.1" stream_channel: dependency: transitive description: name: stream_channel - url: "https://pub.dartlang.org" + sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d" + url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.4" string_scanner: dependency: transitive description: name: string_scanner - url: "https://pub.dartlang.org" + sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43" + url: "https://pub.dev" source: hosted - version: "1.1.0" + version: "1.4.1" term_glyph: dependency: transitive description: name: term_glyph - url: "https://pub.dartlang.org" + sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e" + url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.2.2" test_api: dependency: transitive description: name: test_api - url: "https://pub.dartlang.org" + sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd + url: "https://pub.dev" source: hosted - version: "0.2.19" - typed_data: + version: "0.7.4" + vector_math: dependency: transitive description: - name: typed_data - url: "https://pub.dartlang.org" + name: vector_math + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + url: "https://pub.dev" source: hosted - version: "1.3.0" - vector_math: + version: "2.1.4" + vm_service: dependency: transitive description: - name: vector_math - url: "https://pub.dartlang.org" + name: vm_service + sha256: ddfa8d30d89985b96407efce8acbdd124701f96741f2d981ca860662f1c0dc02 + url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "15.0.0" sdks: - dart: ">=2.12.0 <3.0.0" + dart: ">=3.7.0-0 <4.0.0" + flutter: ">=3.18.0-18.0.pre.54" diff --git a/pubspec.yaml b/pubspec.yaml index 2a5f5a7..17ccd5f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,12 +4,12 @@ version: 1.2.3 homepage: https://github.com/iamvivekkaushik/DatePickerTimelineFlutter environment: - sdk: '>=2.12.0 <3.0.0' + sdk: '>=3.3.1' dependencies: flutter: sdk: flutter - intl: ^0.17.0 + intl: ^0.20.2 dev_dependencies: flutter_test: @@ -19,8 +19,6 @@ dev_dependencies: # following page: https://dart.dev/tools/pub/pubspec # The following section is specific to Flutter. -flutter: - # To add assets to your package, add an assets section, like this: # assets: # - images/a_dot_burr.jpeg diff --git a/test/date_picker_timeline_test.dart b/test/date_picker_timeline_test.dart index 4ebbffa..5f2fadb 100644 --- a/test/date_picker_timeline_test.dart +++ b/test/date_picker_timeline_test.dart @@ -1,6 +1,4 @@ -import 'package:flutter_test/flutter_test.dart'; -import 'package:date_picker_timeline/date_picker_timeline.dart'; void main() { }