Coder Social home page Coder Social logo

ysysdzz / jd_mall_flutter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from guoguodad/jd_mall_flutter

0.0 0.0 0.0 36.09 MB

高仿某东商城flutter版本,持续更新... 同款Android Kotlin版本( https://github.com/GuoguoDad/jd_mall.git )

Ruby 0.45% Objective-C 0.01% Kotlin 0.04% Dart 99.39% Swift 0.11%

jd_mall_flutter's Introduction

前言

高仿京东商城flutter版本,个人学习flutter项目

  1. 使用flutter_redux状态管理
  2. 网络使用dio进行封装
  3. 使用node项目mock服务端接口(mock_server目录)
  4. 目前实现了首页、分类、购物车、我的,商品详情、webview加载模块...

flutter 简介

Flutter 是 Google 推出的一款开源的 UI 工具包,用于构建高性能、高保真度的移动、Web 和桌面应用程序。Flutter 使用自己的渲染引擎来绘制 UI,从而提供更快的性能和更好的用户体验。Flutter 还提供了丰富的构建工具、库和插件,使得开发者可以更快速地构建应用程序。

image

Flutter框架具有如下的一些特点:

  1. 渲染引擎可以提供高性能的 UI 渲染,支持 60fps 的动画效果,性能堪比原生。
  2. 多端体验一致性强,因为他有自己的渲染引擎,脱离原生那套UI束缚。
  3. 使用 Dart 语言,具有强类型、高效和易于学习的特点,基本上,你会写JS,这个上手很快。
  4. 支持快速迭代和热重载,使得开发者可以更快速地进行开发,Ctrl+S马上就看到你的变更。
  5. 支持跨平台开发,可以在 Android、iOS、Web 和桌面上运行,真正的全平台,可谓是一网打尽。
  6. 提供了丰富的 UI 组件和插件,使得开发者可以更快速地构建应用程序。社区插件也非常丰富 ,pub.dev,基本上你能想到的所有插件他都有,就是算没有,自己懂Android和iOS开发,封装一个也非常简单,都有套路模版。

flutter_redux

image

  1. 封装需要共享的数据
  2. 封装需要发送的消息(同时也有区分动作的作用)
  3. 数据修改与分发
  4. 声明 store
  5. 接受与更新
  6. 触发

启动mock_server

  1. cd mock_server
  2. 执行 npm i 安装依赖
  3. npm run mock

运行

运行开发环境应用程序

  flutter run -t lib/main_dev.dart

运行生产环境应用程序

  flutter run -t lib/main_prd.dart

打包开发环境应用程序

  flutter build apk -t lib/main_dev.dart
  flutter build ios -t lib/main_dev.dart

打包生产环境应用程序

  flutter build apk -t lib/main_prd.dart
  flutter build ios -t lib/main_prd.dart

性能分析

  flutter run --profile lib/main_prd.dart

效果

首页

image

image

分类

image

image

购物车

image

image

我的

image

image

商品详情

image

image

webview 加载h5

image

image

第三方框架

功能
dio 网络框架
shared_preferences 本地数据缓存
flutter_redux redux
device_info 设备信息
connectivity 网络链接
json_annotation json模板
json_serializable json模板
photo_view 图片预览
path_provider 本地路径
cached_network_image 图片显示

声明

⚠️本APP仅限于学习交流使用,请勿用于其它商业用途

⚠️项目中使用的图片及字体等资源如有侵权请联系作者删除

⚠️如使用本项目代码造成侵权与作者无关

jd_mall_flutter's People

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.