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

无法运行 #19

Open
lozn00 opened this issue Nov 4, 2021 · 0 comments
Open

无法运行 #19

lozn00 opened this issue Nov 4, 2021 · 0 comments

Comments

@lozn00
Copy link

lozn00 commented Nov 4, 2021

错误好多

lib/widgets/mainframe/applet.dart:1:8: Error: Not found: 'dart:wasm'
import 'dart:wasm';
       ^
/C:/sdk/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.2/lib/src/picture_stream.dart:88:26: Error: Type 'DiagnosticableMixin' not found.
class PictureStream with DiagnosticableMixin {
                         ^^^^^^^^^^^^^^^^^^^
/C:/sdk/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.2/lib/src/picture_stream.dart:192:44: Error: Type 'DiagnosticableMixin' not found.
abstract class PictureStreamCompleter with DiagnosticableMixin {
                                           ^^^^^^^^^^^^^^^^^^^
/C:/sdk/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.2/lib/src/picture_stream.dart:88:7: Error: The type 'DiagnosticableMixin' can't be mixed in.
class PictureStream with DiagnosticableMixin {
      ^
/C:/sdk/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.2/lib/src/picture_stream.dart:192:16: Error: The type 'DiagnosticableMixin' can't be mixed in.
abstract class PictureStreamCompleter with DiagnosticableMixin {
               ^
lib/routers/routers.dart:2:1: Error: 'Router' is imported from both 'package:fluro/src/router.dart' and 'package:flutter/src/widgets/router.dart'.
import 'package:flutter/material.dart';
^^^^^^
lib/main.dart:21:20: Error: 'Router' is imported from both 'package:flutter/src/widgets/router.dart' and 'package:fluro/src/router.dart'.
    final router = Router();
                   ^^^^^^
lib/main.dart:77:43: Error: Method not found: 'TypeMatcher'.
        context.ancestorStateOfType(const TypeMatcher<_RestartWidgetState>());
                                          ^^^^^^^^^^^
lib/main.dart:77:17: Error: The method 'ancestorStateOfType' isn't defined for the class 'BuildContext'.
 - 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('/C:/sdk/flutter/packages/flutter/lib/src/widgets/framework.dart').
Try correcting the name to the name of an existing method, or defining a method named 'ancestorStateOfType'.
        context.ancestorStateOfType(const TypeMatcher<_RestartWidgetState>());
                ^^^^^^^^^^^^^^^^^^^
/C:/sdk/flutter/.pub-cache/hosted/pub.dartlang.org/flustars-0.2.6+1/lib/src/ui/my_app_bar.dart:240:57: Error: No named parameter with the name 'nullOk'.
    final ScaffoldState scaffold = Scaffold.of(context, nullOk: true);
                                                        ^^^^^^
/C:/sdk/flutter/packages/flutter/lib/src/material/scaffold.dart:2142:24: Context: Found this candidate, but the arguments don't match.
  static ScaffoldState of(BuildContext context) {
                       ^^
/C:/sdk/flutter/.pub-cache/hosted/pub.dartlang.org/flustars-0.2.6+1/lib/src/ui/my_app_bar.dart:252:27: Error: The getter 'title' isn't defined for the class 'TextTheme'.
 - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/C:/sdk/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'title'.
        widget.textTheme?.title ?? themeData.primaryTextTheme.title;
                          ^^^^^
/C:/sdk/flutter/.pub-cache/hosted/pub.dartlang.org/flustars-0.2.6+1/lib/src/ui/my_app_bar.dart:252:63: Error: The getter 'title' isn't defined for the class 'TextTheme'.
 - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/C:/sdk/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'title'.
        widget.textTheme?.title ?? themeData.primaryTextTheme.title;
                                                              ^^^^^
/C:/sdk/flutter/.pub-cache/hosted/pub.dartlang.org/flustars-0.2.6+1/lib/src/ui/my_app_bar.dart:254:27: Error: The getter 'body1' isn't defined for the class 'TextTheme'.
 - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/C:/sdk/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'.
        widget.textTheme?.body1 ?? themeData.primaryTextTheme.body1;
                          ^^^^^
/C:/sdk/flutter/.pub-cache/hosted/pub.dartlang.org/flustars-0.2.6+1/lib/src/ui/my_app_bar.dart:254:63: Error: The getter 'body1' isn't defined for the class 'TextTheme'.
 - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/C:/sdk/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'.
        widget.textTheme?.body1 ?? themeData.primaryTextTheme.body1;
                                                              ^^^^^
lib/widgets/loading_dialog/loading_dialog.dart:290:45: Error: No named parameter with the name 'shadowThemeOnly'.
  final ThemeData theme = Theme.of(context, shadowThemeOnly: true);
                                            ^^^^^^^^^^^^^^^
/C:/sdk/flutter/packages/flutter/lib/src/material/theme.dart:106:20: Context: Found this candidate, but the arguments don't match.
  static ThemeData of(BuildContext context) {
                   ^^
lib/components/app_bar/mh_app_bar.dart:450:57: Error: No named parameter with the name 'nullOk'.
    final ScaffoldState scaffold = Scaffold.of(context, nullOk: true);
                                                        ^^^^^^
/C:/sdk/flutter/packages/flutter/lib/src/material/scaffold.dart:2142:24: Context: Found this candidate, but the arguments don't match.
  static ScaffoldState of(BuildContext context) {
                       ^^
/C:/sdk/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.2/lib/src/picture_provider.dart:49:45: Error: No named parameter with the name 'nullOk'.
    locale: Localizations.localeOf(context, nullOk: true),
                                            ^^^^^^
/C:/sdk/flutter/packages/flutter/lib/src/widgets/localizations.dart:413:17: Context: Found this candidate, but the arguments don't match.
  static Locale localeOf(BuildContext context) {
                ^^^^^^^^
/C:/sdk/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.2/lib/src/picture_stream.dart:167:11: Error: Superclass has no method named 'debugFillProperties'.
    super.debugFillProperties(properties);
          ^^^^^^^^^^^^^^^^^^^
/C:/sdk/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.2/lib/src/picture_stream.dart:171:30: Error: The method 'toStringShort' isn't defined for the class 'PictureStreamCompleter'.
 - 'PictureStreamCompleter' is from 'package:flutter_svg/src/picture_stream.dart' ('/C:/sdk/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.2/lib/src/picture_stream.dart').
Try correcting the name to the name of an existing method, or defining a method named 'toStringShort'.
      ifPresent: _completer?.toStringShort(),
                             ^^^^^^^^^^^^^
/C:/sdk/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.2/lib/src/picture_stream.dart:266:11: Error: Superclass has no method named 'debugFillProperties'.
    super.debugFillProperties(description);
          ^^^^^^^^^^^^^^^^^^^
/C:/sdk/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.3+4/lib/shared_preferences.dart:174:15: Error: The method 'setMockMethodCallHandler' isn't defined for the class 'MethodChannel'.
 - 'MethodChannel' is from 'package:flutter/src/services/platform_channel.dart' ('/C:/sdk/flutter/packages/flutter/lib/src/services/platform_channel.dart').
Try correcting the name to the name of an existing method, or defining a method named 'setMockMethodCallHandler'.
    _kChannel.setMockMethodCallHandler((MethodCall methodCall) async {
              ^^^^^^^^^^^^^^^^^^^^^^^^
/C:/sdk/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_slidable-0.5.4/lib/src/widgets/slidable.dart:246:20: Error: The method 'inheritFromWidgetOfExactType' isn't defined for the class 'BuildContext'.
 - 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('/C:/sdk/flutter/packages/flutter/lib/src/widgets/framework.dart').
Try correcting the name to the name of an existing method, or defining a method named 'inheritFromWidgetOfExactType'.
    return context.inheritFromWidgetOfExactType(SlidableData);
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/C:/sdk/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_slidable-0.5.4/lib/src/widgets/slidable.dart:541:17: Error: The method 'inheritFromWidgetOfExactType' isn't defined for the class 'BuildContext'.
 - 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('/C:/sdk/flutter/packages/flutter/lib/src/widgets/framework.dart').
Try correcting the name to the name of an existing method, or defining a method named 'inheritFromWidgetOfExactType'.
        context.inheritFromWidgetOfExactType(_SlidableScope);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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

1 participant