Git Product home page Git Product logo

flutter_app's Introduction

flutter_app

 简单的脚手架,没有过度引用第三方库,都是基于基础组件进行封装。
 目前实际项目中能用到的东西都进行了二次封装,旨在于节省开发时间,
 达到快速开发的目的。

1.目录结构

├── android
├── ios
├── lib
│   ├── api                 网络请求相关
│   ├── base                base类封装
│   ├── model               实体类
│   ├── utils               工具类
│   ├── widget              控件封装
│   ├── views               页面
│   ├── entity_factory.dart 一键json转实体记录
│   ├── main.dart           入口
├── pubspec.lock
├── pubspec.yaml            配置文件


2.功能点封装

  • 网络请求 dio封装
  • 快捷创建解析实体类工具
  • 添加启动页
  • 添加左滑抽屉
  • 添加底部导航栏
  • 底部导航栏 + 内容联动
  • 添加网络请求更新数据 + json转实体
  • 添加可以上拉加载,下拉刷新的listView
  • 路由封装
    • 添加动画 进入 从左到右 返回 从右到左
    • 带值跳转
    • 接收上个页面返回值
    • 跳转关闭当前页面
    • 跳转不关闭当前页面
  • 去掉底部导航栏内容联动改为保持页面状态
  • 动态申请权限
  • 监听返回键,点击两下退出程序
  • 渐变按钮封装
    • 支持宽高定义
    • 支持文字定义
  • 事件总线封装(非粘性)
  • 新增屏幕适配工具
  • BaseWidget封装
    • 辅助工具类类BaseFunction
    • 统一管理页面网络请求,页面关闭取消掉本页面所有网络请求
    • 添加子类抽象方法 onCreate() onDestroy()
    • 加载框统一封装 showLoading() hideLoading()
    • 网络请求中进度框提供可关闭 不可关闭两种方案
    • 集成功能性控件,自页面无需引入直接使用
    • 页面跳转:1.跳转可接受返回值不关闭当前页面 2.跳转关闭当前页面
    • 吐司 系统提示Toast
    • listView加载零部件(实际在BaseFunction中)

flutter_app's People

Contributors

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