Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Target of URL doesn't exist #118

Unanswered
luke1128qq asked this question in Q&A
Discussion options

I want to import 「image_editor 1.3.0」 into my FlutterFlow project.
However, after importing it, I keep encountering the error message:

"Target of URI doesn't exist: 'package:flutter_image_editor_example/home_page.dart'. Try creating the file referenced by the URI, or try using a URI for a file that does exist."

Even when I add the dependency "flutter_image_editor: ^2.1.0," the problem remains unsolved.

this is my code , help me plz

// Automatic FlutterFlow imports
import '/flutter_flow/flutter_flow_theme.dart';
import '/flutter_flow/flutter_flow_util.dart';
import '/custom_code/widgets/index.dart'; // Imports other custom widgets
import '/flutter_flow/custom_functions.dart'; // Imports custom functions
import 'package:flutter/material.dart';
// Begin custom widget code
// DO NOT REMOVE OR MODIFY THE CODE ABOVE!

import 'dart:typed_data';
import 'package:flutter/services.dart';
import 'package:flutter_image_editor_example/home_page.dart';
import 'package:oktoast/oktoast.dart';

class ImgEditor extends StatefulWidget {
const ImgEditor({
Key? key,
this.width,
this.height,
}) : super(key: key);

final double? width;
final double? height;

@OverRide
_ImgEditorState createState() => _ImgEditorState();
}

class _ImgEditorState extends State {
@OverRide
Widget build(BuildContext context) {
return OKToast(
position: ToastPosition.bottom,
child: MaterialApp(
home: IndexPage(),
),
);
}
}

Future loadFromAsset(String key) async {
final ByteData byteData = await rootBundle.load(key);
return byteData.buffer.asUint8List();
}

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /