Code Monkey home page Code Monkey logo

Comments (3)

MarlonJD avatar MarlonJD commented on September 13, 2024

I added this to pubspec:

dependency_overrides:
  photo_manager: 2.1.4

then new errors come to us:

        ] stories_editor/lib/src/presentation/main_view/main_view.dart:154:48: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
[        ]  - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../flutter/flutter2/packages/flutter/lib/src/widgets/binding.dart').
[        ]       MediaQueryData.fromWindow(WidgetsBinding.instance!.window);
[        ]                                                ^
[        ] stories_editor/lib/src/presentation/main_view/main_view.dart:162:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
[        ]  - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../flutter/flutter2/packages/flutter/lib/src/widgets/binding.dart').
[        ]     WidgetsBinding.instance!.addPostFrameCallback((timeStamp) {
[        ]                    ^
[ +398 ms] ../../../.pub-cache/hosted/pub.dartlang.org/gallery_media_picker-0.0.7/lib/gallery_media_picker.dart:257:50: Error: The getter 'thumbData' isn't defined for the class
'AssetEntity'.
[        ]  - 'AssetEntity' is from 'package:photo_manager/src/types/entity.dart' ('../../../.pub-cache/hosted/pub.dartlang.org/photo_manager-2.1.4/lib/src/types/entity.dart').
[        ] Try correcting the name to the name of an existing getter, or defining a getter or field named 'thumbData'.
[        ]                               'thumbnail': asset.thumbData,
[        ]                                                  ^^^^^^^^^
[        ] stories_editor/lib/src/domain/sevices/save_as_gif_mp4.dart:23:54: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
[        ]  - 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('../../../flutter/flutter2/packages/flutter/lib/src/scheduler/binding.dart').
[        ]   final SchedulerBinding _binding = SchedulerBinding.instance!;
[        ]                                                      ^
[        ] stories_editor/lib/src/presentation/painting_view/painting.dart:25:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
[        ]  - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../flutter/flutter2/packages/flutter/lib/src/widgets/binding.dart').
[        ]     WidgetsBinding.instance!.addPostFrameCallback((timeStamp) {
[        ]                    ^
[        ] stories_editor/lib/src/presentation/painting_view/painting.dart:46:63: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
[        ]  - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../flutter/flutter2/packages/flutter/lib/src/widgets/binding.dart').
[        ]     var screenSize = MediaQueryData.fromWindow(WidgetsBinding.instance!.window);
[        ]                                                               ^
[        ] stories_editor/lib/src/presentation/painting_view/painting.dart:158:28: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
[        ]  - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../flutter/flutter2/packages/flutter/lib/src/widgets/binding.dart').
[        ]             WidgetsBinding.instance!.addPostFrameCallback((timeStamp) {
[        ]                            ^
[        ] stories_editor/lib/src/presentation/text_editor_view/TextEditor.dart:33:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
[        ]  - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../flutter/flutter2/packages/flutter/lib/src/widgets/binding.dart').
[        ]     WidgetsBinding.instance!.addPostFrameCallback((timeStamp) {
[        ]                    ^
[        ] stories_editor/lib/src/presentation/widgets/scrollable_pageView.dart:92:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
[        ]  - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../flutter/flutter2/packages/flutter/lib/src/widgets/binding.dart').
[        ]     WidgetsBinding.instance!.addPostFrameCallback((timeStamp) {});
[        ]                    ^
[ +297 ms] ../../../.pub-cache/hosted/pub.dartlang.org/modal_gif_picker-0.0.1/lib/src/widgets/giphy_search_view.dart:38:20: Warning: Operand of null-aware operation '?.' has type
'WidgetsBinding' which excludes null.
[        ]  - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../flutter/flutter2/packages/flutter/lib/src/widgets/binding.dart').
[        ]     WidgetsBinding.instance?.addPostFrameCallback((_) {
[        ]                    ^
[        ] stories_editor/lib/src/presentation/text_editor_view/widgets/top_text_tools.dart:30:38: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes
null.
[        ]  - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../flutter/flutter2/packages/flutter/lib/src/widgets/binding.dart').
[        ]                       WidgetsBinding.instance!.addPostFrameCallback((_) {
[        ]                                      ^
[        ] stories_editor/lib/src/presentation/text_editor_view/widgets/top_text_tools.dart:92:40: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes
null.
[        ]  - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../flutter/flutter2/packages/flutter/lib/src/widgets/binding.dart').
[        ]                         WidgetsBinding.instance!.addPostFrameCallback((_) {
[        ]                                        ^
[        ] stories_editor/lib/src/presentation/text_editor_view/widgets/top_text_tools.dart:103:40: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes
null.
[        ]  - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../flutter/flutter2/packages/flutter/lib/src/widgets/binding.dart').
[        ]                         WidgetsBinding.instance!.addPostFrameCallback((_) {
[        ]                                        ^
[  +98 ms] ../../../.pub-cache/hosted/pub.dartlang.org/gallery_media_picker-0.0.7/lib/src/widgets/thumbnail_widget.dart:58:25: Error: The getter 'thumbData' isn't defined for the class
'AssetEntity'.
[        ]  - 'AssetEntity' is from 'package:photo_manager/src/types/entity.dart' ('../../../.pub-cache/hosted/pub.dartlang.org/photo_manager-2.1.4/lib/src/types/entity.dart').
[        ] Try correcting the name to the name of an existing getter, or defining a getter or field named 'thumbData'.
[        ]           future: asset.thumbData,
[        ]                         ^^^^^^^^^
[  +99 ms] ../../../.pub-cache/hosted/pub.dartlang.org/gallery_media_picker-0.0.7/lib/src/widgets/decode_image.dart:33:37: Error: The method 'thumbDataWithSize' isn't defined for the class
'AssetEntity'.
[        ]  - 'AssetEntity' is from 'package:photo_manager/src/types/entity.dart' ('../../../.pub-cache/hosted/pub.dartlang.org/photo_manager-2.1.4/lib/src/types/entity.dart').
[        ] Try correcting the name to the name of an existing method, or defining a method named 'thumbDataWithSize'.
[        ]     final bytes = await coverEntity.thumbDataWithSize(thumbSize, thumbSize);

on top level build.gradle: change gradle to:

classpath 'com.android.tools.build:gradle:7.2.0'

then android/gradle/wrapper/gradle-wrapper.properties change this to:

distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip

I also upgraded android studio to chipmunk. But still no luck

from stories_editor.

tahaafg20 avatar tahaafg20 commented on September 13, 2024

Same issue here!

from stories_editor.

MarlonJD avatar MarlonJD commented on September 13, 2024

İ changed little bit this library. You can check my fork, and use this with

story_editor:
    path:
        git: repo
        ref: commit_hash

You can use master/main branch, dev brach is so much changes. I created pull request but there was no reply.

from stories_editor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.