GithubHelp home page GithubHelp logo

xuyisheng / flutter_dojo Goto Github PK

View Code? Open in Web Editor NEW
1.4K 34.0 200.0 17.29 MB

A beautiful design and useful project for Building a flutter knowledge architecture

License: GNU General Public License v3.0

Kotlin 0.03% Ruby 0.22% Swift 0.03% Objective-C 0.01% Dart 99.73%
flutter ui ui-components beginner-friendly design

flutter_dojo's Issues

项目下载下来有问题,运行不了

`Compiler message:
lib/widgets/touchinteractions/dragtarget.dart:73:28: Error: The argument type 'Null Function(double)' can't be assigned to the parameter type 'void Function(Object)'.

  • 'Object' is from 'dart:core'.
    onLeave: (double value) {
    ^
    Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
    build failed.

FAILURE: Build failed with an exception.

  • Where:
    Script 'D:\Flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 801

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'D:\Flutter\flutter\bin\flutter.bat'' finished with non-zero exit value 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.`

项目报错

Describe the bug
Flutter版本1.22.3,项目运行不了

image

Not found: 'package:image/image.dart' import 'package:image/image.dart' as image;

Compiler message:
Error: Could not resolve the package 'image' in 'package:image/image.dart'.
lib/category/animation/simulation/particle.dart:9:8: Error: Not found: 'package:image/image.dart'
import 'package:image/image.dart' as image;
^
lib/category/animation/simulation/particle.dart:92:28: Error: Type 'image.Image' not found.
void separatePixels(List<image.Image> blankLayers, image.Image fullImage, int width, int height) {
^^^^^^^^^^^
lib/category/animation/simulation/particle.dart:92:54: Error: Type 'image.Image' not found.
void separatePixels(List<image.Image> blankLayers, image.Image fullImage, int width, int height) {
^^^^^^^^^^^
lib/category/animation/simulation/particle.dart:103:10: Error: Type 'image.Image' not found.
Future<image.Image> convertWidget2Image() async {
^^^^^^^^^^^
lib/category/animation/simulation/particle.dart:111:30: Error: Type 'image.Image' not found.
Widget convertImage2Widget(image.Image png) {
^^^^^^^^^^^
lib/category/animation/simulation/particle.dart:82:11: Error: 'Image' isn't a type.
image.Image fullImage = await convertWidget2Image();
^^^^^
lib/category/animation/simulation/particle.dart:85:16: Error: 'Image' isn't a type.
List<image.Image> blankLayers = List.generate(widget.numberOfLayers, (i) => image.Image(width, height));
^^^^^
lib/category/animation/simulation/particle.dart:85:81: Error: Method not found: 'Image'.
List<image.Image> blankLayers = List.generate(widget.numberOfLayers, (i) => image.Image(width, height));
^^^^^
lib/category/animation/simulation/particle.dart:92:34: Error: 'Image' isn't a type.
void separatePixels(List<image.Image> blankLayers, image.Image fullImage, int width, int height) {
^^^^^
lib/category/animation/simulation/particle.dart:92:60: Error: 'Image' isn't a type.
void separatePixels(List<image.Image> blankLayers, image.Image fullImage, int width, int height) {
^^^^^
lib/category/animation/simulation/particle.dart:108:12: Error: Method not found: 'decodeImage'.
return image.decodeImage(pngBytes);
^^^^^^^^^^^
lib/category/animation/simulation/particle.dart:111:36: Error: 'Image' isn't a type.
Widget convertImage2Widget(image.Image png) {
^^^^^
lib/category/animation/simulation/particle.dart:112:41: Error: Method not found: 'encodePng'.
Uint8List data = Uint8List.fromList(image.encodePng(png));
^^^^^^^^^
lib/category/widgets/touchinteractions/dragtarget.dart:86:28: Error: The argument type 'Null Function(double)' can't be assigned to the parameter type 'void Function(Object)'.

  • 'Object' is from 'dart:core'.
    onLeave: (double value) {
    ^

> Could not download kotlin-reflect.jar (org.jetbrains.kotlin:kotlin-reflect:1.3.21)

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':shared_preferences'.
> Could not resolve all artifacts for configuration ':shared_preferences:classpath'.
   > Could not download kotlin-reflect.jar (org.jetbrains.kotlin:kotlin-reflect:1.3.21)
      > Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.3.21/kotlin-reflect-1.3.21.jar'.
         > Could not GET 'https://d29vzk4ow07wi7.cloudfront.net/a3065c822633191e0a3e3ee12a29bec234fc4b2864a6bb87ef48cce3e9e0c26a?response-content-disposition=attachment%3Bfilename%3D%22kotlin-reflect-1.3.21.jar%22&Policy=eyJTdGF0ZW1lbnQiOiBbeyJSZXNvdXJjZSI6Imh0dHAqOi8vZDI5dnprNG93MDd3aTcuY2xvdWRmcm9udC5uZXQvYTMwNjVjODIyNjMzMTkxZTBhM2UzZWUxMmEyOWJlYzIzNGZjNGIyODY0YTZiYjg3ZWY0OGNjZTNlOWUwYzI2YT9yZXNwb25zZS1jb250ZW50LWRpc3Bvc2l0aW9uPWF0dGFjaG1lbnQlM0JmaWxlbmFtZSUzRCUyMmtvdGxpbi1yZWZsZWN0LTEuMy4yMS5qYXIlMjIiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE1ODIyNjk2Mzh9LCJJcEFkZHJlc3MiOnsiQVdTOlNvdXJjZUlwIjoiMC4wLjAuMC8wIn19fV19&Signature=c-T3jrsJeAtFfbjH7FwfvHRBv6k5hUxL3lFdTJfMPAIUBWs39--HLFfHst1NGYJSA629BLF7LM-RWa3U2kEt3GSsqHQMf47I97XRXR7sUVT9RNc-fTL1SY6gNKBGCSnvvV~5pwbAG6fixZTougP83K7U46ogJu~uU4m5GH2HqNB5qkZo6dB47pTj8MvRrFvX6rX3uxJBKKN0Jz598NKU-euqjQiiAkyGM9RzQ6Y9vJ2EpSbuj4dS1gDJgHEAUMSz3cOaZo9M6o4vqSTOj8EYB-2~eZFnmsLnHrBtTJAmRLOJoTMTJr3W6IYK3H8guscL6TsTIK8LK2Oz8ULwgUxPvw__&Key-Pair-Id=APKAIFKFWOMXM2UMTSFA'.
            > Received close_notify during handshake
> Failed to notify project evaluation listener.
   > Could not get unknown property 'android' for project ':shared_preferences' of type org.gradle.api.Project.
   > Could not find method implementation() for arguments [project ':shared_preferences_macos'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
   > Could not find method implementation() for arguments [project ':shared_preferences_web'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

界面超出bug

Describe the bug
ItemLayout这个布局中,和Overflow还有flutter feed 列表

run flutter doctor

image
image
Uploading image.png…

兄弟,你的图标就离谱

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

错误的路径导致App内无法查看源码

源文件的名称是下划线区分单词,而跳转markdown显示源代码的时候却是
MaterialPageRoute( builder: (context) => MarkdownPage(codePath + title.toLowerCase() + '.dart'), )
直接将‘页面标题’转为小写字母,导致很多界面,点击查看源码的时候打开的路径异常而无法获取到正确的源码文件,从而没法实现跳转。

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.