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

flutter new version bug #16

Closed
ali-tafakkori opened this issue Jan 12, 2021 · 4 comments
Closed

flutter new version bug #16

ali-tafakkori opened this issue Jan 12, 2021 · 4 comments

Comments

@ali-tafakkori
Copy link

hi

/C:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-1.0.7/lib/time_picker.dart:22:24: Error: 'DateUtils' is imported from both 'package:flutter/src/material/date.dart' and 'package:persian_datetime_picker/utils/date.dart'.
  var dateUtiles = new DateUtils();
                       ^^^^^^^^^
/C:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-1.0.7/lib/handle_picker.dart:55:29: Error: 'DateUtils' is imported from both 'package:persian_datetime_picker/utils/date.dart' and 'package:flutter/src/material/date.dart'.
          initDateTime = '${DateUtils.jalaliToString(now)} # ${DateUtils.jalaliToString(now)}';
                            ^^^^^^^^^
/C:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-1.0.7/lib/handle_picker.dart:55:64: Error: 'DateUtils' is imported from both 'package:persian_datetime_picker/utils/date.dart' and 'package:flutter/src/material/date.dart'.
          initDateTime = '${DateUtils.jalaliToString(now)} # ${DateUtils.jalaliToString(now)}';
                                                               ^^^^^^^^^
/C:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-1.0.7/lib/handle_picker.dart:58:29: Error: 'DateUtils' is imported from both 'package:persian_datetime_picker/utils/date.dart' and 'package:flutter/src/material/date.dart'.
          initDateTime = '${DateUtils.jalaliToString(now)} 00:00';
                            ^^^^^^^^^
/C:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-1.0.7/lib/handle_picker.dart:61:29: Error: 'DateUtils' is imported from both 'package:persian_datetime_picker/utils/date.dart' and 'package:flutter/src/material/date.dart'.
          initDateTime = '${DateUtils.jalaliToString(now)}';
                            ^^^^^^^^^
/C:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-1.0.7/lib/handle_picker.dart:334:21: Error: 'DateUtils' is imported from both 'package:persian_datetime_picker/utils/date.dart' and 'package:flutter/src/material/date.dart'.
          initDate: DateUtils.jalaliToString(
                    ^^^^^^^^^
/C:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-1.0.7/lib/handle_picker.dart:345:21: Error: 'DateUtils' is imported from both 'package:persian_datetime_picker/utils/date.dart' and 'package:flutter/src/material/date.dart'.
          initDate: DateUtils.jalaliToString(
                    ^^^^^^^^^
/C:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-1.0.7/lib/month_picker.dart:79:28: Error: 'DateUtils' is imported from both 'package:flutter/src/material/date.dart' and 'package:persian_datetime_picker/utils/date.dart'.
      var dateUtiles = new DateUtils();
                           ^^^^^^^^^
/C:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-1.0.7/lib/year_picker.dart:109:28: Error: 'DateUtils' is imported from both 'package:flutter/src/material/date.dart' and 'package:persian_datetime_picker/utils/date.dart'.
      var dateUtiles = new DateUtils();
                           ^^^^^^^^^
/C:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-1.0.7/lib/widget/day_container.dart:32:26: Error: 'DateUtils' is imported from both 'package:flutter/src/material/date.dart' and 'package:persian_datetime_picker/utils/date.dart'.
    var dateUtiles = new DateUtils();
                         ^^^^^^^^^
/C:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/persian_datetime_picker-1.0.7/lib/widget/day_container.dart:49:28: Error: 'DateUtils' is imported from both 'package:flutter/src/material/date.dart' and 'package:persian_datetime_picker/utils/date.dart'.
      var dateUtiles = new DateUtils();
                           ^^^^^^^^^


FAILURE: Build failed with an exception.

* Where:
Script 'C:\flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 997

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\flutter\flutter\bin\flutter.bat'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 24s
Exception: Gradle task assembleDebug failed with exit code 1

These line (error) are showed when building

@alijahani121
Copy link

type:'time' => type: PickerType.time,

@miladganjali
Copy link

miladganjali commented Mar 13, 2021

is anyone solving this issue?

type:'time' => type: PickerType.time, not working

@mbfakourii
Copy link

@M-amir-M please fix

@M-amir-M
Copy link
Owner

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants