1 Star 0 Fork 2

coffeeAnt / snowy_flutter

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

项目准备

拉取小诺项目,并启动小诺后端项目(关于小诺的后端项目相关操作,再次不进行赘述,可去小诺的官方进行了解:https://xiaonuo.vip/)

输入图片说明

开始使用

下载项目

https://gitee.com/icefox1/flutter_app.git

拉去依赖

输入图片说明

配置后端的访问地址

输入图片说明

web容器运行

输入图片说明

运行效果

1、欢迎页

输入图片说明

2、登录页

输入图片说明

3、验证码

输入图片说明

时候启用验证码是小诺的后端决定的

4、主页

输入图片说明

5、个人中心

输入图片说明

安卓的演示效果于web端基本一直,可自行选择相应的容器进行演示,ios端作者暂未进行进行测试

lib目录结构

├── common					 # 抽离文件
│   └── apis                 # 接口
|   └── dto                  # dto(服务接口的对象)
|   └── middlewares 		 # getX中间件(用于鉴权、路由重定向)
|   └── model 		         # model对象(除接口的对象,其他对象都放在此处)
|   └── routes 		         # 路由管理
|   └── utils 		         # 工具类
|   └── values 		         # 常量
|   └── widget 		         # 公共组件
├── init					 # 初始化文件
├── pages					 # 页面

web打包注意事项

  • 1、web 打包命令 flutter build web --web-renderer html

  • 2、web/index.html 要修改两个地方 14行和 67行

    注释掉14行 67行修改成(兼容安卓和微信移动端): if (reg.installing == null) waitForActivation(reg.waiting) // << Modified here else waitForActivation(reg.installing); // << Modified here //waitForActivation(reg.installing ?? reg.waiting); // << Modified here

  • 3、Uncaught TypeError: Cannot read property 'toString' of null 该错误未修复

MIT License Copyright (c) 2021 每天一点 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
Dart
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

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

搜索帮助