Comments (3)
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.
Same issue here!
from stories_editor.
İ 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)
- iOS : gallery doesn't work (only black screen) HOT 11
- Customization Input HOT 2
- Question On Images HOT 6
- Saving story as Draft/Gif/Video HOT 12
- Discard PopUp Overflow error HOT 1
- Please add option for upload video story and also for camera click images on story HOT 1
- Creating Mp4 taking to long using latest repo
- Gallery not working in both iOS and android device HOT 2
- suggestion : make giphy an optional feature HOT 1
- enhancement: add an option to pass image to the editor
- decreas size according to content
- How to save these & re-display so they'll be responsive
- Giphy API key in example
- images in iOS app not showing HOT 2
- gifs HOT 2
- Gallery not working on android 13 HOT 1
- Please give access to Delete Mp4 story branch
- How to edit image from url ?
- cannot open image gallery on iPhone.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stories_editor.