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

I am not able to setup in my mac M1 . I have flutter 3 version. Plzz help me. I am getting a lot of errors #43

Closed
amanat-2003 opened this issue Aug 5, 2023 · 1 comment

Comments

@amanat-2003
Copy link

                      ^

: Error: Required named parameter 'minScrollExtent' must be provided.
scroll_metrics.dart:202
return FixedScrollMetrics(
^
: Context: Found this candidate, but the arguments don't match.
scroll_metrics.dart:142
FixedScrollMetrics({
^^^^^^^^^^^^^^^^^^
: Error: The method 'toMap' isn't defined for the class 'AxisDirection'.
scroll_metrics.dart:218

  • 'AxisDirection' is from 'package:flutter/src/painting/basic_types.dart' ('../../../sdks/flutter/packages/flutter/lib/src/painting/basic_types.dart').
    basic_types.dart:1
    Try correcting the name to the name of an existing method, or defining a method named 'toMap'.
    'axisDirection': axisDirection.toMap(),
    ^^^^^
    : Error: Enums can't be instantiated.
    scroll_metrics.dart:229
    axisDirection: AxisDirection.fromMap(map['axisDirection'] as Map<String,dynamic>),

                                 ^^^^^^^
    

: Error: Required named parameter 'minScrollExtent' must be provided.
scroll_metrics.dart:224
return FixedScrollMetrics(
^
: Context: Found this candidate, but the arguments don't match.
scroll_metrics.dart:142
FixedScrollMetrics({

@ybeshkarov
Copy link
Contributor

Hello @amanat-2003!

Please try with the latest Flutter 3.19.0 • channel stable • https://github.com/flutter/flutter.git.
And don't forget to run the commandsudo softwareupdate --install-rosetta --agree-to-license in your terminal according to Flutter documentation.

All works well for me.

@ybeshkarov ybeshkarov closed this as not planned Won't fix, can't repro, duplicate, stale Feb 21, 2024
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

2 participants