Giter VIP home page Giter VIP logo

1691665955 / flutter_deer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from simplezhli/flutter_deer

0.0 1.0 0.0 27.98 MB

🦌 Flutter 练习项目(包括集成测试、可访问性测试)。内含完整UI设计图,更贴近真实项目的练习。Flutter practice project. Includes a complete UI design and exercises that are closer to real projects.

License: Apache License 2.0

Java 0.71% Ruby 0.76% Objective-C 0.01% Dart 97.96% HTML 0.19% Swift 0.37%

flutter_deer's Introduction

Flutter Deer

本项目为个人学习Flutter的练习项目。

通过设置、修改、组合自带部件以及自定义来实现具体的设计效果,满足日常开发的需求。

本项目设计图见design目录,你可以通过我提供的设计图有目标的去练习。所有的实现仅是个人的学习理解,如果有更好的实现方案欢迎交流。

预览

部分页面效果如下:

觉得还可以的话,来个Star、Fork支持一波!有问题欢迎提Issue。

实现内容

  • mvp模式
  • 使用provider (4.x 版本)做状态管理
  • 基于dio (3.x 版本)的网络请求封装
  • 完整的集成测试、可访问性测试。
  • 支持深色模式
  • 本地化(感谢 @ghedwards)
  • 使用Sliver 系列组件实现复杂滚动效果
  • 使用高德地图定位选择地址(支持Web)
  • 输入框等部件的处理封装
  • 下拉刷新 + 上拉加载更多
  • 应用检查更新
  • PopupWindow
  • 扫码功能(barcode_scan插件)
  • 菜单切换动画(圆形扩散、3D翻转)
  • 侧滑删除
  • 城市选择
  • 类似京东选择城市的三级联动
  • 各种自定义Dialog
  • 列表头部吸顶
  • 密码输入键盘
  • 验证码输入框
  • 自定义简易日历
  • 曲线图及饼状图
  • 模块化路由管理
  • 更多的细节优化

具体可以下载体验:

Android版安装包:点击下载,安装密码:111111

iOS需要自行下载代码运行。

项目运行环境

Build Status

1. Flutter version 1.22.1
 
2. Dart version 2.10.1

注意事项

  • debug模式下会有部分卡顿现象,这属于正常现象。良好的体验需要打release 包。 iOS可以执行命令flutter build ios 以创建release版本。 Android可以执行命令flutter build apk 以创建release版本。

  • 项目运行有问题可以在iOS问题汇总Android问题汇总中尝试寻找解决办法。

  • 由于部分插件的原因,本项目在web上支持不完善(主要为功能方面,UI问题不大)。有兴趣的可自行运行体验。

  • 可以执行集成测试命令flutter drive --target=test_driver/driver.dart 查看功能演示。

  • 因为页面有点多,一开始可能会导致页面无法与设计图对应上。我在代码注释中有添加设计图的相对路径,可以搜索或查找到对应页面,希望对你有帮助。

  • 本项目使用FlutterJsonBeanFactory插件来生成Bean。FlutterJsonBeanFactory插件使用可以查看这篇文章

心得总结(推荐阅读)

使用到的三方库

功能
dio 网络库
provider 状态管理
flutter_2d_amap 高德2D地图
cached_network_image 图片加载
fluro 路由管理
flutter_oktoast Toast
common_utils Dart 常用工具类库
flutter_slidable 侧滑删除
flustars Flutter 常用工具类库
flutter_swiper Flutter 轮播组件
url_launcher 启动URL的插件
image_picker 图片选择插件
rxdart Dart的响应式扩展
webview_flutter WebView插件
keyboard_actions 处理键盘事件
sticky_headers 列表悬浮头
azlistview 城市选择列表
date_utils 常用的日期工具类
bezier_chart 曲线图表
sprintf 格式化String
barcode_scan 扫码功能
intl 本地化

详细内容可以参看pubspec.yaml文件

后续计划:

  • 添加地图功能,具体实现插件见 flutter_2d_amap

  • 下拉刷新 + 上拉加载更多

  • 引入状态管理,预计使用 provider

  • 页面添加设计图路径注释,方便寻找对应的设计图。

  • 项目中有使用这一套框架及组件,会同步修复及优化遇到的问题。

  • 添加集成测试。

  • 深色模式支持。

  • 添加Semantics(语义)

  • Web端支持。

已知问题:

  • 1.17.0已知问题(#25767 #38323 #47191)。

  • ListView在没有设置分割线的情况下,个别Item之间存在大约1像素的间隔(像素对齐问题)。

  • 1.17.0已修复。在iOS手机上开启深色模式时,无法将状态栏文字修改为黑色

  • 1.12.13已知问题(#47804 #47270 #47635 #47137 #47462 #47804 #47021)。

  • 1.12.13已修复。在1.9.1上,TextField在语言环境为中文时,光标与输入文字不居中显示,可暂时使用textBaseline: TextBaseline.alphabetic 处理此问提。

  • 1.9.1已支持,使用keyboardType: TextInputType.visiblePassword即可。输入框在不设置obscureText属性的情况下(false),无法弹出密码模式键盘,可暂时使用BlacklistingTextInputFormatter去除可能会输入的中文。

Thanks For

License

Copyright 2019 simplezhli

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

flutter_deer's People

Contributors

ghedwards avatar imgbotapp avatar perry14 avatar simplezhli 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.