Skip to content

Commit 0fbfd00

Browse files
authored
Feat/request handler (#7)
* new feature requestHandler * request handler * fixing cicd * working directory on ci/cd * handleRequest test
1 parent fd9d332 commit 0fbfd00

136 files changed

Lines changed: 4973 additions & 180 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/code-analyze.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
channel: "stable"
2121
- name: Install Dependencies
2222
run: flutter pub get
23+
- name: Install Dependencies on handle_request_example
24+
run: flutter pub get
25+
working-directory: doc/handle_request_example
2326
- name: Format
2427
run: flutter pub publish --dry-run
2528
- name: Analyze

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.1.0
2+
3+
- add new feature `handleRequest` on `HttpCache` widget class.
4+
- update doc
5+
- create a new example on doc
6+
17
## 0.0.2
28

39
- fix bug `futureHeaders` attribute

README.md

Lines changed: 96 additions & 156 deletions
Original file line numberDiff line numberDiff line change
@@ -10,164 +10,11 @@
1010

1111
# Overview
1212

13-
The goal of this library is to make it easier for us to handle http requests and data caching by using interactive widgets.
14-
**Current Target Goal**
13+
The goal of this library is to make it easier for us to handle http requests and data caching by using interactive widgets. If you need any update or tutorial, please create an issue (here)[https://github.com/nggepe/http_cache_flutter/issues]
1514

16-
## HttpCache Widget Goal
15+
## HttpCache Widget class
1716

18-
<table>
19-
<thead>
20-
<tr>
21-
<td>
22-
Feature
23-
</td>
24-
<td>
25-
Status
26-
</td>
27-
</tr>
28-
</thead>
29-
<tbody>
30-
<tr>
31-
<td>
32-
Persistent Cache Storage
33-
</td>
34-
<td>
35-
36-
</td>
37-
</tr>
38-
<tr>
39-
<td>
40-
Handle Change URL
41-
</td>
42-
<td>
43-
44-
</td>
45-
</tr>
46-
<tr>
47-
<td>
48-
Handle stale data
49-
</td>
50-
<td>
51-
52-
</td>
53-
</tr>
54-
<tr>
55-
<td>
56-
Handle log
57-
</td>
58-
<td>
59-
60-
</td>
61-
</tr>
62-
<tr>
63-
<td>
64-
Handle timeout cache
65-
</td>
66-
<td>
67-
68-
</td>
69-
</tr>
70-
<tr>
71-
<td>
72-
Invalidate key
73-
</td>
74-
<td>
75-
76-
</td>
77-
</tr>
78-
</tbody>
79-
</table>
80-
81-
# Next Goal
82-
83-
## HttpCachePaged Widget Goal
84-
85-
<table>
86-
<thead>
87-
<tr>
88-
<td>
89-
Feature
90-
</td>
91-
<td>
92-
Status
93-
</td>
94-
</tr>
95-
</thead>
96-
<tbody>
97-
<tr>
98-
<td>
99-
Persistent Cache Storage
100-
</td>
101-
<td>
102-
103-
</td>
104-
</tr>
105-
<tr>
106-
<td>
107-
Handle Change URL
108-
</td>
109-
<td>
110-
111-
</td>
112-
</tr>
113-
<tr>
114-
<td>
115-
Handle stale data
116-
</td>
117-
<td>
118-
119-
</td>
120-
</tr>
121-
<tr>
122-
<td>
123-
Handle log
124-
</td>
125-
<td>
126-
127-
</td>
128-
</tr>
129-
<tr>
130-
<td>
131-
Handle timeout cache
132-
</td>
133-
<td>
134-
135-
</td>
136-
</tr>
137-
<tr>
138-
<td>
139-
Handle Data Mutation
140-
</td>
141-
<td>
142-
143-
</td>
144-
</tr>
145-
<tr>
146-
<td>
147-
Paged http cache
148-
</td>
149-
<td>
150-
151-
</td>
152-
</tr>
153-
<tr>
154-
<td>
155-
Dev tool
156-
</td>
157-
<td>
158-
159-
</td>
160-
</tr>
161-
<tr>
162-
<td>
163-
Paging
164-
</td>
165-
<td>
166-
167-
</td>
168-
</tr>
169-
</tbody>
170-
</table>
17+
[More complete `HttpCache` Widget documentation is here](https://github.com/nggepe/http_cache_flutter/tree/master/doc/http_cache_widget.md)
17118

17219
# Storage Initialization
17320

@@ -190,6 +37,8 @@ void main() async {
19037
}
19138
```
19239

40+
[More complete `HttpCache` Widget documentation is here](https://github.com/nggepe/http_cache_flutter/tree/master/doc/http_cache_widget.md)
41+
19342
# Clear Storage
19443

19544
```dart
@@ -357,3 +206,94 @@ class GithubRepository {
357206
}
358207
}
359208
```
209+
210+
# Update Coming Soon
211+
212+
## HttpCachePaged Widget
213+
214+
<table>
215+
<thead>
216+
<tr>
217+
<td>
218+
Feature
219+
</td>
220+
<td>
221+
Status
222+
</td>
223+
</tr>
224+
</thead>
225+
<tbody>
226+
<tr>
227+
<td>
228+
Persistent Cache Storage
229+
</td>
230+
<td>
231+
232+
</td>
233+
</tr>
234+
<tr>
235+
<td>
236+
Handle Change URL
237+
</td>
238+
<td>
239+
240+
</td>
241+
</tr>
242+
<tr>
243+
<td>
244+
Handle stale data
245+
</td>
246+
<td>
247+
248+
</td>
249+
</tr>
250+
<tr>
251+
<td>
252+
Handle log
253+
</td>
254+
<td>
255+
256+
</td>
257+
</tr>
258+
<tr>
259+
<td>
260+
Handle timeout cache
261+
</td>
262+
<td>
263+
264+
</td>
265+
</tr>
266+
<tr>
267+
<td>
268+
Handle Data Mutation
269+
</td>
270+
<td>
271+
272+
</td>
273+
</tr>
274+
<tr>
275+
<td>
276+
Paged http cache
277+
</td>
278+
<td>
279+
280+
</td>
281+
</tr>
282+
<tr>
283+
<td>
284+
Dev tool
285+
</td>
286+
<td>
287+
288+
</td>
289+
</tr>
290+
<tr>
291+
<td>
292+
Paging
293+
</td>
294+
<td>
295+
296+
</td>
297+
</tr>
298+
</tbody>
299+
</table>
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
migrate_working_dir/
12+
13+
# IntelliJ related
14+
*.iml
15+
*.ipr
16+
*.iws
17+
.idea/
18+
19+
# The .vscode folder contains launch configuration and tasks you configure in
20+
# VS Code which you may wish to be included in version control, so this line
21+
# is commented out by default.
22+
#.vscode/
23+
24+
# Flutter/Dart/Pub related
25+
**/doc/api/
26+
**/ios/Flutter/.last_build_id
27+
.dart_tool/
28+
.flutter-plugins
29+
.flutter-plugins-dependencies
30+
.packages
31+
.pub-cache/
32+
.pub/
33+
/build/
34+
35+
# Symbolication related
36+
app.*.symbols
37+
38+
# Obfuscation related
39+
app.*.map.json
40+
41+
# Android Studio will place build artifacts here
42+
/android/app/debug
43+
/android/app/profile
44+
/android/app/release
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled.
5+
6+
version:
7+
revision: 18a827f3933c19f51862dde3fa472197683249d6
8+
channel: stable
9+
10+
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: 18a827f3933c19f51862dde3fa472197683249d6
17+
base_revision: 18a827f3933c19f51862dde3fa472197683249d6
18+
- platform: android
19+
create_revision: 18a827f3933c19f51862dde3fa472197683249d6
20+
base_revision: 18a827f3933c19f51862dde3fa472197683249d6
21+
- platform: ios
22+
create_revision: 18a827f3933c19f51862dde3fa472197683249d6
23+
base_revision: 18a827f3933c19f51862dde3fa472197683249d6
24+
- platform: linux
25+
create_revision: 18a827f3933c19f51862dde3fa472197683249d6
26+
base_revision: 18a827f3933c19f51862dde3fa472197683249d6
27+
- platform: macos
28+
create_revision: 18a827f3933c19f51862dde3fa472197683249d6
29+
base_revision: 18a827f3933c19f51862dde3fa472197683249d6
30+
- platform: web
31+
create_revision: 18a827f3933c19f51862dde3fa472197683249d6
32+
base_revision: 18a827f3933c19f51862dde3fa472197683249d6
33+
- platform: windows
34+
create_revision: 18a827f3933c19f51862dde3fa472197683249d6
35+
base_revision: 18a827f3933c19f51862dde3fa472197683249d6
36+
37+
# User provided section
38+
39+
# List of Local paths (relative to this file) that should be
40+
# ignored by the migrate tool.
41+
#
42+
# Files that are not part of the templates will be ignored by default.
43+
unmanaged_files:
44+
- 'lib/main.dart'
45+
- 'ios/Runner.xcodeproj/project.pbxproj'
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# handle_request_example
2+
3+
A new Flutter project.
4+
5+
## Getting Started
6+
7+
This project is a starting point for a Flutter application.
8+
9+
A few resources to get you started if this is your first Flutter project:
10+
11+
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
12+
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
13+
14+
For help getting started with Flutter development, view the
15+
[online documentation](https://docs.flutter.dev/), which offers tutorials,
16+
samples, guidance on mobile development, and a full API reference.

0 commit comments

Comments
 (0)