GithubHelp home page GithubHelp logo

hhy5277 / flutter_me Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bravekingzhang/flutter_me

0.0 1.0 0.0 8.32 MB

一个使用flutter开发的私人应用,主要就是玩一玩

Java 0.78% Ruby 4.58% Objective-C 1.60% Dart 93.03%

flutter_me's Introduction

douban_me

这不是flutter已经是bate2了,马上就release了,所以我就开始搞了

Getting Started

For help getting started with Flutter, view our online documentation.

目前就做了一个豆瓣电影列表的功能,代码量是相当少啊。

你将会学到

  1. 怎么样使用列表控件,Row控件,Column控件
  2. 怎么使用网络加载,异步操作怎么处理
  3. 实现加载更多
  4. 如何使用flutter布局,个人感觉相当好理解,Row控件,Column控件,ListView控件就能做出这个效果,我这是一个卡片
  5. 使用buildDefaultTabController容易的实现viewpager类似的东东
  6. 实现自定义控件 Ratingbar
  7. tab
  8. bottomNavigationBar
  9. 页面间的跳转。
  10. json2model代码自动生成

我这里遇到了一些坑

  1. 在ListView的item中使用横向ListView,导致运行不出来,因此那个换成了Row。
  2. 在使用column和row控件的时候,界面刷步出来,定位原因是因为里面存在不确定的rect的子控件导致, 因此解决的办法就是使用expande,或者flexable包裹,或者其他的方式能够明确子控件怎么占位,占多少位置。
  3. 切换代缓存的图片控件cacheImage出现问题,刷步出图片,解决办法,卸载安装包,重装,原因没有定位出

以下是运行截图了

2018-04-13 16_10_08

增加了段子页面

你可以学会, 1、弹框bottomModalDialog 2、

2018-04-15 21_36_35

安装包

安装包有8M。因为用原生的写会不至于有这么大,所以要看看究竟,其实很容易发现,flutter库占了很大部分,实际dex文件较小。 image

上传的源码中已经打好了apk,可以直接下载安装,ipa包没有打,打了没有越狱一般也安装不了的,苹果这套对开发者不是很友好。 image

注意事项

如果你想自己下载源码玩玩的话:

  1. config.dart 是需要你在showApi平台上自己申请appid和secretkey的
  2. android工程中的key.properties文件中的value需要你自己配置你的秘钥,具体打包方式参考dart.io文档中 Build and release for Android 这一节。

flutter_me's People

Contributors

bravekingzhang avatar hoollyzhang avatar

Watchers

 avatar

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.