Code Monkey home page Code Monkey logo

flutter_app_bili's Introduction

flutter_bili_app

设计一个网络库的思路:

  • 支持网络库,不干扰业务
  • 简单易用,支持配置来进行请求
  • Adapter 设计,可扩展
  • 统一异常和返回处理

底层 request 封装

  • 封装 HiNet 网络请求
  • 登录注册接口
  • 封装注册输入框
  • 登录、注册 页面

遗忘知识

flutter 的三种类型定义:class(类)、abstract class(抽象类)、 Mixin(混入)

class和abstract class与java中的差不多,mixin的类,能很好的对代码进行复用,也能让dart实现“伪多重继承”,同时又不会造成多重继承导致的菱形问题

dart 的 with、implements、extends

with:无需 super 关键字能直接调用父类方法或者属性

flutter_app_bili's People

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.