GithubHelp home page GithubHelp logo

Comments (9)

mabDc avatar mabDc commented on August 18, 2024

you can replace with

file_chooser: ^0.1.6

ps: file_chooser is the plugin for selecting file in desktop(windows, mac, linux)
you can find other plugin to achieve the goal

from eso.

UniqueDing avatar UniqueDing commented on August 18, 2024

thanks but can help me other problem
I don't understand flutter....
my os: arch linux
Flutter 1.26.0-1.0.pre • channel dev • https://github.com/flutter/flutter.git
Framework • revision 63062a6443 (4 weeks ago) • 2020-12-13 23:19:13 +0800
Engine • revision 4797b06652
Tools • Dart 2.12.0 (build 2.12.0-141.0.dev)

I changed intl:^0.16.1 to intl:0.17.0-nullsafety.2

then

/opt/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root
/opt/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk_product/ --target=flutter --no-print-incremental-dependencies
-Ddart.vm.profile=false -Ddart.vm.product=true --aot --tfa --packages /home/uniqueding/Github/eso/.dart_tool/package_config.json
--output-dill /home/uniqueding/Github/eso/.dart_tool/flutter_build/7a9dc904406dc0b7a21de6335bb2fe1e/app.dill --depfile
/home/uniqueding/Github/eso/.dart_tool/flutter_build/7a9dc904406dc0b7a21de6335bb2fe1e/kernel_snapshot.d package:eso/main.dart
[   +1 ms] [+3975 ms] lib/ui/edit/local_cupertion_delegate.dart:25:7: Error: The non-abstract class '_DefaultCupertinoLocalizations' is
missing implementations for these members:
[        ] [   +3 ms]  - CupertinoLocalizations.searchTextFieldPlaceholderLabel
[        ] [        ] Try to either
[        ] [        ]  - provide an implementation,
[        ] [        ]  - inherit an implementation from a superclass or mixin,
[        ] [        ]  - mark the class as abstract, or
[        ] [        ]  - provide a 'noSuchMethod' implementation.
[        ] [        ] class _DefaultCupertinoLocalizations extends CupertinoLocalizations {
[        ] [        ]       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[        ] [        ] /opt/flutter/packages/flutter/lib/src/cupertino/localizations.dart:237:14: Context:
'CupertinoLocalizations.searchTextFieldPlaceholderLabel' is defined here.
[        ] [        ]   String get searchTextFieldPlaceholderLabel;
[        ] [   +2 ms]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[        ] [+5411 ms] lib/page/search_page.dart:369:17: Error: Method not found: 'APIFromRUle.clearNextUrl'.
[   +2 ms] [        ]     APIFromRUle.clearNextUrl();
[        ] [        ]                 ^^^^^^^^^^^^
[        ] [   +7 ms] lib/page/search_page.dart:559:17: Error: Method not found: 'APIFromRUle.clearNextUrl'.
[        ] [        ]     APIFromRUle.clearNextUrl();
[        ] [        ]                 ^^^^^^^^^^^^
[        ] [+3832 ms] lib/model/discover_page_controller.dart:51:17: Error: Method not found: 'APIFromRUle.clearNextUrl'.
[        ] [        ]     APIFromRUle.clearNextUrl();
[        ] [        ]                 ^^^^^^^^^^^^
[        ] [   +2 ms] lib/model/discover_page_controller.dart:183:17: Error: Method not found: 'APIFromRUle.clearNextUrl'.
[        ] [        ]     APIFromRUle.clearNextUrl();
[        ] [        ]                 ^^^^^^^^^^^^
[        ] [   +8 ms] lib/ui/widgets/right_sheet.dart:20:34: Error: No named parameter with the name 'shadowThemeOnly'.
[        ] [        ]         theme: Theme.of(context, shadowThemeOnly: true),
[        ] [        ]                                  ^^^^^^^^^^^^^^^
[        ] [        ] /opt/flutter/packages/flutter/lib/src/material/theme.dart:107:20: Context: Found this candidate, but the arguments
don't match.
[        ] [        ]   static ThemeData of(BuildContext context) {
[        ] [        ]                    ^^
[        ] [+10811 ms] Persisting file store
[        ] [  +28 ms] Done persisting file store
[        ] [   +7 ms] Target kernel_snapshot failed: Exception
[        ]            #0      KernelSnapshot.build (package:flutter_tools/src/build_system/targets/common.dart:278:7)
[        ]            <asynchronous suspension>
[        ]            #1      _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart:796:9)
[        ]            <asynchronous suspension>
[        ]            #2      Future.wait.<anonymous closure> (dart:async/future.dart)
[        ]            <asynchronous suspension>
[        ]            #3      _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:734:32)
[        ]            <asynchronous suspension>
[        ]            #4      Future.wait.<anonymous closure> (dart:async/future.dart)
[        ]            <asynchronous suspension>
[        ]            #5      _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:734:32)
[        ]            <asynchronous suspension>
[        ]            #6      Future.wait.<anonymous closure> (dart:async/future.dart)
[        ]            <asynchronous suspension>
[        ]            #7      _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:734:32)
[        ]            <asynchronous suspension>
[        ]            #8      FlutterBuildSystem.build (package:flutter_tools/src/build_system/build_system.dart:563:16)
[        ]            <asynchronous suspension>
[        ]            #9      AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:220:32)
[        ]            <asynchronous suspension>
[        ]            #10     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1134:12)
[        ]            <asynchronous suspension>
[        ]            #11     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:986:27)
[        ]            <asynchronous suspension>
[        ]            #12     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[        ]            <asynchronous suspension>

from eso.

mabDc avatar mabDc commented on August 18, 2024

新版本依赖和代码要自己动手,如果你flutter不熟悉,我建议你用git checkout切换历史版本,切换到今年八月份的版本,代码会简单易懂,app功能也简单易懂

from eso.

mabDc avatar mabDc commented on August 18, 2024

比如git checkout c777db9dc3c6dc5094e639ccc9af1ffd56441a34

from eso.

mabDc avatar mabDc commented on August 18, 2024

谷歌api改很快的,想用最新版,就自己看情况改,看报错提示

from eso.

UniqueDing avatar UniqueDing commented on August 18, 2024

好的,非常感谢ฅ۶•ﻌ•♡

from eso.

UniqueDing avatar UniqueDing commented on August 18, 2024

我想寻求一个新的帮助,还可以帮助我一下吗
我下载了编译好的文件eso.linux.deepin,运行时出现这个错误

flutter: Invalid argument(s): Cannot find executable for xdg-user-dir.flutter: Invalid argument(s): Cannot find executable for xdg-user-dir.

from eso.

mabDc avatar mabDc commented on August 18, 2024

不记得了,linux版本我用的deepin 20正式版编译的。

from eso.

mabDc avatar mabDc commented on August 18, 2024

新版本编译是正常的 需要flutter 1.x 大概1.21.x到1.26.x比较容易

from eso.

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.