bravekingzhang/flutter_template

运行报错

Opened this issue · 2 comments

运行报错

flutter run -d Chrome
Launching lib/main.dart on Chrome in debug mode...
lib/models/todo.g.dart:18:8: Error: The integer literal 505491818817781703 can't be represented
exactly in JavaScript.
Try changing the literal to something that can be represented in JavaScript. In JavaScript
505491818817781696 is the nearest value that can be represented exactly.
id: -505491818817781703,
^^^^^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/extended_image-8.0.2/lib/src/extended_image.dart:976:36: Error:
The argument type 'BorderRadius?' can't be assigned to the parameter type
'BorderRadiusGeometry' because 'BorderRadius?' is nullable and 'BorderRadiusGeometry' isn't.

  • 'BorderRadius' is from 'package:flutter/src/painting/border_radius.dart'
    ('/usr/local/Caskroom/flutter/3.13.0/flutter/packages/flutter/lib/src/painting/border_radius.d
    art').
  • 'BorderRadiusGeometry' is from 'package:flutter/src/painting/border_radius.dart'
    ('/usr/local/Caskroom/flutter/3.13.0/flutter/packages/flutter/lib/src/painting/border_radius.d
    art').
    borderRadius: widget.borderRadius,
    ^
    ../../.pub-cache/hosted/pub.dev/extended_image-8.0.2/lib/src/image/painting.dart:202:13: Error:
    'ImageTilingInfo' isn't a type.
    final ImageTilingInfo info =
    ^^^^^^^^^^^^^^^
    ../../.pub-cache/hosted/pub.dev/extended_image-8.0.2/lib/src/image/painting.dart:203:11: Error:
    Method not found: 'createTilingInfo'.
    createTilingInfo(repeat, rect, destinationRect, sourceRect);
    ^^^^^^^^^^^^^^^^
    ../../.pub-cache/hosted/pub.dev/extended_image_library-3.5.3/lib/src/network/network_image_web.
    dart:25:10: Error: Method not found: 'createDomXMLHttpRequest'.
    return createDomXMLHttpRequest();
    ^^^^^^^^^^^^^^^^^^^^^^^
    ../../.pub-cache/hosted/pub.dev/extended_image_library-3.5.3/lib/src/network/network_image_web.
    dart:166:53: Error: The argument type 'Null Function(DomEvent)' can't be assigned to the
    parameter type 'Never'.
  • 'DomEvent' is from 'package:flutter/src/services/dom.dart'
    ('/usr/local/Caskroom/flutter/3.13.0/flutter/packages/flutter/lib/src/services/dom.dart').
    request.addEventListener('load', allowInterop((DomEvent e) {
    ^
    ../../.pub-cache/hosted/pub.dev/extended_image_library-3.5.3/lib/src/network/network_image_web.
    dart:184:64: Error: The argument type 'void Function(Object, [StackTrace?])' can't be assigned
    to the parameter type 'Never'.
  • 'Object' is from 'dart:core'.
  • 'StackTrace' is from 'dart:core'.
    request.addEventListener('error', allowInterop(completer.completeError));
    ^
    Waiting for connection from debug service on Chrome... 22.7s
    Failed to compile application.
cymok commented

web端,一样报错,改了个数字小的id可以运行,但是网页白屏无内容。Android端正常运行