4 Star 9 Fork 5

木杉叔 / flutter_base_framework

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
BSD-3-Clause

flutter_base_framework

介绍

flutter项目基础脚手架,配置一些网络,路由,封装常用的插件

安装教程

目前项目基于flutter3.0.1的sdk版本,使用的空安全 安装flutter教程:https://flutter.cn/docs/get-started/install

目录结构

  • config - 配置层
项目所有集中配置
  • constants - 常量
存储常量
  • core - 核心
核心封装一些基础类 网络 路由 通道等
  • data - 数据类
解析数据实体,以及系统内部自定义的业务类
  • mixin - 混合类
封装一些通用的操作混合方法
  • model - 模型
在数据访问的基础上进行解析实体返回数据
  • repository - 数据访问
与数据接口交互
  • view model - mvvm架构中view_model
ViewModel是连接View和Model的中间提,model不与视图做对应的交互
  • route - 路由
定义路由获取的地方
  • utils - 工具
主要是封装一些业务上需要使用的api以及原生插件,原则上绝不与任何业务层做任何融合,相当于螺丝 扳手组合,粘合操作
  • widget - 适用于全局而非页面共享控件
全局控件,不与局部页面控件混合做污染,不做任何涉及业务的逻辑混合,只做封装给到业务层去调用
  • app.dart - 根实例
注册整个flutter根实例
  • main.dart - 开发启动入口
启动入口

快速开始

  1. git clone 项目
  2. flutter pub get
  3. flutter run

计划

  • flutter路由2.0
  • 基于dio的网络请求
  • flutterEventBus实现
  • 常用的原生插件封装 sp toast工具 device_info logger封装等
  • bugly日志收集
  • bugly安卓版本更新下发
  • 网络图片支持磁盘缓存
  • 针对安卓设备动态设置ImageCache大小
  • 针对苹果设备动态设置ImageCache大小
  • 实现针对页面级别的性能数据收集
BSD 3-Clause License Copyright (c) 2022, 木杉叔 All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

简介

flutter项目基础脚手架,配置一些网络 封装常用的插件以及通用的工具类,以及实践一些个人的想法 展开 收起
BSD-3-Clause
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Dart
1
https://gitee.com/mushanshu/flutter_base_framework.git
git@gitee.com:mushanshu/flutter_base_framework.git
mushanshu
flutter_base_framework
flutter_base_framework
master

搜索帮助