Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在TOP_TAB模式下,点击bar,页面不能跳转 #333

Closed
wants to merge 75 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
fc9db81
fix
CarGuo Oct 18, 2018
6528e7e
notify update to tag 0.10.0
CarGuo Oct 18, 2018
516f8ad
fix something
CarGuo Oct 18, 2018
d44a9f8
Update README.md
CarGuo Nov 8, 2018
dc57e3b
readme
CarGuo Nov 12, 2018
adb5b98
Merge branch 'master' of https://github.com/CarGuo/GSYGithubAppFlutter
CarGuo Nov 12, 2018
983edaa
update flutter sdk 0.11.3
CarGuo Nov 13, 2018
41cca9f
open native webView widget
CarGuo Nov 13, 2018
7559813
update package
CarGuo Nov 13, 2018
df6019b
1.1.5
CarGuo Nov 13, 2018
9475cbc
add analysis_options
CarGuo Nov 13, 2018
478d15a
readme
CarGuo Nov 13, 2018
68bbd3d
fix #120
CarGuo Nov 14, 2018
684dec9
add hero animation in drawer
CarGuo Nov 14, 2018
e54bf5f
readme
CarGuo Nov 14, 2018
8f30a4f
readme
CarGuo Nov 15, 2018
a838cc8
record
CarGuo Nov 16, 2018
5987051
record
CarGuo Nov 16, 2018
0b06054
fix keyboard block
CarGuo Nov 16, 2018
91bc700
fix ios release
CarGuo Nov 19, 2018
d532dee
fix auto ios
CarGuo Nov 20, 2018
a76227b
降低targetSdk到27,暂时处理键盘无法弹起问题,fix #132
CarGuo Nov 22, 2018
a9e9873
Merge remote-tracking branch 'origin/master'
CarGuo Nov 22, 2018
735ac84
0.11.9
CarGuo Nov 23, 2018
7821d49
ios 增加 webView 支持
CarGuo Nov 30, 2018
46bdc0a
1.1.6
CarGuo Dec 5, 2018
908a7d7
1.1.6 release
CarGuo Dec 5, 2018
d75a230
mixin
CarGuo Dec 5, 2018
b390353
ios 1.1.6
CarGuo Dec 5, 2018
1e65a29
update to flutter sdk 1.1.3 , fix keyboard issue with api 28
CarGuo Dec 20, 2018
d0e4898
version
CarGuo Dec 20, 2018
3410bc7
english readme
CarGuo Jan 1, 2019
0adc660
Update README.md
CarGuo Jan 1, 2019
a0895b6
fix #192
CarGuo Jan 1, 2019
6ee54a3
更了了部分插件,更新了 sdk 到 1.1.9
CarGuo Jan 15, 2019
092eb58
修复反馈和issue输入框底部被挡住问题。
CarGuo Jan 15, 2019
fa6dd45
1.1.8
CarGuo Jan 15, 2019
2ff2fed
修正弹出键盘的时候,出现overFlow的现象
Jan 16, 2019
cf8ac23
Merge pull request #228 from xzchsia/master
CarGuo Jan 16, 2019
e798b2b
修复由于切换主题导致的输入框长按弹出黏贴
CarGuo Jan 16, 2019
370df87
修复输入框挤压问题
CarGuo Jan 16, 2019
ae3ca7a
修复issue恢复问题
CarGuo Jan 16, 2019
f237ccd
1.1.9
CarGuo Jan 16, 2019
bb1a920
统一跳转
CarGuo Jan 16, 2019
33f438a
fix ios
CarGuo Jan 17, 2019
1b7ac58
fix #251
CarGuo Jan 28, 2019
de41a6d
fix #255
CarGuo Jan 29, 2019
a3c953d
solve the problem that api 422 exception
ufolux Feb 1, 2019
c81a866
Merge pull request #264 from ufolux/patch-1
CarGuo Feb 11, 2019
cc44fc9
fix #273
CarGuo Feb 14, 2019
7ba8471
fix test code
CarGuo Feb 15, 2019
5659ec4
更新1.3.2 sdk
CarGuo Mar 3, 2019
c49326d
修复用户的blog链接在row下的长文本没有省略号问题。
CarGuo Mar 3, 2019
b88f6da
修改类名
CarGuo Mar 3, 2019
c80e60f
Update README.md
CarGuo Mar 5, 2019
fce55a3
Update README_EN.md
CarGuo Mar 5, 2019
9d3d4c4
Update README.md
CarGuo Mar 5, 2019
c2a68fe
add trend data
CarGuo Mar 11, 2019
b2eb311
readme
CarGuo Mar 14, 2019
394f710
Update README.md
CarGuo Mar 16, 2019
75bd14a
Update README_EN.md
CarGuo Mar 16, 2019
bd02f50
修改http,增加拦截器
CarGuo Mar 23, 2019
c568247
修改http,增加拦截器
CarGuo Mar 23, 2019
470acde
调整文件名称
CarGuo Mar 23, 2019
3e24e13
Merge remote-tracking branch 'origin/master'
CarGuo Mar 23, 2019
4ab9374
尝试迁移重构bloc模式
CarGuo Mar 23, 2019
cbbf964
初步修改为bloc
CarGuo Mar 24, 2019
4de42cf
调整bloc
CarGuo Mar 24, 2019
ed3f0ec
调整redux
CarGuo Mar 24, 2019
3e24eb6
readme
CarGuo Mar 24, 2019
ba8d5da
readme
CarGuo Mar 24, 2019
54b0de5
fix
CarGuo Mar 29, 2019
b6f04ec
fix bug by bloc
CarGuo Mar 29, 2019
a0606e7
调整返回键
CarGuo Mar 29, 2019
928d728
readme
CarGuo Mar 29, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 65 additions & 41 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
![](https://github.com/CarGuo/GSYGithubAppFlutter/blob/master/logo.png)


### [English Readme](https://github.com/CarGuo/GSYGithubAppFlutter/blob/master/README_EN.md)

## 一款跨平台的开源Github客户端App,提供更丰富的功能,更好体验,旨在更好的日常管理和维护个人Github,提供更好更方便的驾车体验~~Σ( ̄。 ̄ノ)ノ。项目涉及各种常用控件、网络、数据库、设计模式、主题切换、多语言、Redux等。在开发学习过程中,提供丰富的同款对比:

* ### 同款Weex版 ( https://github.com/CarGuo/GSYGithubAppWeex )
* ### 同款ReactNative版 ( https://github.com/CarGuo/GSYGithubApp )


* ### 同款Android Kotlin版本( https://github.com/CarGuo/GSYGithubAppKotlin )

```
基于Flutter开发,适配Android与IOS。目前初版,持续完善中。
Expand All @@ -19,16 +21,26 @@
-----


## 最近回顾项目,发现了不少问题,目前优化调整中:

- Dao层其实可以定制到Bloc层,隔离数据逻辑。
- 一些页面可以通过FutureBuilder懒加载。
- 调整redux
- 自定义图片缓存,使用沙盒手机错误信息
- 文件命名规范化。
- 一些布局可以简化重构。


## 相关文章

* ### [Flutter 完整开发实战详解(一、Dart 语言和 Flutter 基础)](https://juejin.im/entry/5b631e3e51882519861c2ef1 )
* ### [Flutter 完整开发实战详解(二、快速实战篇)](https://juejin.im/entry/5b685bd4e51d451994602cae )
* ### [Flutter 完整开发实战详解(三、打包填坑篇)](https://juejin.im/entry/5b6fd5ee6fb9a009d36a4104 )
* ### [Flutter 完整开发实战详解(四、Redux、主题、国际化)](https://juejin.im/post/5b79767ff265da435450a873 )
* ### [Flutter 完整开发实战详解(五、深入探索)](https://juejin.im/post/5bc450dff265da0a951f032b )



* ### [Flutter 完整开发实战详解(六、 深入Widget原理)](https://juejin.im/post/5c7e853151882549664b0543 )
* ### [Flutter 完整开发实战详解(七、 深入布局原理)](https://juejin.im/post/5c8c6ef7e51d450ba7233f51 )
* ### [Flutter 完整开发实战详解(八、 实用技巧与填坑)](https://juejin.im/post/5c9e328251882567b91e1cfb)


[![GitHub stars](https://img.shields.io/github/stars/CarGuo/GSYGithubAppFlutter.svg)](https://github.com/CarGuo/GSYGithubAppFlutter/stargazers)
Expand All @@ -38,7 +50,7 @@

### 编译运行流程

1、配置好Flutter开发环境(目前Flutter SDK 版本 **v0.7.0** 的 Tag ),可参阅 [【搭建环境】](https://flutterchina.club)。
1、配置好Flutter开发环境(目前Flutter SDK 版本 **v1.3.2** 的 Tag ),可参阅 [【搭建环境】](https://flutterchina.club)。

2、clone代码,执行`Packages get`安装第三方包。(因为某些不可抗力原因,国内可能需要设置代理: [代理环境变量](https://flutterchina.club/setup-windows/))

Expand All @@ -50,28 +62,39 @@
static const CLIENT_SECRET = "xxxxxxxxxxx";
}


  [ 注册 Github APP 传送门](https://github.com/settings/applications/new),当然,前提是你现有一个github账号(~ ̄▽ ̄)~ 。

<div>
<img src="https://raw.githubusercontent.com/CarGuo/GSYGithubAppFlutter/master/register0.jpg" width="426px"/>
<img src="https://raw.githubusercontent.com/CarGuo/GSYGithubAppFlutter/master/register1.jpg" width="426px"/>
</div>

4、运行之前请注意下

>### 1、本地Flutter SDK 版本 v0.7.0 以上。2、pubspec.yaml 中的第三方包版本和 pubspec.lock 中的是否对应的上
>### 1、本地Flutter SDK 版本 v1.3.2 以上。2、pubspec.yaml 中的第三方包版本和 pubspec.lock 中的是否对应的上



## 项目结构图

![](https://raw.githubusercontent.com/CarGuo/GSYGithubAppFlutter/master/framework2.png)

![](https://raw.githubusercontent.com/CarGuo/GSYGithubAppFlutter/master/folder.png)

### 下载

#### Apk下载链接: [Apk下载链接](https://www.pgyer.com/vj2B)


类型 | 二维码
-------- | ---
**Apk二维码**|![](https://raw.githubusercontent.com/CarGuo/GSYGithubAppFlutter/master/download.png)
**IOS暂无下载**|**残念(╯‵□′)╯︵┻━┻,第三方太贵,没企业证书。**![](https://raw.githubusercontent.com/CarGuo/GSYGithubAppFlutter/master/ios_wait.png)
| 类型 | 二维码 |
| ----------- | ---------------------------------------- |
| **Apk二维码** | ![](https://raw.githubusercontent.com/CarGuo/GSYGithubAppFlutter/master/download.png) |
| **IOS暂无下载** | **残念(╯‵□′)╯︵┻━┻,第三方太贵,没企业证书。**![](https://raw.githubusercontent.com/CarGuo/GSYGithubAppFlutter/master/ios_wait.png) |





### 常见问题

* 如果包同步失败,一般都是因为没设置包代理,可以参考:[环境变量问题](https://github.com/CarGuo/GSYGithubAppFlutter/issues/13)
Expand All @@ -93,33 +116,34 @@

### 第三方框架

当前 Flutter SDK 版本 v0.7.0

库 | 功能
-------- | ---
**dio**|**网络框架**
**shared_preferences**|**本地数据缓存**
**fluttertoast**|**toast**
**flutter_redux**|**redux**
**device_info**|**设备信息**
**connectivity**|**网络链接**
**flutter_markdown**|**markdown解析**
**json_annotation**|**json模板**
**json_serializable**|**json模板**
**url_launcher**|**启动外部浏览器**
**iconfont**|**字库图标**
**share**|**系统分享**
**flutter_spinkit**|**加载框样式**
**get_version**|**版本信息**
**flutter_webview_plugin**|**全屏的webview**
**sqflite**|**数据库**
**flutter_statusbar**|**状态栏**
**flutter_svg**|**svg**
**photo_view**|**图片预览**
**flutter_slidable**|**侧滑**
**flutter_cache_manager**|**缓存管理**
**path_provider**|**本地路径**
**permission_handler**|**权限**
>当前 Flutter SDK 版本 v1.3.2

| 库 | 功能 |
| -------------------------- | -------------- |
| **dio** | **网络框架** |
| **shared_preferences** | **本地数据缓存** |
| **fluttertoast** | **toast** |
| **flutter_redux** | **redux** |
| **device_info** | **设备信息** |
| **connectivity** | **网络链接** |
| **flutter_markdown** | **markdown解析** |
| **json_annotation** | **json模板** |
| **json_serializable** | **json模板** |
| **url_launcher** | **启动外部浏览器** |
| **iconfont** | **字库图标** |
| **share** | **系统分享** |
| **flutter_spinkit** | **加载框样式** |
| **get_version** | **版本信息** |
| **flutter_webview_plugin** | **全屏的webview** |
| **sqflite** | **数据库** |
| **flutter_statusbar** | **状态栏** |
| **flutter_svg** | **svg** |
| **photo_view** | **图片预览** |
| **flutter_slidable** | **侧滑** |
| **flutter_cache_manager** | **缓存管理** |
| **path_provider** | **本地路径** |
| **permission_handler** | **权限** |
| **scope_model** | **状态管理和共享** |

### 进行中:

Expand All @@ -141,4 +165,4 @@ Licensed works, modifications, and larger works may be distributed under differe




146 changes: 146 additions & 0 deletions README_EN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
![](https://github.com/CarGuo/GSYGithubAppFlutter/blob/master/logo.png)

## An open source Github client App developed by Flutter,Provide richer functionality and comparison with the same program by other language:

* ### Weex Version ( https://github.com/CarGuo/GSYGithubAppWeex )
* ### ReactNative Version ( https://github.com/CarGuo/GSYGithubApp )
* ### Android Kotlin Version( https://github.com/CarGuo/GSYGithubAppKotlin )

```
Based on Flutter development, it adapts Android and IOS. At present, the first edition is in continuous improvement.

The purpose of the project is to facilitate personal daily maintenance and access to Github, better immerse in the mutual base between coders, Github is your home.

The project is also suitable for Flutter's hands-on learning, covering the use of various frameworks, interaction with native students and so on.

With the use and feedback of the project, will user experience and function optimization be updated and improved from time to time? Welcome to ask questions.
```
-----


## Chinese Articles

* ### [Flutter 完整开发实战详解(一、Dart 语言和 Flutter 基础)](https://juejin.im/entry/5b631e3e51882519861c2ef1 )
* ### [Flutter 完整开发实战详解(二、快速实战篇)](https://juejin.im/entry/5b685bd4e51d451994602cae )
* ### [Flutter 完整开发实战详解(三、打包填坑篇)](https://juejin.im/entry/5b6fd5ee6fb9a009d36a4104 )
* ### [Flutter 完整开发实战详解(四、Redux、主题、国际化)](https://juejin.im/post/5b79767ff265da435450a873 )
* ### [Flutter 完整开发实战详解(五、深入探索)](https://juejin.im/post/5bc450dff265da0a951f032b )
* ### [Flutter 完整开发实战详解(六、 深入Widget原理)](https://juejin.im/post/5c7e853151882549664b0543 )
* ### [Flutter 完整开发实战详解(七、 深入布局原理)](https://juejin.im/post/5c8c6ef7e51d450ba7233f51 )
* ### [Flutter 完整开发实战详解(八、 实用技巧与填坑)](https://juejin.im/post/5c9e328251882567b91e1cfb)



[![GitHub stars](https://img.shields.io/github/stars/CarGuo/GSYGithubAppFlutter.svg)](https://github.com/CarGuo/GSYGithubAppFlutter/stargazers)
[![GitHub forks](https://img.shields.io/github/forks/CarGuo/GSYGithubAppFlutter.svg)](https://github.com/CarGuo/GSYGithubAppFlutter/network)
[![GitHub issues](https://img.shields.io/github/issues/CarGuo/GSYGithubAppFlutter.svg)](https://github.com/CarGuo/GSYGithubAppFlutter/issues)
[![GitHub license](https://img.shields.io/github/license/CarGuo/GSYGithubAppFlutter.svg)](https://github.com/CarGuo/GSYGithubAppFlutter/blob/master/LICENSE)

### Operation instructions

1. Configure the Flutter development environment (Tag of the current version of Flutter SDK ** v1.3.2 **).

2. Clone code, execute `Packages get'to install third-party packages.


> ### 3. Emphasis: You need to create a `ignoreConfig.dart'file in the lib/common/config/directory by yourself, and then enter the Github client_id and client_secret you applied for.

class NetConfig {
static const CLIENT_ID = "xxxx";

static const CLIENT_SECRET = "xxxxxxxxxxx";
}


  [ Register Github APP ](https://github.com/settings/applications/new) 。

<div>
<img src="https://raw.githubusercontent.com/CarGuo/GSYGithubAppFlutter/master/register0.jpg" width="426px"/>
<img src="https://raw.githubusercontent.com/CarGuo/GSYGithubAppFlutter/master/register1.jpg" width="426px"/>
</div>

4、Be careful

>### Local Flutter SDK version v1.3.2 or more. 2. Does the third-party package version in pubspec. yaml correspond to the third-party package version in pubspec. lock?


## Project Structure

![](https://raw.githubusercontent.com/CarGuo/GSYGithubAppFlutter/master/framework2.png)

![](https://raw.githubusercontent.com/CarGuo/GSYGithubAppFlutter/master/folder.png)

### 下载

#### Apk Download Link: [ Apk Download Link](https://www.pgyer.com/vj2B)


| Type | Apk QR code |
| ----------- | ---------------------------------------- |
| **Apk QR code** | ![](https://raw.githubusercontent.com/CarGuo/GSYGithubAppFlutter/master/download.png) |
| **IOS Null** | |




### Demo

![](https://raw.githubusercontent.com/CarGuo/GSYGithubAppFlutter/master/ios.gif)

![](https://raw.githubusercontent.com/CarGuo/GSYGithubAppFlutter/master/theme.gif)

<img src="https://github.com/CarGuo/GSYGithubAppFlutter/blob/master/1.jpg" width="426px"/>

<img src="https://github.com/CarGuo/GSYGithubAppFlutter/blob/master/2.jpg" width="426px"/>

<img src="https://github.com/CarGuo/GSYGithubAppFlutter/blob/master/3.jpg" width="426px"/>


### Third-party framework

>Current Flutter SDK version v1.3.2

| 库 | 功能 |
| -------------------------- | -------------- |
| **dio** | **net** |
| **shared_preferences** | **local storage** |
| **fluttertoast** | **toast** |
| **flutter_redux** | **redux** |
| **device_info** | **device info** |
| **connectivity** | **network status** |
| **flutter_markdown** | **markdown parse** |
| **json_annotation** | **json** |
| **json_serializable** | **json** |
| **url_launcher** | **intent** |
| **iconfont** | **ttf** |
| **share** | **share** |
| **flutter_spinkit** | **loading** |
| **get_version** | **version** |
| **flutter_webview_plugin** | **webview** |
| **sqflite** | **sqlite** |
| **flutter_statusbar** | **status bar** |
| **flutter_svg** | **svg** |
| **photo_view** | **preview** |
| **flutter_slidable** | **slide view** |
| **flutter_cache_manager** | **cache manager** |
| **path_provider** | **path** |
| **permission_handler** | **permission** |
| **scope_model** | **like redux** |


<img src="https://github.com/CarGuo/GSYGithubAppFlutter/blob/master/thanks.jpg" width="426px"/>


### LICENSE
```
CarGuo/GSYGithubAppFlutter is licensed under the
Apache License 2.0

A permissive license whose main conditions require preservation of copyright and license notices.
Contributors provide an express grant of patent rights.
Licensed works, modifications, and larger works may be distributed under different terms and without source code.
```



7 changes: 7 additions & 0 deletions RECORD.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,16 @@ https://github.com/flutter/plugins/tree/master/packages/webview_flutter



1、

GSYVideoPlayer 1604 的issue,会触发`inline_parser.dart`在 `List<Node> parse() ` 正则解析出现问题,等待 flutter issue 19341

2、

keyboard bot bring up

https://github.com/flutter/flutter/issues/19810
https://github.com/flutter/flutter/issues/19644



Expand Down
28 changes: 28 additions & 0 deletions VERSION.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,34 @@
* 版本信息列表
* 监听滚动,设置底部和顶部隐藏显示

### 1.1.9

* 修正弹出键盘的时候被挤压问题
* 修复切换主题导致长按输入框弹出异常
* 修复其他小问题。


### 1.1.8

* 修复反馈输入框遮挡问题。
* 更新部分插件,更新了 sdk 到 1.1.9

### 1.1.7

* 更新flutter SDK 到 1.1.3 版本,修复TargetSDK 28以上在9.0键盘无法弹出问题。



### 1.1.6
* flutter升级正式版1.0


### 1.1.5

* Android 代码详情使用 AndroidView 实现WebView
* 升级flutter Sdk
* 升级第三方包

### 1.1.3
* 修复详情tab切换问题。

Expand Down
6 changes: 6 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
analyzer:
language:
enableSuperMixins: true
errors:
mixin_inherits_from_not_object: ignore
mixin_references_super: ignore
7 changes: 5 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ android {
applicationId "com.shuyu.gsygithub.gsygithubappflutter"
minSdkVersion 16
targetSdkVersion 28
versionCode 14
versionName "1.1.4"
versionCode 20
versionName "1.2.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

Expand Down Expand Up @@ -60,6 +60,9 @@ android {
signingConfig signingConfigs.release
}
}
lintOptions {
abortOnError false
}
}

flutter {
Expand Down
Binary file added folder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added framework2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading