wuxiaolong / flutter_movie Goto Github PK
View Code? Open in Web Editor NEWA new Flutter application.
A new Flutter application.
加载更多怎么做的
The following message was thrown during layout:
A RenderFlex overflowed by 23 pixels on the bottom.
The overflowing RenderFlex has an orientation of Axis.vertical.
import 'package:flutter/services.dart'; 颜色是灰色的,下载了两次 怎么导入都不行。。。哎
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Exit code 1 from: D:\MyProjects\Flutter\Demo\flutter_movie\android\gradlew.bat -v:
Unzipping C:\Users\Lucifer.gradle\wrapper\dists\gradle-4.1-all\bzyivzo6n839fup2jbap0tjew\gradle-4.1-all.zip to C:\Users\Lucifer.gradle\wrapper\dists\gradle-4.1-all\bzyivzo6n839fup2jbap0tjew
Exception in thread "main" java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:219)
at java.util.zip.ZipFile.(ZipFile.java:149)
at java.util.zip.ZipFile.(ZipFile.java:163)
at org.gradle.wrapper.Install.unzip(Install.java:214)
at org.gradle.wrapper.Install.access$600(Install.java:27)
at org.gradle.wrapper.Install$1.call(Install.java:74)
at org.gradle.wrapper.Install$1.call(Install.java:48)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Exited (sigterm)
新生成的项目倒是没问题
当电影没有上映时,评分为 0,会导致进入详情页报错,修改方法:
把 movie_detail.dart
中的第 54 行修改为:
average: map['rating']['average']==0 ? 0.0 : map['rating']['average'] ,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.