GithubHelp home page GithubHelp logo

yande's Introduction

yande

一个 yande 的第三方 app .可以下载和查看 图片,并且收藏图片和将 tag 加入快捷搜索栏。

预览

目录结构

|-- android
|   |-- app // Android 代码
|-- lib
|   |-- dao // 数据库相关代码
|   |-- model // model 对象
|   |-- route // 路由 
|   |-- service // service 方法
|   |-- utils // 工具类
|   |-- view // view 
|   `-- widget // 公共组件
`-- test

build

  1. 运行 flutter packages get, 获取依赖.

  2. 运行 flutter packages pub run build_runner build , 生成 model 的 json factory。如果想直接打包请忽略 2,3 两个步骤。

  3. 修改 lib/model/ 中, *.g.dart 中 enum 对象的值. (由于枚举类型不好映射出值,直接修改,也可以通过一个 function 来处理枚举类型的 value, 解决这个问题,我认为修改为 index 的值是最简单的 )

    example:

    const _$ImageCollectStatusEnumMap = <ImageCollectStatus, dynamic>{
         ImageCollectStatus.star: 'star',
         ImageCollectStatus.unStar: 'unStar'
       };

    修改为

    const _$ImageCollectStatusEnumMap = <ImageCollectStatus, dynamic>{
      ImageCollectStatus.star: 0,
      ImageCollectStatus.unStar: 1
    };
  4. flutter build apk,在 build/app/outputs/apk/release/ 下找到生成的 apk.

第三方依赖

yande's People

Stargazers

 avatar  avatar 那菈のx avatar moli avatar  avatar  avatar 泠华 avatar 毛质低下的狐狸 avatar  avatar  avatar  avatar mmngg avatar  avatar Yang Cheng Shu avatar 绅士王某人 avatar  avatar Elissa avatar 姜俊峰 avatar  avatar  avatar .nomedia avatar aefba avatar  avatar berrysmithy avatar totzcc avatar Kvar Izunia avatar  avatar 文科 avatar  avatar  avatar Karel avatar ligulfzhou avatar narakai avatar 一米 avatar  avatar  avatar Siubeng avatar Hao Liu avatar Yuuta Liang avatar gwsl avatar 深红 avatar axhello avatar Zee Kim avatar  avatar DZG404 avatar luohaoyuan avatar Ann avatar  avatar

Watchers

 avatar  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.