zeeshux7860 / ImageEditorPro

Image Editor Plugin with simple, easy support for image editing using Paints, Text, Filters, Emoji and Sticker like stories.
https://pub.dev/packages/image_editor_pro
MIT License
236 stars 157 forks source link

Xcode Build Fail - example app #46

Open Aristidios opened 2 years ago

Aristidios commented 2 years ago

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 commented 2 years ago

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 :)