Skip to content

Build errors on macOS and Linux #22

@mz2

Description

@mz2

I am experiencing build errors when trying to build the example code of the following kind (loads more of these in the cargo build output:

  [ +676 ms] ../../../../../../lib/main_window.dart:7:1: Error: 'MenuItem' is imported from both 'package:flutter/src/widgets/platform_menu_bar.dart' and 'package:nativeshell/src/menu.dart'.
  [        ] import 'package:nativeshell/nativeshell.dart';

This is after I edited pubspec.yaml to set the SDK version to 2.17.0 or newer, since without doing that there were loads of these errors:

  [        ] ../../../../../../../flutter/packages/flutter/lib/src/gestures/multidrag.dart:440:5: Error: The 'super-parameters' language feature is disabled for this library.
  [        ] Try removing the package language version or setting the language version to 2.17 or higher.
  [        ]     super.kind,
  [        ]     ^^^^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions