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

Xcode Build Fail - example app #46

Open
Aristidios opened this issue Nov 7, 2021 · 1 comment
Open

Xcode Build Fail - example app #46

Aristidios opened this issue Nov 7, 2021 · 1 comment

Comments

@Aristidios
Copy link

Aristidios commented Nov 7, 2021

Using the Example app the Xcode Build fails :

Failed to build iOS app


Error output from Xcode build:


↳


    ** BUILD FAILED **


Xcode's output:


↳


: Error: The argument type 'PointerEvent' can't be assigned to the parameter type 'PointerDownEvent'.
../…/src/hsv_picker.dart:731

- 'PointerEvent' is from 'package:flutter/src/gestures/events.dart' ('../../../FlutterSDK/flutter/packages/flutter/lib/src/gestures/events.dart').
package:flutter/…/gestures/events.dart:1

- 'PointerDownEvent' is from 'package:flutter/src/gestures/events.dart' ('../../../FlutterSDK/flutter/packages/flutter/lib/src/gestures/events.dart').
package:flutter/…/gestures/events.dart:1

        super.addAllowedPointer(event);


                                ^


: Error: The getter 'body2' isn't defined for the class 'TextTheme'.
../…/lib/smart_tabbar.dart:701

- 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../FlutterSDK/flutter/packages/flutter/lib/src/material/text_theme.dart').
package:flutter/…/material/text_theme.dart:1

    Try correcting the name to the name of an existing getter, or defining a getter or field named 'body2'.


                themeData.primaryTextTheme.body2)


                                           ^^^^^


: Error: The getter 'body2' isn't defined for the class 'TextTheme'.
../…/lib/smart_tabbar.dart:706

- 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../FlutterSDK/flutter/packages/flutter/lib/src/material/text_theme.dart').
package:flutter/…/material/text_theme.dart:1

    Try correcting the name to the name of an existing getter, or defining a getter or field named 'body2'.


                themeData.primaryTextTheme.body2)


                                           ^^^^^


: Error: The getter 'body2' isn't defined for the class 'TextTheme'.
../…/lib/smart_tabbar.dart:714

- 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../FlutterSDK/flutter/packages/flutter/lib/src/material/text_theme.dart').
package:flutter/…/material/text_theme.dart:1

    Try correcting the name to the name of an existing getter, or defining a getter or field named 'body2'.


            themeData.primaryTextTheme.body2.color;


                                       ^^^^^


    Failed to package /Users/Bob/ImageEditorPro-master 2/example.


    Command PhaseScriptExecution failed with a nonzero exit code


    note: Using new build system


    note: Planning


    note: Build preparation complete


    note: Building targets in parallel


Could not build the precompiled application for the device.





Error launching application on Coucou .


Exited (sigterm)



@jackeychina
Copy link

I have resolved it. You can download it from here - https://drive.google.com/file/d/1DV1OsriI0su3Is13j65NpOpabRlOhDTZ/view?usp=sharing

Now it will work with flutter 2.5

Enjoy :)

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