Git Product home page Git Product logo

flutter01's Introduction

app_head

flutter_luckin_coffee

flutter luckin coffee application(仿瑞幸咖啡)

特别提醒

作者写这个的时候,flutter最高版本是1.7.x。现在好像已经是1.12.x了吧,所以一定要切换flutter版本,不然可能出现插件之间不兼容的情况。另外暂时没有升级flutter版本的打算。

api工厂数据克隆id - 22511

目录

前言

Q:为什么会有这个项目?

了解到了flutter这个框架,并且和rn和uniapp的实现跨平台的思路完全不一样。做了一些demo之后,感觉挺有意思的,所以想做一个完整的项目,体验学习一下。

Q:为什么用luckin coffee?

luckin coffee在网上能搜索到开源的原型+设计图,简直方便的不行。luckin coffee原型+设计图

Q:数据从哪里来?

api工厂配置商城数据,网站提供接口。

flutter版本信息

flutter --verison
Flutter 1.9.1+hotfix.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 68587a0916 (7 weeks ago) • 2019-09-13 19:46:58 -0700
Engine • revision b863200c37
Tools • Dart 2.5.0

扫码下载体验 - ios/android都可下载 仅安卓可直接体验

没做过ios版本管理的,以为只要上传到蒲公英就可以了。结果ios开发版需要添加开发者才能体验,所以ios只能拉代码来体验了。

密码:meetqy

有bug欢迎提issues。

安装

这个项目使用 flutter. 请确保你本地安装了它们。 代码回退 git reset --hard 78910062997c3a836feee883712c241a5fd22983

环境变量

*\flutter\bin

android/gradle.properties文件配置

org.gradle.jvmargs=-Xmx1536M android.useAndroidX=true android.enableJetifier=true android.enableR8=true

  1. 检查版本号是否正确
flutter --version
  1. 运行一下命令查看是否需要安装其他依赖
flutter doctor
  1. 运行启动
flutter pub get
flutter run

相关插件

插件 说明
flutter_swiper 轮播图
provider 状态管理
pull_to_refresh 上拉加载,下拉刷新
dio 网络请求
json_annotation+json_serializable json序列化
fluttertoast toast
shared_preferences 本地缓存
iconfont_dart 快速将iconfont生成项目中可以直接调用的icon
color_dart 配合vscode插件在代码中显示颜色

待完善

  • 菜单页面锚点功能未实现
  • 代码不符合开发规范(进行中...)
  • 订单模块联调
  • 新增用户管理模块

近期计划

  • 重构request模块
  • 新增邮箱注册页面
  • 新增邮箱登录页面
  • 新增邮箱登录联调
  • 新增邮箱注册联调
  • 订单页面联调
  • 重构自定义appbar
  • 重构components(进行中...)

已解决问题

  • clone代码启动白屏

版本日志

维护者

@meetqy.

欢迎PR

非常欢迎一起学习flutter! 提一个Issue 或者提交一个 Pull Request.

预览

|

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.