IronLad85 / flutter_calendar_strip

A Flutter Calendar Strip Widget
BSD 3-Clause "New" or "Revised" License
180 stars 61 forks source link

Error: 'DateUtils' is imported from both #35

Open bliveinhack opened 3 years ago

bliveinhack commented 3 years ago

When try to run simple example with material app. it throws compile time error :

../../flutter/.pub-cache/hosted/pub.dartlang.org/calendar_strip-1.0.7/lib/calendar_strip.dart:85:22: Error: 'DateUtils' is imported from both 'package:flutter/src/material/date.dart' and 'package:calendar_strip/date-utils.dart'. lastDayOfMonth = DateUtils.getLastDayOfMonth(currentDate); ^^^^^^^^^

../../flutter/.pub-cache/hosted/pub.dartlang.org/calendar_strip-1.0.7/lib/calendar_strip.dart:149:12: Error: 'DateUtils' is imported from both 'package:flutter/src/material/date.dart' and 'package:calendar_strip/date-utils.dart'. return DateUtils.getLastDayOfMonth( ^^^^^^^^^

i have tried hiding dateUtils and make an alias of calendar strip lib but no luck.

IronLad85 commented 3 years ago

@bliveinhack Oh Let me fix it soon.

LukakHR commented 3 years ago

Hey, I've had the same issue. How can I fix it?

ScreamingTree86 commented 3 years ago

Could you please release a new version with the fix? 1.0.7 does not contain the fix...

jstuth commented 2 years ago

This issue is still not fixed, yet. Is this project dead?