The name DateUtils
is defined in the libraries package:calendarro/date_utils.dart
and package:flutter/src/material/date.dart
(via package:flutter/material.dart)
.
Try using as prefix
for one of the import directives, or hiding the name from all but one of the imports.dartambiguous_import
Asked
Active
Viewed 1,915 times
0

SecretAgentMan
- 2,856
- 7
- 21
- 41

Youness
- 1
- 1
-
Can this similar case help you?(https://stackoverflow.com/questions/69328302/dateutils-is-imported-from-both-packages-flutter-app) – Jingmiao Xu-MSFT Jul 04 '22 at 10:04
1 Answers
4
you can import packages like this
import 'package:calendarro/date_utils.dart' as dateutil;
//and use this as
dateutil.DateUtils

Kaushik Chandru
- 15,510
- 2
- 12
- 30