├── .gitignore
├── LICENSE
├── README.md
├── android.iml
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ └── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ └── me
│ │ │ └── samthompson
│ │ │ └── darthub
│ │ │ └── MainActivity.java
│ │ └── res
│ │ ├── mipmap-hdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-mdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-xhdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-xxhdpi
│ │ └── ic_launcher.png
│ │ └── mipmap-xxxhdpi
│ │ └── ic_launcher.png
├── build.gradle
├── gradle.properties
└── settings.gradle
├── dart_hub.iml
├── dart_hub_android.iml
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Podfile
├── Podfile.lock
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ └── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ └── contents.xcworkspacedata
└── Runner
│ ├── AppDelegate.h
│ ├── AppDelegate.m
│ ├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ └── main.m
├── lib
├── interactor
│ ├── manager
│ │ ├── auth_manager.dart
│ │ ├── profile_manager.dart
│ │ └── repo_manager.dart
│ └── paginator
│ │ ├── base_paginator.dart
│ │ ├── event_paginator.dart
│ │ ├── notif_paginator.dart
│ │ ├── paginator_factory.dart
│ │ ├── repo_list_paginator.dart
│ │ └── user_paginator.dart
├── main.dart
├── model
│ ├── date_utils.dart
│ ├── event.dart
│ ├── notif.dart
│ ├── pull_request.dart
│ ├── repo.dart
│ └── user.dart
└── ui
│ ├── app.dart
│ ├── events_view.dart
│ ├── followers_screen.dart
│ ├── following_screen.dart
│ ├── forks_screen.dart
│ ├── home_screen.dart
│ ├── login_screen.dart
│ ├── notif_view.dart
│ ├── paginated_list
│ └── paginated_list_view.dart
│ ├── paginated_list_screen.dart
│ ├── profile_screen.dart
│ ├── profile_view.dart
│ ├── repo_list_screen.dart
│ ├── repo_screen.dart
│ ├── routes.dart
│ ├── search_view.dart
│ ├── splash_screen.dart
│ ├── stargazers_screen.dart
│ ├── subscribers_screen.dart
│ └── tiles
│ ├── event_tile.dart
│ ├── repo_tile.dart
│ └── user_tile.dart
├── pubspec.yaml
└── screenshots
├── feed.png
├── feedview.png
├── followers.png
├── following.png
├── profile.png
├── repo.png
└── repos.png
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | .atom/
3 | .idea
4 | .packages
5 | .pub/
6 | build/
7 | ios/.generated/
8 | packages
9 | pubspec.lock
10 | .flutter-plugins
11 | lib/keys.dart
12 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 | DartHub - a GitHub client written in Flutter
635 | Copyright (C) 2017 Samuel Thompson
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | DartHub Copyright (C) 2017 Samuel Thompson
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # dart_hub
2 |
3 | A GitHub client written in flutter. The goal of this project is to build something non-trivial in Flutter to flex the framework's muscles.
4 |
5 | ## Building
6 |
7 | In order to build this project, you'll need to add a `keys.dart` file to the `lib/` directory of this project.
8 | This file contains the oauth client id and client secret necessary to communicate with the GitHub apis.
9 | Inside the file you'll need to define two constants:
10 | ```dart
11 | const String CLIENT_ID = 'your oauth client id';
12 | const String CLIENT_SECRET = 'your oauth client secret';
13 | ```
14 | You can create an oauth api project [here](https://github.com/settings/applications/new).
15 |
16 |
17 | ## Screenshots
18 |
19 | ### Feed
20 | 
21 |
22 | ### Profile
23 |    
24 |
25 | ### Repo
26 | 
27 |
28 | ## TODO
29 |
30 | - [x] Activity feed showing recent activity
31 | - [x] Notifications ui which shows unread notifications
32 | - [x] Profile ui that shows current logged in user
33 | - [x] Implement pagination on list screens
34 | - [x] Implement follower listing view
35 | - [x] Implement following listing view
36 | - [x] Move notifications in between search and profile
37 | - [x] Implement repo listing view
38 | - [x] Implement showing user activity on profile
39 | - [x] Repository screen
40 | - [ ] Event items clickable
41 | - [ ] Notif items clickable
42 | - [ ] Add ui for filter parameters on notifs, repos, etc
43 | - [ ] Implement search view
44 | - [ ] File viewer
45 | - [ ] Support more event types
46 |
47 |
48 | ## Contributing
49 |
50 | This project is moving pretty fast and I'm doing a lot of development on master. Ideas and feedback are always welcome, feel free to open an issue to discuss 😄
51 |
--------------------------------------------------------------------------------
/android.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/workspace.xml
5 | /.idea/libraries
6 | .DS_Store
7 | /build
8 | /captures
9 | GeneratedPluginRegistrant.java
10 |
11 | /gradle
12 | /gradlew
13 | /gradlew.bat
14 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withInputStream { stream ->
5 | localProperties.load(stream)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | apply plugin: 'com.android.application'
15 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
16 |
17 | android {
18 | compileSdkVersion 25
19 | buildToolsVersion '25.0.3'
20 |
21 | lintOptions {
22 | disable 'InvalidPackage'
23 | }
24 |
25 | defaultConfig {
26 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
27 |
28 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
29 | applicationId "me.samthompson.darthub"
30 | }
31 |
32 | buildTypes {
33 | release {
34 | // TODO: Add your own signing config for the release build.
35 | // Signing with the debug keys for now, so `flutter run --release` works.
36 | signingConfig signingConfigs.debug
37 | }
38 | }
39 | }
40 |
41 | flutter {
42 | source '../..'
43 | }
44 |
45 | dependencies {
46 | androidTestCompile 'com.android.support:support-annotations:25.4.0'
47 | androidTestCompile 'com.android.support.test:runner:0.5'
48 | androidTestCompile 'com.android.support.test:rules:0.5'
49 | }
50 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
12 |
13 |
14 |
19 |
20 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/android/app/src/main/java/me/samthompson/darthub/MainActivity.java:
--------------------------------------------------------------------------------
1 | package me.samthompson.darthub;
2 |
3 | import android.os.Bundle;
4 |
5 | import io.flutter.app.FlutterActivity;
6 | import io.flutter.plugins.GeneratedPluginRegistrant;
7 |
8 | public class MainActivity extends FlutterActivity {
9 | @Override
10 | protected void onCreate(Bundle savedInstanceState) {
11 | super.onCreate(savedInstanceState);
12 | GeneratedPluginRegistrant.registerWith(this);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamThompson/dart_hub/1e2bb3b85edf36fd8257b2cd0132d143fbdba801/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamThompson/dart_hub/1e2bb3b85edf36fd8257b2cd0132d143fbdba801/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamThompson/dart_hub/1e2bb3b85edf36fd8257b2cd0132d143fbdba801/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamThompson/dart_hub/1e2bb3b85edf36fd8257b2cd0132d143fbdba801/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamThompson/dart_hub/1e2bb3b85edf36fd8257b2cd0132d143fbdba801/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | repositories {
3 | jcenter()
4 | }
5 |
6 | dependencies {
7 | classpath 'com.android.tools.build:gradle:2.2.3'
8 | }
9 | }
10 |
11 | allprojects {
12 | repositories {
13 | jcenter()
14 | maven {
15 | url "https://maven.google.com"
16 | }
17 | }
18 | }
19 |
20 | rootProject.buildDir = '../build'
21 | subprojects {
22 | project.buildDir = "${rootProject.buildDir}/${project.name}"
23 | project.evaluationDependsOn(':app')
24 | }
25 |
26 | task clean(type: Delete) {
27 | delete rootProject.buildDir
28 | }
29 |
30 | task wrapper(type: Wrapper) {
31 | gradleVersion = '2.14.1'
32 | }
33 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
4 |
5 | def plugins = new Properties()
6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
7 | if (pluginsFile.exists()) {
8 | pluginsFile.withInputStream { stream -> plugins.load(stream) }
9 | }
10 |
11 | plugins.each { name, path ->
12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
13 | include ":$name"
14 | project(":$name").projectDir = pluginDirectory
15 | }
16 |
--------------------------------------------------------------------------------
/dart_hub.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/dart_hub_android.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | .idea/
2 | .vagrant/
3 | .sconsign.dblite
4 | .svn/
5 |
6 | .DS_Store
7 | *.swp
8 | profile
9 |
10 | DerivedData/
11 | build/
12 | GeneratedPluginRegistrant.h
13 | GeneratedPluginRegistrant.m
14 |
15 | *.pbxuser
16 | *.mode1v3
17 | *.mode2v3
18 | *.perspectivev3
19 |
20 | !default.pbxuser
21 | !default.mode1v3
22 | !default.mode2v3
23 | !default.perspectivev3
24 |
25 | xcuserdata
26 |
27 | *.moved-aside
28 |
29 | *.pyc
30 | *sync/
31 | Icon?
32 | .tags*
33 |
34 | /Flutter/app.flx
35 | /Flutter/app.zip
36 | /Flutter/App.framework
37 | /Flutter/Flutter.framework
38 | /Flutter/Generated.xcconfig
39 | /ServiceDefinitions.json
40 |
41 | Pods/
42 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | UIRequiredDeviceCapabilities
24 |
25 | arm64
26 |
27 | MinimumOSVersion
28 | 8.0
29 |
30 |
31 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment this line to define a global platform for your project
2 | # platform :ios, '9.0'
3 |
4 | if ENV['FLUTTER_FRAMEWORK_DIR'] == nil
5 | abort('Please set FLUTTER_FRAMEWORK_DIR to the directory containing Flutter.framework')
6 | end
7 |
8 | target 'Runner' do
9 | # Pods for Runner
10 |
11 | # Flutter Pods
12 | pod 'Flutter', :path => ENV['FLUTTER_FRAMEWORK_DIR']
13 |
14 | if File.exists? '../.flutter-plugins'
15 | flutter_root = File.expand_path('..')
16 | File.foreach('../.flutter-plugins') { |line|
17 | plugin = line.split(pattern='=')
18 | if plugin.length == 2
19 | name = plugin[0].strip()
20 | path = plugin[1].strip()
21 | resolved_path = File.expand_path("#{path}/ios", flutter_root)
22 | pod name, :path => resolved_path
23 | else
24 | puts "Invalid plugin specification: #{line}"
25 | end
26 | }
27 | end
28 | end
29 |
30 | post_install do |installer|
31 | installer.pods_project.targets.each do |target|
32 | target.build_configurations.each do |config|
33 | config.build_settings['ENABLE_BITCODE'] = 'NO'
34 | end
35 | end
36 | end
37 |
--------------------------------------------------------------------------------
/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - Flutter (1.0.0)
3 | - shared_preferences (0.0.1):
4 | - Flutter
5 |
6 | DEPENDENCIES:
7 | - Flutter (from `/Users/samthompson/stuff/flutter/bin/cache/artifacts/engine/ios`)
8 | - shared_preferences (from `/Users/samthompson/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.2.4+1/ios`)
9 |
10 | EXTERNAL SOURCES:
11 | Flutter:
12 | :path: "/Users/samthompson/stuff/flutter/bin/cache/artifacts/engine/ios"
13 | shared_preferences:
14 | :path: "/Users/samthompson/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.2.4+1/ios"
15 |
16 | SPEC CHECKSUMS:
17 | Flutter: d674e78c937094a75ac71dd77e921e840bea3dbf
18 | shared_preferences: 1feebfa37bb57264736e16865e7ffae7fc99b523
19 |
20 | PODFILE CHECKSUM: 351e02e34b831289961ec3558a535cbd2c4965d2
21 |
22 | COCOAPODS: 1.0.1
23 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | archiveVersion
6 | 1
7 | classes
8 |
9 | objectVersion
10 | 46
11 | objects
12 |
13 | 1498D2321E8E86230040F4C2
14 |
15 | isa
16 | PBXFileReference
17 | lastKnownFileType
18 | sourcecode.c.h
19 | path
20 | GeneratedPluginRegistrant.h
21 | sourceTree
22 | <group>
23 |
24 | 1498D2331E8E89220040F4C2
25 |
26 | fileEncoding
27 | 4
28 | isa
29 | PBXFileReference
30 | lastKnownFileType
31 | sourcecode.c.objc
32 | path
33 | GeneratedPluginRegistrant.m
34 | sourceTree
35 | <group>
36 |
37 | 1498D2341E8E89220040F4C2
38 |
39 | fileRef
40 | 1498D2331E8E89220040F4C2
41 | isa
42 | PBXBuildFile
43 |
44 | 1A692D6EF3D7EC3A1E951F2C
45 |
46 | children
47 |
48 | isa
49 | PBXGroup
50 | name
51 | Pods
52 | sourceTree
53 | <group>
54 |
55 | 20574D7A7B02B9B267EE5902
56 |
57 | children
58 |
59 | 8AFAC329CDF6D9AE11F62AA6
60 |
61 | isa
62 | PBXGroup
63 | name
64 | Frameworks
65 | sourceTree
66 | <group>
67 |
68 | 3B06AD1E1E4923F5004D2608
69 |
70 | buildActionMask
71 | 2147483647
72 | files
73 |
74 | inputPaths
75 |
76 | isa
77 | PBXShellScriptBuildPhase
78 | name
79 | Thin Binary
80 | outputPaths
81 |
82 | runOnlyForDeploymentPostprocessing
83 | 0
84 | shellPath
85 | /bin/sh
86 | shellScript
87 | /bin/sh "$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" thin
88 |
89 | 3B3967151E833CAA004F5970
90 |
91 | fileEncoding
92 | 4
93 | isa
94 | PBXFileReference
95 | lastKnownFileType
96 | text.plist.xml
97 | name
98 | AppFrameworkInfo.plist
99 | path
100 | Flutter/AppFrameworkInfo.plist
101 | sourceTree
102 | <group>
103 |
104 | 3B3967161E833CAA004F5970
105 |
106 | fileRef
107 | 3B3967151E833CAA004F5970
108 | isa
109 | PBXBuildFile
110 |
111 | 3B80C3931E831B6300D905FE
112 |
113 | isa
114 | PBXFileReference
115 | lastKnownFileType
116 | wrapper.framework
117 | name
118 | App.framework
119 | path
120 | Flutter/App.framework
121 | sourceTree
122 | <group>
123 |
124 | 3B80C3941E831B6300D905FE
125 |
126 | fileRef
127 | 3B80C3931E831B6300D905FE
128 | isa
129 | PBXBuildFile
130 |
131 | 3B80C3951E831B6300D905FE
132 |
133 | fileRef
134 | 3B80C3931E831B6300D905FE
135 | isa
136 | PBXBuildFile
137 | settings
138 |
139 | ATTRIBUTES
140 |
141 | CodeSignOnCopy
142 | RemoveHeadersOnCopy
143 |
144 |
145 |
146 | 3D9940EDF39B836667A4B5E8
147 |
148 | buildActionMask
149 | 2147483647
150 | files
151 |
152 | inputPaths
153 |
154 | isa
155 | PBXShellScriptBuildPhase
156 | name
157 | [CP] Embed Pods Frameworks
158 | outputPaths
159 |
160 | runOnlyForDeploymentPostprocessing
161 | 0
162 | shellPath
163 | /bin/sh
164 | shellScript
165 | "${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh"
166 |
167 | showEnvVarsInLog
168 | 0
169 |
170 | 63EC34FF1CA0C447F07EDAFF
171 |
172 | buildActionMask
173 | 2147483647
174 | files
175 |
176 | inputPaths
177 |
178 | isa
179 | PBXShellScriptBuildPhase
180 | name
181 | [CP] Copy Pods Resources
182 | outputPaths
183 |
184 | runOnlyForDeploymentPostprocessing
185 | 0
186 | shellPath
187 | /bin/sh
188 | shellScript
189 | "${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-resources.sh"
190 |
191 | showEnvVarsInLog
192 | 0
193 |
194 | 7AFA3C8E1D35360C0083082E
195 |
196 | isa
197 | PBXFileReference
198 | lastKnownFileType
199 | text.xcconfig
200 | name
201 | Release.xcconfig
202 | path
203 | Flutter/Release.xcconfig
204 | sourceTree
205 | <group>
206 |
207 | 7AFFD8ED1D35381100E5BB4D
208 |
209 | fileEncoding
210 | 4
211 | isa
212 | PBXFileReference
213 | lastKnownFileType
214 | sourcecode.c.h
215 | path
216 | AppDelegate.h
217 | sourceTree
218 | <group>
219 |
220 | 7AFFD8EE1D35381100E5BB4D
221 |
222 | fileEncoding
223 | 4
224 | isa
225 | PBXFileReference
226 | lastKnownFileType
227 | sourcecode.c.objc
228 | path
229 | AppDelegate.m
230 | sourceTree
231 | <group>
232 |
233 | 86990ABD713093759D4FE98A
234 |
235 | buildActionMask
236 | 2147483647
237 | files
238 |
239 | inputPaths
240 |
241 | isa
242 | PBXShellScriptBuildPhase
243 | name
244 | [CP] Check Pods Manifest.lock
245 | outputPaths
246 |
247 | runOnlyForDeploymentPostprocessing
248 | 0
249 | shellPath
250 | /bin/sh
251 | shellScript
252 | diff "${PODS_ROOT}/../Podfile.lock" "${PODS_ROOT}/Manifest.lock" > /dev/null
253 | if [[ $? != 0 ]] ; then
254 | cat << EOM
255 | error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
256 | EOM
257 | exit 1
258 | fi
259 |
260 | showEnvVarsInLog
261 | 0
262 |
263 | 8AFAC329CDF6D9AE11F62AA6
264 |
265 | explicitFileType
266 | archive.ar
267 | includeInIndex
268 | 0
269 | isa
270 | PBXFileReference
271 | path
272 | libPods-Runner.a
273 | sourceTree
274 | BUILT_PRODUCTS_DIR
275 |
276 | 9705A1C41CF9048500538489
277 |
278 | buildActionMask
279 | 2147483647
280 | dstPath
281 |
282 | dstSubfolderSpec
283 | 10
284 | files
285 |
286 | 3B80C3951E831B6300D905FE
287 | 9705A1C71CF904A300538489
288 |
289 | isa
290 | PBXCopyFilesBuildPhase
291 | name
292 | Embed Frameworks
293 | runOnlyForDeploymentPostprocessing
294 | 0
295 |
296 | 9705A1C61CF904A100538489
297 |
298 | fileRef
299 | 9740EEBA1CF902C7004384FC
300 | isa
301 | PBXBuildFile
302 |
303 | 9705A1C71CF904A300538489
304 |
305 | fileRef
306 | 9740EEBA1CF902C7004384FC
307 | isa
308 | PBXBuildFile
309 | settings
310 |
311 | ATTRIBUTES
312 |
313 | CodeSignOnCopy
314 | RemoveHeadersOnCopy
315 |
316 |
317 |
318 | 9740EEB11CF90186004384FC
319 |
320 | children
321 |
322 | 9740EEB71CF902C7004384FC
323 | 3B80C3931E831B6300D905FE
324 | 3B3967151E833CAA004F5970
325 | 9740EEBA1CF902C7004384FC
326 | 9740EEB21CF90195004384FC
327 | 7AFA3C8E1D35360C0083082E
328 | 9740EEB31CF90195004384FC
329 |
330 | isa
331 | PBXGroup
332 | name
333 | Flutter
334 | sourceTree
335 | <group>
336 |
337 | 9740EEB21CF90195004384FC
338 |
339 | fileEncoding
340 | 4
341 | isa
342 | PBXFileReference
343 | lastKnownFileType
344 | text.xcconfig
345 | name
346 | Debug.xcconfig
347 | path
348 | Flutter/Debug.xcconfig
349 | sourceTree
350 | <group>
351 |
352 | 9740EEB31CF90195004384FC
353 |
354 | fileEncoding
355 | 4
356 | isa
357 | PBXFileReference
358 | lastKnownFileType
359 | text.xcconfig
360 | name
361 | Generated.xcconfig
362 | path
363 | Flutter/Generated.xcconfig
364 | sourceTree
365 | <group>
366 |
367 | 9740EEB41CF90195004384FC
368 |
369 | fileRef
370 | 9740EEB21CF90195004384FC
371 | isa
372 | PBXBuildFile
373 |
374 | 9740EEB51CF90195004384FC
375 |
376 | fileRef
377 | 9740EEB31CF90195004384FC
378 | isa
379 | PBXBuildFile
380 |
381 | 9740EEB61CF901F6004384FC
382 |
383 | buildActionMask
384 | 2147483647
385 | files
386 |
387 | inputPaths
388 |
389 | isa
390 | PBXShellScriptBuildPhase
391 | name
392 | Run Script
393 | outputPaths
394 |
395 | runOnlyForDeploymentPostprocessing
396 | 0
397 | shellPath
398 | /bin/sh
399 | shellScript
400 | /bin/sh "$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" build
401 |
402 | 9740EEB71CF902C7004384FC
403 |
404 | isa
405 | PBXFileReference
406 | lastKnownFileType
407 | file
408 | name
409 | app.flx
410 | path
411 | Flutter/app.flx
412 | sourceTree
413 | <group>
414 |
415 | 9740EEBA1CF902C7004384FC
416 |
417 | isa
418 | PBXFileReference
419 | lastKnownFileType
420 | wrapper.framework
421 | name
422 | Flutter.framework
423 | path
424 | Flutter/Flutter.framework
425 | sourceTree
426 | <group>
427 |
428 | 9740EEBB1CF902C7004384FC
429 |
430 | fileRef
431 | 9740EEB71CF902C7004384FC
432 | isa
433 | PBXBuildFile
434 |
435 | 978B8F6F1D3862AE00F588F7
436 |
437 | fileRef
438 | 7AFFD8EE1D35381100E5BB4D
439 | isa
440 | PBXBuildFile
441 |
442 | 97C146E51CF9000F007C117D
443 |
444 | children
445 |
446 | 9740EEB11CF90186004384FC
447 | 97C146F01CF9000F007C117D
448 | 97C146EF1CF9000F007C117D
449 | 1A692D6EF3D7EC3A1E951F2C
450 | 20574D7A7B02B9B267EE5902
451 |
452 | isa
453 | PBXGroup
454 | sourceTree
455 | <group>
456 |
457 | 97C146E61CF9000F007C117D
458 |
459 | attributes
460 |
461 | LastUpgradeCheck
462 | 0830
463 | ORGANIZATIONNAME
464 | The Chromium Authors
465 | TargetAttributes
466 |
467 | 97C146ED1CF9000F007C117D
468 |
469 | CreatedOnToolsVersion
470 | 7.3.1
471 |
472 |
473 |
474 | buildConfigurationList
475 | 97C146E91CF9000F007C117D
476 | compatibilityVersion
477 | Xcode 3.2
478 | developmentRegion
479 | English
480 | hasScannedForEncodings
481 | 0
482 | isa
483 | PBXProject
484 | knownRegions
485 |
486 | en
487 | Base
488 |
489 | mainGroup
490 | 97C146E51CF9000F007C117D
491 | productRefGroup
492 | 97C146EF1CF9000F007C117D
493 | projectDirPath
494 |
495 | projectReferences
496 |
497 | projectRoot
498 |
499 | targets
500 |
501 | 97C146ED1CF9000F007C117D
502 |
503 |
504 | 97C146E91CF9000F007C117D
505 |
506 | buildConfigurations
507 |
508 | 97C147031CF9000F007C117D
509 | 97C147041CF9000F007C117D
510 |
511 | defaultConfigurationIsVisible
512 | 0
513 | defaultConfigurationName
514 | Release
515 | isa
516 | XCConfigurationList
517 |
518 | 97C146EA1CF9000F007C117D
519 |
520 | buildActionMask
521 | 2147483647
522 | files
523 |
524 | 978B8F6F1D3862AE00F588F7
525 | 97C146F31CF9000F007C117D
526 | 1498D2341E8E89220040F4C2
527 |
528 | isa
529 | PBXSourcesBuildPhase
530 | runOnlyForDeploymentPostprocessing
531 | 0
532 |
533 | 97C146EB1CF9000F007C117D
534 |
535 | buildActionMask
536 | 2147483647
537 | files
538 |
539 | 9705A1C61CF904A100538489
540 | 3B80C3941E831B6300D905FE
541 | ED97BEBF7048E1FE51D95D6F
542 |
543 | isa
544 | PBXFrameworksBuildPhase
545 | runOnlyForDeploymentPostprocessing
546 | 0
547 |
548 | 97C146EC1CF9000F007C117D
549 |
550 | buildActionMask
551 | 2147483647
552 | files
553 |
554 | 9740EEBB1CF902C7004384FC
555 | 97C147011CF9000F007C117D
556 | 9740EEB51CF90195004384FC
557 | 3B3967161E833CAA004F5970
558 | 9740EEB41CF90195004384FC
559 | 97C146FE1CF9000F007C117D
560 | 97C146FC1CF9000F007C117D
561 |
562 | isa
563 | PBXResourcesBuildPhase
564 | runOnlyForDeploymentPostprocessing
565 | 0
566 |
567 | 97C146ED1CF9000F007C117D
568 |
569 | buildConfigurationList
570 | 97C147051CF9000F007C117D
571 | buildPhases
572 |
573 | 86990ABD713093759D4FE98A
574 | 9740EEB61CF901F6004384FC
575 | 97C146EA1CF9000F007C117D
576 | 97C146EB1CF9000F007C117D
577 | 97C146EC1CF9000F007C117D
578 | 9705A1C41CF9048500538489
579 | 3B06AD1E1E4923F5004D2608
580 | 3D9940EDF39B836667A4B5E8
581 | 63EC34FF1CA0C447F07EDAFF
582 |
583 | buildRules
584 |
585 | dependencies
586 |
587 | isa
588 | PBXNativeTarget
589 | name
590 | Runner
591 | productName
592 | Runner
593 | productReference
594 | 97C146EE1CF9000F007C117D
595 | productType
596 | com.apple.product-type.application
597 |
598 | 97C146EE1CF9000F007C117D
599 |
600 | explicitFileType
601 | wrapper.application
602 | includeInIndex
603 | 0
604 | isa
605 | PBXFileReference
606 | path
607 | Runner.app
608 | sourceTree
609 | BUILT_PRODUCTS_DIR
610 |
611 | 97C146EF1CF9000F007C117D
612 |
613 | children
614 |
615 | 97C146EE1CF9000F007C117D
616 |
617 | isa
618 | PBXGroup
619 | name
620 | Products
621 | sourceTree
622 | <group>
623 |
624 | 97C146F01CF9000F007C117D
625 |
626 | children
627 |
628 | 7AFFD8ED1D35381100E5BB4D
629 | 7AFFD8EE1D35381100E5BB4D
630 | 97C146FA1CF9000F007C117D
631 | 97C146FD1CF9000F007C117D
632 | 97C146FF1CF9000F007C117D
633 | 97C147021CF9000F007C117D
634 | 97C146F11CF9000F007C117D
635 | 1498D2321E8E86230040F4C2
636 | 1498D2331E8E89220040F4C2
637 |
638 | isa
639 | PBXGroup
640 | path
641 | Runner
642 | sourceTree
643 | <group>
644 |
645 | 97C146F11CF9000F007C117D
646 |
647 | children
648 |
649 | 97C146F21CF9000F007C117D
650 |
651 | isa
652 | PBXGroup
653 | name
654 | Supporting Files
655 | sourceTree
656 | <group>
657 |
658 | 97C146F21CF9000F007C117D
659 |
660 | isa
661 | PBXFileReference
662 | lastKnownFileType
663 | sourcecode.c.objc
664 | path
665 | main.m
666 | sourceTree
667 | <group>
668 |
669 | 97C146F31CF9000F007C117D
670 |
671 | fileRef
672 | 97C146F21CF9000F007C117D
673 | isa
674 | PBXBuildFile
675 |
676 | 97C146FA1CF9000F007C117D
677 |
678 | children
679 |
680 | 97C146FB1CF9000F007C117D
681 |
682 | isa
683 | PBXVariantGroup
684 | name
685 | Main.storyboard
686 | sourceTree
687 | <group>
688 |
689 | 97C146FB1CF9000F007C117D
690 |
691 | isa
692 | PBXFileReference
693 | lastKnownFileType
694 | file.storyboard
695 | name
696 | Base
697 | path
698 | Base.lproj/Main.storyboard
699 | sourceTree
700 | <group>
701 |
702 | 97C146FC1CF9000F007C117D
703 |
704 | fileRef
705 | 97C146FA1CF9000F007C117D
706 | isa
707 | PBXBuildFile
708 |
709 | 97C146FD1CF9000F007C117D
710 |
711 | isa
712 | PBXFileReference
713 | lastKnownFileType
714 | folder.assetcatalog
715 | path
716 | Assets.xcassets
717 | sourceTree
718 | <group>
719 |
720 | 97C146FE1CF9000F007C117D
721 |
722 | fileRef
723 | 97C146FD1CF9000F007C117D
724 | isa
725 | PBXBuildFile
726 |
727 | 97C146FF1CF9000F007C117D
728 |
729 | children
730 |
731 | 97C147001CF9000F007C117D
732 |
733 | isa
734 | PBXVariantGroup
735 | name
736 | LaunchScreen.storyboard
737 | sourceTree
738 | <group>
739 |
740 | 97C147001CF9000F007C117D
741 |
742 | isa
743 | PBXFileReference
744 | lastKnownFileType
745 | file.storyboard
746 | name
747 | Base
748 | path
749 | Base.lproj/LaunchScreen.storyboard
750 | sourceTree
751 | <group>
752 |
753 | 97C147011CF9000F007C117D
754 |
755 | fileRef
756 | 97C146FF1CF9000F007C117D
757 | isa
758 | PBXBuildFile
759 |
760 | 97C147021CF9000F007C117D
761 |
762 | isa
763 | PBXFileReference
764 | lastKnownFileType
765 | text.plist.xml
766 | path
767 | Info.plist
768 | sourceTree
769 | <group>
770 |
771 | 97C147031CF9000F007C117D
772 |
773 | baseConfigurationReference
774 | 9740EEB21CF90195004384FC
775 | buildSettings
776 |
777 | ALWAYS_SEARCH_USER_PATHS
778 | NO
779 | CLANG_ANALYZER_NONNULL
780 | YES
781 | CLANG_CXX_LANGUAGE_STANDARD
782 | gnu++0x
783 | CLANG_CXX_LIBRARY
784 | libc++
785 | CLANG_ENABLE_MODULES
786 | YES
787 | CLANG_ENABLE_OBJC_ARC
788 | YES
789 | CLANG_WARN_BOOL_CONVERSION
790 | YES
791 | CLANG_WARN_CONSTANT_CONVERSION
792 | YES
793 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE
794 | YES_ERROR
795 | CLANG_WARN_EMPTY_BODY
796 | YES
797 | CLANG_WARN_ENUM_CONVERSION
798 | YES
799 | CLANG_WARN_INFINITE_RECURSION
800 | YES
801 | CLANG_WARN_INT_CONVERSION
802 | YES
803 | CLANG_WARN_OBJC_ROOT_CLASS
804 | YES_ERROR
805 | CLANG_WARN_SUSPICIOUS_MOVE
806 | YES
807 | CLANG_WARN_UNREACHABLE_CODE
808 | YES
809 | CLANG_WARN__DUPLICATE_METHOD_MATCH
810 | YES
811 | CODE_SIGN_IDENTITY[sdk=iphoneos*]
812 | iPhone Developer
813 | COPY_PHASE_STRIP
814 | NO
815 | DEBUG_INFORMATION_FORMAT
816 | dwarf
817 | ENABLE_STRICT_OBJC_MSGSEND
818 | YES
819 | ENABLE_TESTABILITY
820 | YES
821 | GCC_C_LANGUAGE_STANDARD
822 | gnu99
823 | GCC_DYNAMIC_NO_PIC
824 | NO
825 | GCC_NO_COMMON_BLOCKS
826 | YES
827 | GCC_OPTIMIZATION_LEVEL
828 | 0
829 | GCC_PREPROCESSOR_DEFINITIONS
830 |
831 | DEBUG=1
832 | $(inherited)
833 |
834 | GCC_WARN_64_TO_32_BIT_CONVERSION
835 | YES
836 | GCC_WARN_ABOUT_RETURN_TYPE
837 | YES_ERROR
838 | GCC_WARN_UNDECLARED_SELECTOR
839 | YES
840 | GCC_WARN_UNINITIALIZED_AUTOS
841 | YES_AGGRESSIVE
842 | GCC_WARN_UNUSED_FUNCTION
843 | YES
844 | GCC_WARN_UNUSED_VARIABLE
845 | YES
846 | IPHONEOS_DEPLOYMENT_TARGET
847 | 8.0
848 | MTL_ENABLE_DEBUG_INFO
849 | YES
850 | ONLY_ACTIVE_ARCH
851 | YES
852 | SDKROOT
853 | iphoneos
854 | TARGETED_DEVICE_FAMILY
855 | 1,2
856 |
857 | isa
858 | XCBuildConfiguration
859 | name
860 | Debug
861 |
862 | 97C147041CF9000F007C117D
863 |
864 | baseConfigurationReference
865 | 7AFA3C8E1D35360C0083082E
866 | buildSettings
867 |
868 | ALWAYS_SEARCH_USER_PATHS
869 | NO
870 | CLANG_ANALYZER_NONNULL
871 | YES
872 | CLANG_CXX_LANGUAGE_STANDARD
873 | gnu++0x
874 | CLANG_CXX_LIBRARY
875 | libc++
876 | CLANG_ENABLE_MODULES
877 | YES
878 | CLANG_ENABLE_OBJC_ARC
879 | YES
880 | CLANG_WARN_BOOL_CONVERSION
881 | YES
882 | CLANG_WARN_CONSTANT_CONVERSION
883 | YES
884 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE
885 | YES_ERROR
886 | CLANG_WARN_EMPTY_BODY
887 | YES
888 | CLANG_WARN_ENUM_CONVERSION
889 | YES
890 | CLANG_WARN_INFINITE_RECURSION
891 | YES
892 | CLANG_WARN_INT_CONVERSION
893 | YES
894 | CLANG_WARN_OBJC_ROOT_CLASS
895 | YES_ERROR
896 | CLANG_WARN_SUSPICIOUS_MOVE
897 | YES
898 | CLANG_WARN_UNREACHABLE_CODE
899 | YES
900 | CLANG_WARN__DUPLICATE_METHOD_MATCH
901 | YES
902 | CODE_SIGN_IDENTITY[sdk=iphoneos*]
903 | iPhone Developer
904 | COPY_PHASE_STRIP
905 | NO
906 | DEBUG_INFORMATION_FORMAT
907 | dwarf-with-dsym
908 | ENABLE_NS_ASSERTIONS
909 | NO
910 | ENABLE_STRICT_OBJC_MSGSEND
911 | YES
912 | GCC_C_LANGUAGE_STANDARD
913 | gnu99
914 | GCC_NO_COMMON_BLOCKS
915 | YES
916 | GCC_WARN_64_TO_32_BIT_CONVERSION
917 | YES
918 | GCC_WARN_ABOUT_RETURN_TYPE
919 | YES_ERROR
920 | GCC_WARN_UNDECLARED_SELECTOR
921 | YES
922 | GCC_WARN_UNINITIALIZED_AUTOS
923 | YES_AGGRESSIVE
924 | GCC_WARN_UNUSED_FUNCTION
925 | YES
926 | GCC_WARN_UNUSED_VARIABLE
927 | YES
928 | IPHONEOS_DEPLOYMENT_TARGET
929 | 8.0
930 | MTL_ENABLE_DEBUG_INFO
931 | NO
932 | SDKROOT
933 | iphoneos
934 | TARGETED_DEVICE_FAMILY
935 | 1,2
936 | VALIDATE_PRODUCT
937 | YES
938 |
939 | isa
940 | XCBuildConfiguration
941 | name
942 | Release
943 |
944 | 97C147051CF9000F007C117D
945 |
946 | buildConfigurations
947 |
948 | 97C147061CF9000F007C117D
949 | 97C147071CF9000F007C117D
950 |
951 | defaultConfigurationIsVisible
952 | 0
953 | defaultConfigurationName
954 | Release
955 | isa
956 | XCConfigurationList
957 |
958 | 97C147061CF9000F007C117D
959 |
960 | baseConfigurationReference
961 | 9740EEB21CF90195004384FC
962 | buildSettings
963 |
964 | ARCHS
965 | arm64
966 | ASSETCATALOG_COMPILER_APPICON_NAME
967 | AppIcon
968 | ENABLE_BITCODE
969 | NO
970 | FRAMEWORK_SEARCH_PATHS
971 |
972 | $(inherited)
973 | $(PROJECT_DIR)/Flutter
974 |
975 | INFOPLIST_FILE
976 | Runner/Info.plist
977 | LD_RUNPATH_SEARCH_PATHS
978 | $(inherited) @executable_path/Frameworks
979 | LIBRARY_SEARCH_PATHS
980 |
981 | $(inherited)
982 | $(PROJECT_DIR)/Flutter
983 |
984 | PRODUCT_BUNDLE_IDENTIFIER
985 | me.samthompson.dartHub
986 | PRODUCT_NAME
987 | $(TARGET_NAME)
988 |
989 | isa
990 | XCBuildConfiguration
991 | name
992 | Debug
993 |
994 | 97C147071CF9000F007C117D
995 |
996 | baseConfigurationReference
997 | 7AFA3C8E1D35360C0083082E
998 | buildSettings
999 |
1000 | ARCHS
1001 | arm64
1002 | ASSETCATALOG_COMPILER_APPICON_NAME
1003 | AppIcon
1004 | ENABLE_BITCODE
1005 | NO
1006 | FRAMEWORK_SEARCH_PATHS
1007 |
1008 | $(inherited)
1009 | $(PROJECT_DIR)/Flutter
1010 |
1011 | INFOPLIST_FILE
1012 | Runner/Info.plist
1013 | LD_RUNPATH_SEARCH_PATHS
1014 | $(inherited) @executable_path/Frameworks
1015 | LIBRARY_SEARCH_PATHS
1016 |
1017 | $(inherited)
1018 | $(PROJECT_DIR)/Flutter
1019 |
1020 | PRODUCT_BUNDLE_IDENTIFIER
1021 | me.samthompson.dartHub
1022 | PRODUCT_NAME
1023 | $(TARGET_NAME)
1024 |
1025 | isa
1026 | XCBuildConfiguration
1027 | name
1028 | Release
1029 |
1030 | ED97BEBF7048E1FE51D95D6F
1031 |
1032 | fileRef
1033 | 8AFAC329CDF6D9AE11F62AA6
1034 | isa
1035 | PBXBuildFile
1036 |
1037 |
1038 | rootObject
1039 | 97C146E61CF9000F007C117D
1040 |
1041 |
1042 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 |
4 | @interface AppDelegate : FlutterAppDelegate
5 |
6 | @end
7 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.m:
--------------------------------------------------------------------------------
1 | #include "AppDelegate.h"
2 | #include "GeneratedPluginRegistrant.h"
3 |
4 | @implementation AppDelegate
5 |
6 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
7 | [GeneratedPluginRegistrant registerWithRegistry:self];
8 | // Override point for customization after application launch.
9 | return [super application:application didFinishLaunchingWithOptions:launchOptions];
10 | }
11 |
12 | @end
13 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | }
111 | ],
112 | "info" : {
113 | "version" : 1,
114 | "author" : "xcode"
115 | }
116 | }
117 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamThompson/dart_hub/1e2bb3b85edf36fd8257b2cd0132d143fbdba801/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamThompson/dart_hub/1e2bb3b85edf36fd8257b2cd0132d143fbdba801/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamThompson/dart_hub/1e2bb3b85edf36fd8257b2cd0132d143fbdba801/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamThompson/dart_hub/1e2bb3b85edf36fd8257b2cd0132d143fbdba801/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamThompson/dart_hub/1e2bb3b85edf36fd8257b2cd0132d143fbdba801/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamThompson/dart_hub/1e2bb3b85edf36fd8257b2cd0132d143fbdba801/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamThompson/dart_hub/1e2bb3b85edf36fd8257b2cd0132d143fbdba801/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamThompson/dart_hub/1e2bb3b85edf36fd8257b2cd0132d143fbdba801/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamThompson/dart_hub/1e2bb3b85edf36fd8257b2cd0132d143fbdba801/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamThompson/dart_hub/1e2bb3b85edf36fd8257b2cd0132d143fbdba801/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamThompson/dart_hub/1e2bb3b85edf36fd8257b2cd0132d143fbdba801/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamThompson/dart_hub/1e2bb3b85edf36fd8257b2cd0132d143fbdba801/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamThompson/dart_hub/1e2bb3b85edf36fd8257b2cd0132d143fbdba801/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamThompson/dart_hub/1e2bb3b85edf36fd8257b2cd0132d143fbdba801/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | DartHub
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | arm64
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 | UISupportedInterfaceOrientations~ipad
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationPortraitUpsideDown
43 | UIInterfaceOrientationLandscapeLeft
44 | UIInterfaceOrientationLandscapeRight
45 |
46 | UIViewControllerBasedStatusBarAppearance
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/ios/Runner/main.m:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 | #import "AppDelegate.h"
4 |
5 | int main(int argc, char * argv[]) {
6 | @autoreleasepool {
7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/lib/interactor/manager/auth_manager.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 | import 'dart:convert';
3 | import 'package:dart_hub/keys.dart';
4 | import 'package:http/http.dart';
5 | import 'package:shared_preferences/shared_preferences.dart';
6 |
7 | class AuthManager {
8 |
9 | static const String KEY_USERNAME = 'KEY_USERNAME';
10 | static const String KEY_OAUTH_TOKEN = 'KEY_AUTH_TOKEN';
11 |
12 | bool get initialized => _initialized;
13 |
14 | bool get loggedIn => _loggedIn;
15 |
16 | String get username => _username;
17 |
18 | OauthClient get oauthClient => _oauthClient;
19 |
20 | final String _clientId = CLIENT_ID;
21 | final String _clientSecret = CLIENT_SECRET;
22 | final Client _client = new Client();
23 | bool _initialized;
24 | bool _loggedIn;
25 | String _username;
26 | OauthClient _oauthClient;
27 |
28 | Future init() async {
29 | SharedPreferences prefs = await SharedPreferences.getInstance();
30 | String username = prefs.getString(KEY_USERNAME);
31 | String oauthToken = prefs.getString(KEY_OAUTH_TOKEN);
32 |
33 | if (username == null || oauthToken == null) {
34 | _loggedIn = false;
35 | await logout();
36 | } else {
37 | _loggedIn = true;
38 | _username = username;
39 | _oauthClient = new OauthClient(_client, oauthToken);
40 | }
41 |
42 | _initialized = true;
43 | }
44 |
45 | Future login(String username, String password) async {
46 | var basicToken = _getEncodedAuthorization(username, password);
47 | final requestHeader = {
48 | 'Authorization': 'Basic ${basicToken}'
49 | };
50 | final requestBody = JSON.encode({
51 | 'client_id': _clientId,
52 | 'client_secret': _clientSecret,
53 | 'scopes': ['user', 'repo', 'notifications']
54 | });
55 |
56 | final loginResponse = await _client.post(
57 | 'https://api.github.com/authorizations',
58 | headers: requestHeader,
59 | body: requestBody)
60 | .whenComplete(_client.close);
61 |
62 | if (loginResponse.statusCode == 201) {
63 | final bodyJson = JSON.decode(loginResponse.body);
64 | await _saveTokens(username, bodyJson['token']);
65 | _loggedIn = true;
66 | } else {
67 | _loggedIn = false;
68 | }
69 |
70 | return _loggedIn;
71 | }
72 |
73 | Future logout() async {
74 | await _saveTokens(null, null);
75 | _loggedIn = false;
76 | }
77 |
78 | String _getEncodedAuthorization(String username, String password) {
79 | final authorizationBytes = UTF8.encode('${username}:${password}');
80 | return BASE64.encode(authorizationBytes);
81 | }
82 |
83 | Future _saveTokens(String username, String oauthToken) async {
84 | SharedPreferences prefs = await SharedPreferences.getInstance();
85 | prefs.setString(KEY_USERNAME, username);
86 | prefs.setString(KEY_OAUTH_TOKEN, oauthToken);
87 | await prefs.commit();
88 | _username = username;
89 | _oauthClient = new OauthClient(_client, oauthToken);
90 | }
91 | }
92 |
93 | class OauthClient extends _AuthClient {
94 | OauthClient(Client client, String token) : super(client, 'token ${token}');
95 | }
96 |
97 | abstract class _AuthClient extends BaseClient {
98 |
99 | final Client _client;
100 | final String _authorization;
101 |
102 | _AuthClient(this._client, this._authorization);
103 |
104 | @override
105 | Future send(BaseRequest request) {
106 | request.headers['Authorization'] = _authorization;
107 | return _client.send(request);
108 | }
109 | }
110 |
--------------------------------------------------------------------------------
/lib/interactor/manager/profile_manager.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 |
3 | import 'dart:convert';
4 | import 'package:dart_hub/model/user.dart';
5 | import 'package:dart_hub/interactor/manager/auth_manager.dart';
6 |
7 | class ProfileManager {
8 |
9 | final AuthManager _authManager;
10 | final String _username;
11 |
12 | ProfileManager(this._authManager, this._username);
13 |
14 | Future loadUser() async {
15 | var oauthClient = _authManager.oauthClient;
16 | var response = await oauthClient
17 | .get('https://api.github.com/users/${_username}')
18 | .whenComplete(oauthClient.close);
19 |
20 | if (response.statusCode == 200) {
21 | var decoded = JSON.decode(response.body);
22 | return new User.fromJson(decoded);
23 | } else {
24 | throw new Exception('Could not get current user');
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/lib/interactor/manager/repo_manager.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 | import 'dart:convert';
3 | import 'package:dart_hub/model/repo.dart';
4 | import 'package:dart_hub/interactor/manager/auth_manager.dart';
5 |
6 | class RepoManager {
7 |
8 | final AuthManager _authManager;
9 |
10 | RepoManager(this._authManager);
11 |
12 | Future loadRepo(String username, String repo) async {
13 | var oauthClient = _authManager.oauthClient;
14 | var response = await oauthClient
15 | .get('https://api.github.com/repos/${username}/${repo}')
16 | .whenComplete(oauthClient.close);
17 |
18 | if (response.statusCode == 200) {
19 | var json = JSON.decode(response.body);
20 | return new Repo.fromJson(json);
21 | } else {
22 | throw response.body;
23 | }
24 | }
25 | }
--------------------------------------------------------------------------------
/lib/interactor/paginator/base_paginator.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 | import 'dart:convert';
3 | import 'package:dart_hub/interactor/manager/auth_manager.dart';
4 | import 'package:dart_hub/ui/paginated_list/paginated_list_view.dart';
5 |
6 | abstract class BasePaginator extends Paginator {
7 |
8 | final AuthManager _authManager;
9 | final String _baseUrl;
10 | final RegExp _nextRegex = new RegExp('<(\.+)>; rel="next"');
11 |
12 | BasePaginator(this._authManager, this._baseUrl);
13 |
14 | T parseItem(itemJson);
15 |
16 | Future> loadPage(Bookmark bookmark) async {
17 | var url;
18 | if (bookmark.payload['next'] == null) {
19 | url = _baseUrl;
20 | } else {
21 | url = bookmark.payload['next'];
22 | }
23 |
24 | var oauthClient = _authManager.oauthClient;
25 | var response = await oauthClient
26 | .get(url)
27 | .whenComplete(oauthClient.close);
28 |
29 | if (response.statusCode == 200) {
30 | var nextBookmark;
31 | var link = response.headers['link'];
32 | if (link != null) {
33 | var match = _nextRegex.firstMatch(link);
34 | if (match != null) {
35 | nextBookmark = new Bookmark({'next': match.group(1)});
36 | }
37 | }
38 |
39 | return new Page(
40 | nextBookmark,
41 | JSON.decode(response.body)
42 | .map((itemJson) => parseItem(itemJson))
43 | .toList()
44 | );
45 | } else {
46 | throw 'Error loading items: ${response.body}';
47 | }
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/lib/interactor/paginator/event_paginator.dart:
--------------------------------------------------------------------------------
1 | import 'package:dart_hub/model/event.dart';
2 | import 'package:dart_hub/interactor/manager/auth_manager.dart';
3 | import 'package:dart_hub/interactor/paginator/base_paginator.dart';
4 | import 'package:dart_hub/interactor/paginator/paginator_factory.dart';
5 |
6 | class EventsPaginator extends BasePaginator {
7 |
8 | EventsPaginator(AuthManager authManager, String baseUrl)
9 | : super(authManager, baseUrl);
10 |
11 | EventsPaginator.receivedEvents(AuthManager authManager, String username)
12 | : this(
13 | authManager, 'https://api.github.com/users/${username}/received_events');
14 |
15 | EventsPaginator.performedEvents(AuthManager authManager, String username)
16 | : this(authManager, 'https://api.github.com/users/${username}/events');
17 |
18 | EventsPaginator.repoEvents(AuthManager authManager, String username, String repo)
19 | : this(authManager, 'https://api.github.com/repos/${username}/${repo}/events');
20 |
21 | @override
22 | Event parseItem(itemJson) {
23 | return new Event.fromJson(itemJson);
24 | }
25 | }
26 |
27 | class ReceivedEventsPaginatorFactory extends PaginatorFactory {
28 |
29 | final AuthManager _authManager;
30 | final String _username;
31 |
32 | ReceivedEventsPaginatorFactory(this._authManager, this._username);
33 |
34 | @override
35 | EventsPaginator buildPaginator() {
36 | return new EventsPaginator.receivedEvents(_authManager, _username);
37 | }
38 | }
39 |
40 | class PerformedEventsPaginatorFactory extends PaginatorFactory {
41 |
42 | final AuthManager _authManager;
43 | final String _username;
44 |
45 | PerformedEventsPaginatorFactory(this._authManager, this._username);
46 |
47 | @override
48 | EventsPaginator buildPaginator() {
49 | return new EventsPaginator.performedEvents(_authManager, _username);
50 | }
51 | }
52 |
53 | class RepoEventsPaginatorFactory extends PaginatorFactory {
54 |
55 | final AuthManager _authManager;
56 | final String _username;
57 | final String _repo;
58 |
59 | RepoEventsPaginatorFactory(this._authManager, this._username, this._repo);
60 |
61 | @override
62 | EventsPaginator buildPaginator() {
63 | return new EventsPaginator.repoEvents(_authManager, _username, _repo);
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/lib/interactor/paginator/notif_paginator.dart:
--------------------------------------------------------------------------------
1 | import 'package:dart_hub/model/notif.dart';
2 | import 'package:dart_hub/interactor/manager/auth_manager.dart';
3 | import 'package:dart_hub/interactor/paginator/base_paginator.dart';
4 | import 'package:dart_hub/interactor/paginator/paginator_factory.dart';
5 |
6 | class NotifPaginator extends BasePaginator {
7 |
8 | NotifPaginator(AuthManager authManager)
9 | : super(authManager, 'https://api.github.com/notifications');
10 |
11 | @override
12 | Notif parseItem(itemJson) {
13 | return new Notif.fromJson(itemJson);
14 | }
15 | }
16 |
17 | class NotifPaginatorFactory extends PaginatorFactory {
18 | final AuthManager _authManager;
19 |
20 | NotifPaginatorFactory(this._authManager);
21 |
22 | @override
23 | NotifPaginator buildPaginator() {
24 | return new NotifPaginator(_authManager);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/lib/interactor/paginator/paginator_factory.dart:
--------------------------------------------------------------------------------
1 | import 'package:dart_hub/ui/paginated_list/paginated_list_view.dart';
2 |
3 | abstract class PaginatorFactory {
4 | Paginator buildPaginator();
5 | }
6 |
--------------------------------------------------------------------------------
/lib/interactor/paginator/repo_list_paginator.dart:
--------------------------------------------------------------------------------
1 | import 'package:dart_hub/model/repo.dart';
2 | import 'package:dart_hub/interactor/manager/auth_manager.dart';
3 | import 'package:dart_hub/interactor/paginator/base_paginator.dart';
4 | import 'package:dart_hub/interactor/paginator/paginator_factory.dart';
5 | import 'package:dart_hub/ui/paginated_list/paginated_list_view.dart';
6 |
7 | class RepoListPaginator extends BasePaginator {
8 |
9 | RepoListPaginator(AuthManager authManager, String url)
10 | : super(authManager, url);
11 |
12 | RepoListPaginator.reposForUsername(AuthManager authManager,
13 | String username, [String sort = 'pushed'])
14 | : this(authManager, 'https://api.github.com/users/${username}/repos?sort=${sort}');
15 |
16 | RepoListPaginator.forks(AuthManager authManager, String username, String repo)
17 | : this(authManager, 'https://api.github.com/repos/${username}/${repo}/forks');
18 |
19 | @override
20 | Repo parseItem(itemJson) {
21 | return new Repo.fromJson(itemJson);
22 | }
23 | }
24 |
25 | class RepoListPaginatorFactory extends PaginatorFactory {
26 |
27 | final AuthManager _authManager;
28 | final String _username;
29 |
30 | RepoListPaginatorFactory(this._authManager, this._username);
31 |
32 | @override
33 | RepoListPaginator buildPaginator() {
34 | return new RepoListPaginator.reposForUsername(_authManager, _username);
35 | }
36 | }
37 |
38 | class ForksPaginatorFactory extends PaginatorFactory {
39 | final AuthManager _authManager;
40 | final String _username;
41 | final String _repo;
42 |
43 | ForksPaginatorFactory(this._authManager, this._username, this._repo);
44 |
45 |
46 | @override
47 | Paginator buildPaginator() {
48 | return new RepoListPaginator.forks(_authManager, _username, _repo);
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/lib/interactor/paginator/user_paginator.dart:
--------------------------------------------------------------------------------
1 | import 'package:dart_hub/model/user.dart';
2 | import 'package:dart_hub/interactor/manager/auth_manager.dart';
3 | import 'package:dart_hub/interactor/paginator/base_paginator.dart';
4 | import 'package:dart_hub/interactor/paginator/paginator_factory.dart';
5 | import 'package:dart_hub/ui/paginated_list/paginated_list_view.dart';
6 |
7 | class UserPaginator extends BasePaginator {
8 | UserPaginator(AuthManager authManager, String baseUrl)
9 | : super(authManager, baseUrl);
10 |
11 | UserPaginator.followingForUsername(AuthManager authManager, String username)
12 | : this(authManager, 'https://api.github.com/users/${username}/following');
13 |
14 | UserPaginator.followersForUsername(AuthManager authManager, String username)
15 | : this(authManager, 'https://api.github.com/users/${username}/followers');
16 |
17 | UserPaginator.stargazers(AuthManager authManager,
18 | String username,
19 | String repo) : this(
20 | authManager,
21 | 'https://api.github.com/repos/${username}/${repo}/stargazers'
22 | );
23 |
24 | UserPaginator.subscribers(AuthManager authManager,
25 | String username,
26 | String repo) : this(
27 | authManager,
28 | 'https://api.github.com/repos/${username}/${repo}/stargazers'
29 | );
30 |
31 | @override
32 | User parseItem(itemJson) {
33 | return new User.fromJson(itemJson);
34 | }
35 | }
36 |
37 | class FollowingPaginatorFactory extends PaginatorFactory {
38 |
39 | final AuthManager _authManager;
40 | final String _username;
41 |
42 | FollowingPaginatorFactory(this._authManager, this._username);
43 |
44 | @override
45 | UserPaginator buildPaginator() {
46 | return new UserPaginator.followingForUsername(_authManager, _username);
47 | }
48 | }
49 |
50 | class FollowersPaginatorFactory extends PaginatorFactory {
51 |
52 | final AuthManager _authManager;
53 | final String _username;
54 |
55 | FollowersPaginatorFactory(this._authManager, this._username);
56 |
57 | @override
58 | UserPaginator buildPaginator() {
59 | return new UserPaginator.followersForUsername(_authManager, _username);
60 | }
61 | }
62 |
63 | class StargazersPaginatorFactory extends PaginatorFactory {
64 |
65 | final AuthManager _authManager;
66 | final String _username;
67 | final String _repo;
68 |
69 | StargazersPaginatorFactory(this._authManager, this._username, this._repo);
70 |
71 | @override
72 | Paginator buildPaginator() {
73 | return new UserPaginator.stargazers(_authManager, _username, _repo);
74 | }
75 | }
76 |
77 | class SubscribersPaginatorFactory extends PaginatorFactory {
78 |
79 | final AuthManager _authManager;
80 | final String _username;
81 | final String _repo;
82 |
83 | SubscribersPaginatorFactory(this._authManager, this._username, this._repo);
84 |
85 | @override
86 | Paginator buildPaginator() {
87 | return new UserPaginator.subscribers(_authManager, _username, _repo);
88 | }
89 | }
90 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:dart_hub/ui/app.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | void main() {
5 | runApp(new DartHubApp());
6 | }
7 |
--------------------------------------------------------------------------------
/lib/model/date_utils.dart:
--------------------------------------------------------------------------------
1 | DateTime dateTimeFromString(String stringDateTime) {
2 | if (stringDateTime != null) {
3 | return DateTime.parse(stringDateTime);
4 | } else {
5 | return null;
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/lib/model/event.dart:
--------------------------------------------------------------------------------
1 | import 'package:dart_hub/model/pull_request.dart';
2 |
3 | class Event {
4 |
5 | final String id;
6 | final EventType type;
7 | final EventActor actor;
8 | final EventActor org;
9 | final EventRepo repo;
10 | final EventPayload payload;
11 |
12 | const Event(this.id, this.type, this.actor, this.org, this.repo,
13 | this.payload);
14 |
15 | factory Event.fromJson(json) {
16 | if (json == null) {
17 | return null;
18 | } else {
19 | return new Event(json['id'],
20 | eventTypeFromString(json['type']),
21 | new EventActor.fromJson(json['actor']),
22 | new EventActor.fromJson(json['org']),
23 | new EventRepo.fromJson(json['repo']),
24 | new EventPayload.fromJson(json['payload'])
25 | );
26 | }
27 | }
28 |
29 | @override
30 | String toString() {
31 | return 'Event{id: $id, type: $type, actor: $actor, org: $org, repo: $repo}';
32 | }
33 | }
34 |
35 | enum EventType {
36 | CreateEvent,
37 | DeleteEvent,
38 | ForkEvent,
39 | PullRequestEvent,
40 | PushEvent,
41 | MemberEvent,
42 | WatchEvent,
43 | Unknown
44 | }
45 |
46 | EventType eventTypeFromString(String eventTypeString) {
47 | switch (eventTypeString) {
48 | case 'CreateEvent':
49 | return EventType.CreateEvent;
50 | case 'DeleteEvent':
51 | return EventType.DeleteEvent;
52 | case 'ForkEvent':
53 | return EventType.ForkEvent;
54 | case 'PushEvent':
55 | return EventType.PushEvent;
56 | case 'PullRequestEvent':
57 | return EventType.PullRequestEvent;
58 | case 'MemberEvent':
59 | return EventType.MemberEvent;
60 | case 'WatchEvent':
61 | return EventType.WatchEvent;
62 | default:
63 | return EventType.Unknown;
64 | }
65 | }
66 |
67 | class EventActor {
68 | final int id;
69 | final String name;
70 | final String login;
71 | final String avatarUrl;
72 |
73 | const EventActor(this.id, this.name, this.login, this.avatarUrl);
74 |
75 | factory EventActor.fromJson(json) {
76 | if (json == null) {
77 | return null;
78 | } else {
79 | return new EventActor(
80 | json['id'], json['name'], json['login'], json['avatar_url']);
81 | }
82 | }
83 |
84 | @override
85 | String toString() {
86 | return 'EventActor{id: $id, name: $name, login: $login, avatarUrl: $avatarUrl}';
87 | }
88 | }
89 |
90 | class EventRepo {
91 | final int id;
92 | final String name;
93 | final String url;
94 |
95 | const EventRepo(this.id, this.name, this.url);
96 |
97 | factory EventRepo.fromJson(json) {
98 | if (json == null) {
99 | return null;
100 | } else {
101 | return new EventRepo(json['id'], json['name'], json['url']);
102 | }
103 | }
104 |
105 | @override
106 | String toString() {
107 | return 'EventRepo{id: $id, name: $name, url: $url}';
108 | }
109 | }
110 |
111 | enum EventPayloadType {
112 | Branch,
113 | User,
114 | Unknown
115 | }
116 |
117 | EventPayloadType eventPayloadTypeFromString(String eventPayloadTypeString) {
118 | switch (eventPayloadTypeString) {
119 | case 'branch':
120 | return EventPayloadType.Branch;
121 | case 'user':
122 | return EventPayloadType.User;
123 | default:
124 | return EventPayloadType.Unknown;
125 | }
126 | }
127 |
128 | enum EventActionType {
129 | Closed,
130 | Opened,
131 | Unknown
132 | }
133 |
134 | EventActionType eventActionTypeFromString(String eventActionTypeString) {
135 | switch (eventActionTypeString) {
136 | case 'closed':
137 | return EventActionType.Closed;
138 | case 'opened':
139 | return EventActionType.Opened;
140 | default:
141 | return EventActionType.Unknown;
142 | }
143 | }
144 |
145 | class EventPayload {
146 | final EventActionType action;
147 | final String ref;
148 | final EventPayloadType refType;
149 | final EventPayloadType pusherType;
150 | final String description;
151 | final int number;
152 | final int size;
153 | final PullRequest pullRequest;
154 |
155 | EventPayload(this.action, this.ref, this.refType, this.pusherType,
156 | this.description, this.number, this.size, this.pullRequest);
157 |
158 | factory EventPayload.fromJson(json) {
159 | if (json == null) {
160 | return null;
161 | } else {
162 | return new EventPayload(
163 | eventActionTypeFromString(json['action']),
164 | json['ref'],
165 | eventPayloadTypeFromString(json['ref_type']),
166 | eventPayloadTypeFromString(json['pusher_type']),
167 | json['description'],
168 | json['number'],
169 | json['size'],
170 | new PullRequest.fromJson(json['pull_request'])
171 | );
172 | }
173 | }
174 | }
175 |
--------------------------------------------------------------------------------
/lib/model/notif.dart:
--------------------------------------------------------------------------------
1 | import 'package:dart_hub/model/date_utils.dart';
2 | import 'package:dart_hub/model/repo.dart';
3 |
4 | class Notif {
5 | final String id;
6 | final Repo repo;
7 | final NotifSubject subject;
8 | final String reason;
9 | final bool unread;
10 | final DateTime updatedAt;
11 | final DateTime lastReadAt;
12 | final String url;
13 |
14 | const Notif(this.id, this.repo, this.subject, this.reason, this.unread,
15 | this.updatedAt, this.lastReadAt, this.url);
16 |
17 | factory Notif.fromJson(json) {
18 | if (json == null) {
19 | return null;
20 | } else {
21 | return new Notif(
22 | json['id'],
23 | new Repo.fromJson(json['repository']),
24 | new NotifSubject.fromJson(json['subject']),
25 | json['reason'],
26 | json['unread'],
27 | dateTimeFromString(json['updated_at']),
28 | dateTimeFromString(json['updated_at']),
29 | json['url']);
30 | }
31 | }
32 |
33 | @override
34 | String toString() {
35 | return 'Notif{id: $id, repo: $repo, subject: $subject, reason: $reason, unread: $unread, updatedAt: $updatedAt, lastReadAt: $lastReadAt, url: $url}';
36 | }
37 | }
38 |
39 | enum NotifSubjectType {
40 | Issue,
41 | Unknown
42 | }
43 |
44 | NotifSubjectType notifSubjectTypeFromString(String stringType) {
45 | switch (stringType) {
46 | case 'Issue':
47 | return NotifSubjectType.Issue;
48 | break;
49 | default:
50 | return NotifSubjectType.Unknown;
51 | }
52 | }
53 |
54 | class NotifSubject {
55 | final String title;
56 | final String url;
57 | final String latestCommentUrl;
58 | final NotifSubjectType type;
59 |
60 | const NotifSubject(this.title, this.url, this.latestCommentUrl, this.type);
61 |
62 | factory NotifSubject.fromJson(json) {
63 | if (json == null) {
64 | return null;
65 | } else {
66 | return new NotifSubject(
67 | json['title'],
68 | json['url'],
69 | json['latest_comment_url'],
70 | notifSubjectTypeFromString(json['type']));
71 | }
72 | }
73 |
74 | @override
75 | String toString() {
76 | return 'NotifSubject{title: $title, url: $url, latestCommentUrl: $latestCommentUrl, type: $type}';
77 | }
78 |
79 | }
80 |
--------------------------------------------------------------------------------
/lib/model/pull_request.dart:
--------------------------------------------------------------------------------
1 | class PullRequest {
2 |
3 | final String title;
4 | final int number;
5 |
6 | PullRequest(this.title, this.number);
7 |
8 | factory PullRequest.fromJson(json) {
9 | if (json == null) {
10 | return null;
11 | } else {
12 | return new PullRequest(json['title'], json['number']);
13 | }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/lib/model/repo.dart:
--------------------------------------------------------------------------------
1 | import 'package:dart_hub/model/user.dart';
2 |
3 | class Repo {
4 | final int id;
5 | final User owner;
6 | final String name;
7 | final String fullName;
8 | final String description;
9 | final bool private;
10 | final bool fork;
11 | final String url;
12 | final int stargazersCount;
13 | final int forksCount;
14 | final int subscribersCount;
15 | final Repo parent;
16 | final int openIssues;
17 |
18 | const Repo(this.id, this.owner, this.name, this.fullName, this.description,
19 | this.private, this.fork, this.url, this.stargazersCount, this.forksCount,
20 | this.subscribersCount, this.parent, this.openIssues);
21 |
22 | factory Repo.fromJson(json) {
23 | if (json == null) {
24 | return null;
25 | } else {
26 | return new Repo(
27 | json['id'],
28 | new User.fromJson(json['owner']),
29 | json['name'],
30 | json['full_name'],
31 | json['description'],
32 | json['private'],
33 | json['fork'],
34 | json['url'],
35 | json['stargazers_count'],
36 | json['forks_count'],
37 | json['subscribers_count'],
38 | new Repo.fromJson(json['parent']),
39 | json['open_issues']
40 | );
41 | }
42 | }
43 |
44 | @override
45 | String toString() {
46 | return 'Repo{id: $id, owner: $owner, name: $name, fullName: $fullName, description: $description, private: $private, fork: $fork, url: $url}';
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/lib/model/user.dart:
--------------------------------------------------------------------------------
1 | class User {
2 | final int id;
3 | final String name;
4 | final String login;
5 | final String avatarUrl;
6 | final int publicRepos;
7 | final int followers;
8 | final int following;
9 |
10 | const User(this.id, this.name, this.login, this.avatarUrl, this.publicRepos,
11 | this.followers, this.following);
12 |
13 | factory User.fromJson(json) {
14 | if (json == null) {
15 | return null;
16 | } else {
17 | return new User(
18 | json['id'],
19 | json['name'],
20 | json['login'],
21 | json['avatar_url'],
22 | json['public_repos'],
23 | json['followers'],
24 | json['following']
25 | );
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/lib/ui/app.dart:
--------------------------------------------------------------------------------
1 | import 'package:dart_hub/interactor/manager/auth_manager.dart';
2 | import 'package:dart_hub/ui/routes.dart';
3 | import 'package:dart_hub/ui/splash_screen.dart';
4 | import 'package:fluro/fluro.dart';
5 | import 'package:flutter/material.dart';
6 |
7 | class DartHubApp extends StatelessWidget {
8 |
9 | final Router router = new Router();
10 | final AuthManager _authManager = new AuthManager();
11 |
12 | DartHubApp() {
13 | configureRouter(router, _authManager);
14 | }
15 |
16 | @override
17 | Widget build(BuildContext context) {
18 | return new MaterialApp(
19 | title: 'DartHub',
20 | theme: new ThemeData(
21 | primarySwatch: Colors.blue,
22 | ),
23 | home: new SplashScreen(_authManager),
24 | onGenerateRoute: router.generator,
25 | );
26 | }
27 | }
28 |
29 |
30 |
--------------------------------------------------------------------------------
/lib/ui/events_view.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 | import 'package:dart_hub/model/event.dart';
3 | import 'package:dart_hub/interactor/paginator/event_paginator.dart';
4 | import 'package:dart_hub/ui/tiles/event_tile.dart';
5 | import 'package:dart_hub/ui/paginated_list/paginated_list_view.dart';
6 | import 'package:flutter/material.dart';
7 |
8 | class EventsView extends StatefulWidget {
9 |
10 | final ReceivedEventsPaginatorFactory _paginatorFactory;
11 | final String _username;
12 |
13 | EventsView(this._paginatorFactory, this._username);
14 |
15 | @override
16 | State createState() =>
17 | new _FeedViewState(_paginatorFactory, _username);
18 | }
19 |
20 | class _FeedViewState extends State {
21 |
22 | final ReceivedEventsPaginatorFactory _paginatorFactory;
23 | final String _username;
24 |
25 | EventsPaginator _paginator;
26 |
27 | _FeedViewState(this._paginatorFactory, this._username);
28 |
29 | @override
30 | void initState() {
31 | super.initState();
32 | _paginator = _paginatorFactory.buildPaginator();
33 | }
34 |
35 | Future _refresh() async {
36 | setState(() {
37 | _paginator = _paginatorFactory.buildPaginator();
38 | });
39 | }
40 |
41 | @override
42 | Widget build(BuildContext context) {
43 | return new RefreshIndicator(
44 | onRefresh: _refresh,
45 | child: new PaginatedListView(
46 | paginator: _paginator,
47 | itemBuilder: (BuildContext context, Event event) => new EventTile(event)
48 | )
49 | );
50 | }
51 | }
--------------------------------------------------------------------------------
/lib/ui/followers_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:dart_hub/model/user.dart';
2 | import 'package:dart_hub/interactor/paginator/user_paginator.dart';
3 | import 'package:dart_hub/ui/paginated_list_screen.dart';
4 | import 'package:dart_hub/ui/tiles/user_tile.dart';
5 | import 'package:flutter/material.dart';
6 |
7 | class FollowersScreen extends StatelessWidget {
8 |
9 | final FollowersPaginatorFactory _paginatorFactory;
10 | final String _username;
11 |
12 | FollowersScreen(this._paginatorFactory, this._username);
13 |
14 | @override
15 | Widget build(BuildContext context) {
16 | return new PaginatedListScreen(
17 | title: new Column(
18 | mainAxisAlignment: MainAxisAlignment.center,
19 | crossAxisAlignment: CrossAxisAlignment.center,
20 | children: [
21 | new Text(_username),
22 | new Text('Followers', style: new TextStyle(fontSize: 12.0))
23 | ]
24 | ),
25 | paginatorFactory: _paginatorFactory,
26 | itemBuilder: _buildFollowerTile,
27 | );
28 | }
29 |
30 | Widget _buildFollowerTile(BuildContext context, User user) {
31 | return new UserTile(user);
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/lib/ui/following_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:dart_hub/model/user.dart';
2 | import 'package:dart_hub/interactor/paginator/user_paginator.dart';
3 | import 'package:dart_hub/ui/paginated_list_screen.dart';
4 | import 'package:dart_hub/ui/tiles/user_tile.dart';
5 | import 'package:flutter/material.dart';
6 |
7 | class FollowingScreen extends StatelessWidget {
8 |
9 | final FollowingPaginatorFactory _paginatorFactory;
10 | final String _username;
11 |
12 | FollowingScreen(this._paginatorFactory, this._username);
13 |
14 | @override
15 | Widget build(BuildContext context) {
16 | return new PaginatedListScreen(
17 | title: new Column(
18 | mainAxisAlignment: MainAxisAlignment.center,
19 | crossAxisAlignment: CrossAxisAlignment.center,
20 | children: [
21 | new Text(_username),
22 | new Text('Following', style: new TextStyle(fontSize: 12.0))
23 | ]
24 | ),
25 | paginatorFactory: _paginatorFactory,
26 | itemBuilder: _buildFollowerTile,
27 | );
28 | }
29 |
30 | Widget _buildFollowerTile(BuildContext context, User user) {
31 | return new UserTile(user);
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/lib/ui/forks_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:dart_hub/model/repo.dart';
2 | import 'package:dart_hub/interactor/paginator/repo_list_paginator.dart';
3 | import 'package:dart_hub/ui/paginated_list_screen.dart';
4 | import 'package:dart_hub/ui/tiles/repo_tile.dart';
5 | import 'package:flutter/material.dart';
6 |
7 | class ForksScreen extends StatelessWidget {
8 |
9 | final ForksPaginatorFactory _paginatorFactory;
10 | final String _username;
11 | final String _repo;
12 |
13 | ForksScreen(this._paginatorFactory, this._username, this._repo);
14 |
15 | @override
16 | Widget build(BuildContext context) {
17 | return new PaginatedListScreen(
18 | title: new Column(
19 | mainAxisAlignment: MainAxisAlignment.center,
20 | crossAxisAlignment: CrossAxisAlignment.center,
21 | children: [
22 | new Text(_username),
23 | new Text(
24 | '${_repo} • Forks',
25 | style: const TextStyle(fontSize: 12.0)
26 | )
27 | ]
28 | ),
29 | paginatorFactory: _paginatorFactory,
30 | itemBuilder: _buildRepoTile,
31 | );
32 | }
33 |
34 | Widget _buildRepoTile(BuildContext context, Repo repo) {
35 | return new RepoTile(repo, fullname: true, subtitle: false);
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/lib/ui/home_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:dart_hub/interactor/manager/auth_manager.dart';
2 | import 'package:dart_hub/interactor/manager/profile_manager.dart';
3 | import 'package:dart_hub/interactor/paginator/event_paginator.dart';
4 | import 'package:dart_hub/interactor/paginator/notif_paginator.dart';
5 | import 'package:dart_hub/ui/events_view.dart';
6 | import 'package:dart_hub/ui/notif_view.dart';
7 | import 'package:dart_hub/ui/profile_view.dart';
8 | import 'package:dart_hub/ui/search_view.dart';
9 | import 'package:flutter/material.dart';
10 |
11 | class HomeScreen extends StatefulWidget {
12 |
13 | final AuthManager _authManager;
14 |
15 | HomeScreen(this._authManager);
16 |
17 | @override
18 | State createState() => new _HomeScreenState(_authManager);
19 | }
20 |
21 | class _HomeScreenState extends State with TickerProviderStateMixin {
22 |
23 | final AuthManager _authManager;
24 | int _currentIndex = 0;
25 | List _homeScreenItems;
26 |
27 | _HomeScreenState(this._authManager);
28 |
29 | @override
30 | void initState() {
31 | super.initState();
32 | _homeScreenItems = [
33 | new HomeScreenItem(
34 | icon: const Icon(Icons.rss_feed),
35 | title: const Text('Feed'),
36 | content: new EventsView(
37 | new ReceivedEventsPaginatorFactory(_authManager, _authManager.username),
38 | _authManager.username
39 | )
40 | ),
41 | new HomeScreenItem(
42 | icon: const Icon(Icons.notifications),
43 | title: const Text('Alerts'),
44 | content: new NotifView(new NotifPaginatorFactory(_authManager))
45 | ),
46 | new HomeScreenItem(
47 | icon: const Icon(Icons.person),
48 | title: const Text('Profile'),
49 | content: new ProfileView(
50 | new ProfileManager(_authManager, _authManager.username),
51 | new PerformedEventsPaginatorFactory(_authManager, _authManager.username),
52 | _authManager.username
53 | ),
54 | )
55 | ];
56 | }
57 |
58 | void _navBarItemSelected(int selected) {
59 | setState(() {
60 | _currentIndex = selected;
61 | });
62 | }
63 |
64 | void _overflow(OverflowItem selected) {
65 | switch (selected) {
66 | case OverflowItem.Settings:
67 | break;
68 | case OverflowItem.LogOut:
69 | _authManager.logout()
70 | .then((_) => Navigator.pushReplacementNamed(context, '/login'));
71 | break;
72 | }
73 | }
74 |
75 | @override
76 | Widget build(BuildContext context) {
77 | return new Scaffold(
78 | appBar: new AppBar(
79 | title: new Text('DartHub'),
80 | actions: [
81 | new PopupMenuButton(
82 | onSelected: _overflow,
83 | itemBuilder: (BuildContext context) {
84 | return [
85 | // new PopupMenuItem(value: OverflowItem.Settings,
86 | // child: new Text('Settings')),
87 | new PopupMenuItem(
88 | value: OverflowItem.LogOut, child: new Text('Log out'))
89 | ];
90 | })
91 | ],
92 | ),
93 | body: _homeScreenItems[_currentIndex].content,
94 | bottomNavigationBar: new BottomNavigationBar(
95 | currentIndex: _currentIndex,
96 | items: _homeScreenItems.map((HomeScreenItem item) => item.item)
97 | .toList(),
98 | onTap: _navBarItemSelected,
99 | ),
100 | );
101 | }
102 | }
103 |
104 | enum OverflowItem {
105 | Settings,
106 | LogOut
107 | }
108 |
109 | class HomeScreenItem {
110 |
111 | final BottomNavigationBarItem item;
112 | final Widget content;
113 |
114 | HomeScreenItem({Widget icon, Widget title, Widget content})
115 | : item = new BottomNavigationBarItem(icon: icon, title: title),
116 | content = content;
117 | }
118 |
--------------------------------------------------------------------------------
/lib/ui/login_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:dart_hub/interactor/manager/auth_manager.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | class LoginScreen extends StatefulWidget {
5 |
6 | final AuthManager _authManager;
7 |
8 | LoginScreen(this._authManager);
9 |
10 | @override
11 | State createState() => new _LoginScreenState(_authManager);
12 | }
13 |
14 | class _LoginScreenState extends State {
15 |
16 | final AuthManager _authManager;
17 | final _usernameController = new TextEditingController();
18 | final _passwordController = new TextEditingController();
19 |
20 | _LoginScreenState(this._authManager);
21 |
22 | void _handleSubmit() {
23 | _authManager.login(_usernameController.text, _passwordController.text)
24 | .then((success) {
25 | if (success) {
26 | Navigator.pushReplacementNamed(context, "/home");
27 | } else {
28 | // TODO show an error
29 | }
30 | });
31 | }
32 |
33 | @override
34 | Widget build(BuildContext context) {
35 | return new Scaffold(
36 | appBar: new AppBar(
37 | title: new Text("Login"),
38 | ),
39 | body: new Container(
40 | child: new Form(
41 | child: new Column(
42 | children: [
43 | new TextFormField(
44 | key: new Key('username'),
45 | decoration: new InputDecoration.collapsed(
46 | hintText: "Username or email"),
47 | autofocus: true,
48 | controller: _usernameController,
49 | ),
50 | new TextFormField(
51 | decoration: new InputDecoration.collapsed(
52 | hintText: 'Password'),
53 | controller: _passwordController,
54 | obscureText: true,
55 | ),
56 | new RaisedButton(
57 | child: new Text('Login'),
58 | onPressed: _handleSubmit
59 | )
60 | ],
61 | ),
62 | )
63 | )
64 | );
65 | }
66 | }
67 |
--------------------------------------------------------------------------------
/lib/ui/notif_view.dart:
--------------------------------------------------------------------------------
1 | import 'package:dart_hub/model/notif.dart';
2 | import 'package:dart_hub/interactor/paginator/notif_paginator.dart';
3 | import 'package:dart_hub/ui/paginated_list/paginated_list_view.dart';
4 | import 'package:flutter/material.dart';
5 |
6 | class NotifView extends StatefulWidget {
7 |
8 | final NotifPaginatorFactory _paginatorFactory;
9 |
10 | NotifView(this._paginatorFactory);
11 |
12 | @override
13 | State createState() =>
14 | new _NotifScreenState(_paginatorFactory);
15 | }
16 |
17 | class _NotifScreenState extends State {
18 |
19 | final NotifPaginatorFactory _paginatorFactory;
20 | NotifPaginator _paginator;
21 |
22 | _NotifScreenState(this._paginatorFactory);
23 |
24 | @override
25 | void initState() {
26 | super.initState();
27 | _paginator = _paginatorFactory.buildPaginator();
28 | }
29 |
30 | @override
31 | Widget build(BuildContext context) {
32 | return new PaginatedListView(
33 | paginator: _paginator,
34 | itemBuilder: _buildNotifTile,
35 | emptyViewBuilder: _buildEmptyView
36 | );
37 | }
38 |
39 | Widget _buildNotifTile(BuildContext context, Notif item) {
40 | return new ListTile(
41 | title: new Text(
42 | item.subject.title, style: new TextStyle(fontSize: 16.0),
43 | overflow: TextOverflow.ellipsis, maxLines: 2),
44 | subtitle: new Text(item.repo.fullName),
45 | trailing: item.unread ? new Icon(Icons.new_releases) : null,
46 | );
47 | }
48 |
49 | Widget _buildEmptyView(BuildContext context) {
50 | return new Center(
51 | child: new Text('No notifications')
52 | );
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/lib/ui/paginated_list/paginated_list_view.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 | import 'package:flutter/material.dart';
3 | import 'package:meta/meta.dart';
4 | import 'package:stream_ext/stream_ext.dart';
5 |
6 | typedef Widget LoadingViewBuilder(BuildContext context);
7 | typedef Widget EmptyViewBuilder(BuildContext context);
8 | typedef Widget ErrorViewBuilder(BuildContext context, Object error);
9 | typedef Widget ItemBuilder(BuildContext context, T item);
10 | typedef Widget LoadingBumperBuilder(BuildContext context);
11 |
12 | class Bookmark {
13 | final Map payload;
14 |
15 | const Bookmark(this.payload);
16 |
17 | @override
18 | bool operator ==(Object other) =>
19 | identical(this, other) ||
20 | other is Bookmark &&
21 | runtimeType == other.runtimeType &&
22 | payload == other.payload;
23 |
24 | @override
25 | int get hashCode => payload.hashCode;
26 |
27 | @override
28 | String toString() {
29 | return 'Bookmark{payload: $payload}';
30 | }
31 | }
32 |
33 | class Page {
34 | final List items;
35 | final Bookmark bookmark;
36 |
37 | const Page(this.bookmark, this.items);
38 |
39 | @override
40 | bool operator ==(Object other) =>
41 | identical(this, other) ||
42 | other is Page &&
43 | runtimeType == other.runtimeType &&
44 | items == other.items &&
45 | bookmark == other.bookmark;
46 |
47 | @override
48 | int get hashCode =>
49 | items.hashCode ^
50 | bookmark.hashCode;
51 |
52 | @override
53 | String toString() {
54 | return 'Page{items: $items, bookmark: $bookmark}';
55 | }
56 | }
57 |
58 | abstract class Paginator {
59 |
60 | final StreamController _nextPageRequests = new StreamController();
61 |
62 | Stream<_State> get stateStream => _stateStream;
63 |
64 | Stream<_State> _stateStream;
65 |
66 | Paginator() {
67 | _stateStream = _buildStateStream(_nextPageRequests);
68 | }
69 |
70 | Future> loadPage(Bookmark bookmark);
71 |
72 | void loadNextPage(Bookmark bookmark) {
73 | _nextPageRequests.add(bookmark);
74 | }
75 |
76 | Stream<_State> _buildStateStream(StreamController controller) {
77 | return StreamExt.scan(
78 | controller.stream
79 | .distinct((Bookmark item1, Bookmark item2) => item1 == item2)
80 | .asyncMap((Bookmark bookmark) => loadPage(bookmark)),
81 | new _State(null, null),
82 | _accumulate
83 | );
84 | }
85 |
86 | _State _accumulate(_State prevState, Page newPage) {
87 | var newItems;
88 | if (prevState.items != null) {
89 | prevState.items.addAll(newPage.items);
90 | newItems = prevState.items;
91 | } else {
92 | newItems = newPage.items;
93 | }
94 |
95 | return new _State(newItems, newPage.bookmark);
96 | }
97 | }
98 |
99 | class _State {
100 | final List items;
101 | final Bookmark nextBookmark;
102 |
103 | const _State(this.items, this.nextBookmark);
104 |
105 | @override
106 | String toString() {
107 | return '_State{items: $items, nextBookmark: $nextBookmark}';
108 | }
109 | }
110 |
111 | class PaginatedListView extends StatelessWidget {
112 |
113 | final Paginator _paginator;
114 | final ItemBuilder _itemBuilder;
115 | final LoadingViewBuilder _loadingViewBuilder;
116 | final EmptyViewBuilder _emptyViewBuilder;
117 | final ErrorViewBuilder _errorViewBuilder;
118 | final LoadingBumperBuilder _loadingBumperBuilder;
119 |
120 | const PaginatedListView({
121 | Key key,
122 | @required Paginator paginator,
123 | @required ItemBuilder itemBuilder,
124 | LoadingViewBuilder loadingViewBuilder = _buildDefaultLoadingView,
125 | EmptyViewBuilder emptyViewBuilder = _buildDefaultEmptyView,
126 | ErrorViewBuilder errorViewBuilder = _buildDefaultErrorView,
127 | LoadingBumperBuilder loadingBumperBuilder = _buildDefaultLoadingBumper
128 | })
129 | : _paginator = paginator,
130 | _itemBuilder = itemBuilder,
131 | _loadingViewBuilder = loadingViewBuilder,
132 | _emptyViewBuilder = emptyViewBuilder,
133 | _errorViewBuilder = errorViewBuilder,
134 | _loadingBumperBuilder = loadingBumperBuilder,
135 | super(key: key);
136 |
137 | @override
138 | Widget build(BuildContext context) {
139 | return new StreamBuilder<_State>(
140 | stream: _paginator.stateStream,
141 | builder: (BuildContext context, AsyncSnapshot<_State> snapshot) {
142 | if (snapshot.hasError) {
143 | return _errorViewBuilder(context, snapshot.error);
144 | }
145 |
146 | switch (snapshot.connectionState) {
147 | case ConnectionState.none:
148 | return _loadingViewBuilder(context);
149 | case ConnectionState.waiting:
150 | _paginator.loadNextPage(new Bookmark(new Map()));
151 | return _loadingViewBuilder(context);
152 | case ConnectionState.active:
153 | case ConnectionState.done:
154 | return _buildListView(context, snapshot.data);
155 | }
156 | }
157 | );
158 | }
159 |
160 | Widget _buildListView(BuildContext context, _State state) {
161 | var items = state.items;
162 | if (items.length > 0) {
163 | return new ListView.builder(
164 | itemCount: items.length + (state.nextBookmark != null ? 1 : 0),
165 | itemBuilder: (context, index) {
166 | if (index == items.length) {
167 | _paginator.loadNextPage(state.nextBookmark);
168 | return _loadingBumperBuilder(context);
169 | } else {
170 | return _itemBuilder(context, items[index]);
171 | }
172 | },
173 | );
174 | } else {
175 | return _emptyViewBuilder(context);
176 | }
177 | }
178 |
179 | static Widget _buildMessageView(String message) {
180 | return new Center(
181 | child: new Text(message)
182 | );
183 | }
184 |
185 | static Widget _buildDefaultLoadingView(BuildContext context) {
186 | return new Center(
187 | child: new CircularProgressIndicator()
188 | );
189 | }
190 |
191 | static Widget _buildDefaultEmptyView(BuildContext context) {
192 | return _buildMessageView('No content');
193 | }
194 |
195 | static Widget _buildDefaultErrorView(BuildContext context, Object error) {
196 | return _buildMessageView(error.toString());
197 | }
198 |
199 | static Widget _buildDefaultLoadingBumper(BuildContext context) {
200 | return new Center(
201 | child: new Padding(
202 | padding: new EdgeInsets.symmetric(vertical: 16.0),
203 | child: new CircularProgressIndicator()
204 | ),
205 | );
206 | }
207 | }
208 |
--------------------------------------------------------------------------------
/lib/ui/paginated_list_screen.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 | import 'package:dart_hub/model/user.dart';
3 | import 'package:dart_hub/interactor/paginator/paginator_factory.dart';
4 | import 'package:dart_hub/ui/paginated_list/paginated_list_view.dart';
5 | import 'package:flutter/material.dart';
6 |
7 | class PaginatedListScreen extends StatefulWidget {
8 |
9 | final PaginatorFactory _paginatorFactory;
10 | final ItemBuilder _itemBuilder;
11 | final Widget _title;
12 |
13 | const PaginatedListScreen({
14 | PaginatorFactory paginatorFactory,
15 | ItemBuilder itemBuilder,
16 | Widget title
17 | })
18 | : _paginatorFactory = paginatorFactory,
19 | _itemBuilder = itemBuilder,
20 | _title = title;
21 |
22 | @override
23 | State createState() =>
24 | new _PaginatedListScreenState(_paginatorFactory, _itemBuilder, _title);
25 | }
26 |
27 | class _PaginatedListScreenState extends State {
28 |
29 | final PaginatorFactory _paginatorFactory;
30 | final ItemBuilder _itemBuilder;
31 | final Widget _title;
32 |
33 | Paginator _paginator;
34 |
35 | _PaginatedListScreenState(this._paginatorFactory, this._itemBuilder,
36 | this._title);
37 |
38 | @override
39 | void initState() {
40 | super.initState();
41 | _paginator = _paginatorFactory.buildPaginator();
42 | }
43 |
44 | @override
45 | Widget build(BuildContext context) {
46 | return new Scaffold(
47 | appBar: new AppBar(
48 | title: _title
49 | ),
50 | body: new RefreshIndicator(
51 | onRefresh: _refresh,
52 | child: new PaginatedListView(
53 | paginator: _paginator,
54 | itemBuilder: _itemBuilder,
55 | )
56 | ),
57 | );
58 | }
59 |
60 | Future _refresh() async {
61 | setState(() {
62 | _paginator = _paginatorFactory.buildPaginator();
63 | });
64 | }
65 |
66 | Widget _buildFollowerTile(BuildContext context, User user) {
67 | return new ListTile(
68 | leading: new CircleAvatar(
69 | backgroundImage: new NetworkImage(user.avatarUrl),
70 | backgroundColor: Colors.grey
71 | ),
72 | title: new Text(user.login),
73 | onTap: () => Navigator.pushNamed(context, '/users/${user.login}')
74 | );
75 | }
76 | }
77 |
--------------------------------------------------------------------------------
/lib/ui/profile_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:dart_hub/interactor/manager/profile_manager.dart';
2 | import 'package:dart_hub/interactor/paginator/event_paginator.dart';
3 | import 'package:dart_hub/ui/profile_view.dart';
4 | import 'package:flutter/material.dart';
5 |
6 | class ProfileScreen extends StatelessWidget {
7 |
8 | final ProfileManager _profileManager;
9 | final PerformedEventsPaginatorFactory _paginatorFctory;
10 | final String _username;
11 |
12 | ProfileScreen(this._profileManager, this._paginatorFctory, this._username);
13 |
14 | @override
15 | Widget build(BuildContext context) {
16 | return new Scaffold(
17 | appBar: new AppBar(),
18 | body: new ProfileView(_profileManager, _paginatorFctory, _username),
19 | );
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/lib/ui/profile_view.dart:
--------------------------------------------------------------------------------
1 | import 'package:dart_hub/model/event.dart';
2 | import 'package:dart_hub/model/user.dart';
3 | import 'package:dart_hub/interactor/manager/profile_manager.dart';
4 | import 'package:dart_hub/interactor/paginator/event_paginator.dart';
5 | import 'package:dart_hub/ui/tiles/event_tile.dart';
6 | import 'package:dart_hub/ui/paginated_list/paginated_list_view.dart';
7 | import 'package:flutter/material.dart';
8 |
9 | class ProfileView extends StatefulWidget {
10 |
11 | final ProfileManager _profileManager;
12 | final PerformedEventsPaginatorFactory _paginatorFactory;
13 | final String _username;
14 |
15 | ProfileView(this._profileManager, this._paginatorFactory, this._username);
16 |
17 | @override
18 | State createState() =>
19 | new _ProfileViewState(_profileManager, _paginatorFactory, _username);
20 | }
21 |
22 | class _ProfileViewState extends State {
23 |
24 | final ProfileManager _profileManager;
25 | final PerformedEventsPaginatorFactory _paginatorFactory;
26 | final String _username;
27 |
28 | EventsPaginator _paginator;
29 |
30 | _ProfileViewState(this._profileManager,
31 | this._paginatorFactory,
32 | this._username);
33 |
34 | @override
35 | void initState() {
36 | super.initState();
37 | _paginator = _paginatorFactory.buildPaginator();
38 | }
39 |
40 | @override
41 | Widget build(BuildContext context) {
42 | return new Column(
43 | children: [
44 | _buildProfileView(),
45 | new Flexible(
46 | child: new PaginatedListView(
47 | paginator: _paginator,
48 | itemBuilder: (BuildContext context, Event events) => new EventTile(events),
49 | )
50 | )
51 | ]
52 | );
53 | }
54 |
55 | Widget _buildProfileView() {
56 | return new FutureBuilder(
57 | future: _profileManager.loadUser(),
58 | builder: (BuildContext context, AsyncSnapshot snapshot) {
59 | switch (snapshot.connectionState) {
60 | case ConnectionState.none:
61 | case ConnectionState.waiting:
62 | default:
63 | return _buildProfileHeader(snapshot.data);
64 | }
65 | },
66 | );
67 | }
68 |
69 | Widget _buildProfileHeader(User user) {
70 | user = user != null ? user : new User(
71 | -1,
72 | null,
73 | null,
74 | null,
75 | 0,
76 | 0,
77 | 0);
78 |
79 | return new Container(
80 | margin: new EdgeInsets.only(top: 16.0),
81 | child: new Column(
82 | mainAxisAlignment: MainAxisAlignment.center,
83 | mainAxisSize: MainAxisSize.min,
84 | crossAxisAlignment: CrossAxisAlignment.center,
85 | children: [
86 | _buildUserIdentity(user),
87 | new Padding(
88 | child: _buildUserInfo(user),
89 | padding: new EdgeInsets.only(top: 24.0, bottom: 8.0),
90 | ),
91 | new Divider()
92 | ],
93 | ),
94 | );
95 | }
96 |
97 | Widget _buildUserIdentity(User user) {
98 | return new Row(
99 | mainAxisAlignment: MainAxisAlignment.center,
100 | mainAxisSize: MainAxisSize.max,
101 | crossAxisAlignment: CrossAxisAlignment.center,
102 | children: [
103 | new Padding(
104 | child: new CircleAvatar(
105 | radius: 40.0,
106 | backgroundColor: Colors.grey,
107 | backgroundImage: user.avatarUrl != null ? new NetworkImage(
108 | user.avatarUrl) : null,
109 | ),
110 | padding: const EdgeInsets.only(right: 16.0),
111 | ),
112 | new Column(
113 | children: [
114 | new Padding(
115 | padding: const EdgeInsets.only(bottom: 4.0),
116 | child: new Text(
117 | user.name != null ? user.name : '',
118 | style: new TextStyle(fontWeight: FontWeight.bold)
119 | ),
120 | ),
121 | new Text(user.login != null ? user.login : '')
122 | ],
123 | )
124 | ]
125 | );
126 | }
127 |
128 | Widget _buildUserInfo(User user) {
129 | return new Row(
130 | mainAxisAlignment: MainAxisAlignment.center,
131 | mainAxisSize: MainAxisSize.max,
132 | crossAxisAlignment: CrossAxisAlignment.center,
133 | children: [
134 | new FlatButton(
135 | onPressed: () {
136 | Navigator.pushNamed(context, '/users/${user.login}/repos');
137 | },
138 | child: new Column(
139 | children: [
140 | new Text(user.publicRepos.toString()),
141 | const Text('Repositories')
142 | ],
143 | ),
144 | ),
145 | new FlatButton(
146 | onPressed: () {
147 | Navigator.pushNamed(context, '/users/${user.login}/followers');
148 | },
149 | child: new Column(
150 | children: [
151 | new Text(user.followers.toString()),
152 | const Text('Followers')
153 | ],
154 | )
155 | ),
156 | new FlatButton(
157 | onPressed: () {
158 | Navigator.pushNamed(context, '/users/${user.login}/following');
159 | },
160 | child: new Column(
161 | children: [
162 | new Text(user.following.toString()),
163 | const Text('Following')
164 | ],
165 | )
166 | ),
167 | ],
168 | );
169 | }
170 | }
171 |
--------------------------------------------------------------------------------
/lib/ui/repo_list_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:dart_hub/model/repo.dart';
2 | import 'package:dart_hub/interactor/paginator/repo_list_paginator.dart';
3 | import 'package:dart_hub/ui/paginated_list_screen.dart';
4 | import 'package:dart_hub/ui/tiles/repo_tile.dart';
5 | import 'package:flutter/material.dart';
6 |
7 | class RepoListScreen extends StatelessWidget {
8 |
9 | final RepoListPaginatorFactory _paginatorFactory;
10 | final String _username;
11 |
12 | RepoListScreen(this._paginatorFactory, this._username);
13 |
14 | @override
15 | Widget build(BuildContext context) {
16 | return new PaginatedListScreen(
17 | title: new Column(
18 | mainAxisAlignment: MainAxisAlignment.center,
19 | crossAxisAlignment: CrossAxisAlignment.center,
20 | children: [
21 | new Text(_username),
22 | new Text('Repositories', style: new TextStyle(fontSize: 12.0))
23 | ]
24 | ),
25 | paginatorFactory: _paginatorFactory,
26 | itemBuilder: _buildRepoTile,
27 | );
28 | }
29 |
30 | Widget _buildRepoTile(BuildContext context, Repo repo) {
31 | return new RepoTile(repo);
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/lib/ui/repo_screen.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 | import 'package:dart_hub/model/event.dart';
3 | import 'package:dart_hub/model/repo.dart';
4 | import 'package:dart_hub/interactor/manager/repo_manager.dart';
5 | import 'package:dart_hub/interactor/paginator/event_paginator.dart';
6 | import 'package:dart_hub/ui/tiles/event_tile.dart';
7 | import 'package:dart_hub/ui/paginated_list/paginated_list_view.dart';
8 | import 'package:flutter/material.dart';
9 |
10 | class RepoScreen extends StatefulWidget {
11 |
12 | final RepoManager _repoManager;
13 | final RepoEventsPaginatorFactory _paginatorFactory;
14 | final String _username;
15 | final String _repo;
16 |
17 | RepoScreen(this._repoManager, this._paginatorFactory, this._username,
18 | this._repo);
19 |
20 | @override
21 | State createState() =>
22 | new _RepoScreenState(_repoManager, _paginatorFactory, _username, _repo);
23 | }
24 |
25 | class _RepoScreenState extends State {
26 |
27 | final RepoManager _repoManager;
28 | final RepoEventsPaginatorFactory _paginatorFactory;
29 | final String _username;
30 | final String _repo;
31 |
32 | Future _future;
33 | EventsPaginator _paginator;
34 |
35 | _RepoScreenState(this._repoManager, this._paginatorFactory, this._username,
36 | this._repo);
37 |
38 | @override
39 | void initState() {
40 | super.initState();
41 | _future = _repoManager.loadRepo(_username, _repo);
42 | _paginator = _paginatorFactory.buildPaginator();
43 | }
44 |
45 | @override
46 | Widget build(BuildContext context) {
47 | return new Scaffold(
48 | appBar: new AppBar(
49 | title: new Column(
50 | mainAxisAlignment: MainAxisAlignment.center,
51 | crossAxisAlignment: CrossAxisAlignment.center,
52 | children: [
53 | new Text(_username),
54 | new Text(_repo, style: new TextStyle(fontSize: 12.0))
55 | ]
56 | )
57 | ),
58 | body: _buildBody(),
59 | );
60 | }
61 |
62 | Widget _buildBody() {
63 | return new Column(
64 | children: [
65 | _buildRepoView(),
66 | new Flexible(
67 | child: new PaginatedListView(
68 | paginator: _paginator,
69 | itemBuilder: (BuildContext context,
70 | Event events) => new EventTile(events),
71 | )
72 | )
73 | ]
74 | );
75 | }
76 |
77 | Widget _buildRepoView() {
78 | return new FutureBuilder(
79 | future: _future,
80 | builder: (BuildContext context, AsyncSnapshot snapshot) {
81 | if (snapshot.hasError) {
82 | return new Center(
83 | child: new Text(snapshot.error),
84 | );
85 | }
86 |
87 | switch (snapshot.connectionState) {
88 | case ConnectionState.none:
89 | case ConnectionState.waiting:
90 | return new Center(
91 | child: new CircularProgressIndicator(),
92 | );
93 | default:
94 | return new Column(
95 | children: [
96 | _buildRepoHeader(snapshot.data),
97 | const Divider()
98 | ]
99 | );
100 | }
101 | }
102 | );
103 | }
104 |
105 | Widget _buildRepoHeader(Repo repo) {
106 | var items = [];
107 |
108 | if (repo.fork) {
109 | items.add(
110 | new Padding(
111 | padding: const EdgeInsets.only(bottom: 16.0),
112 | child: new Text(
113 | repo.fork ? 'Forked from ${repo.parent.fullName}' : '',
114 | style: const TextStyle(
115 | fontSize: 12.0, fontStyle: FontStyle.italic),
116 | )
117 | )
118 | );
119 | }
120 |
121 | if (repo.description != null) {
122 | items.add(
123 | new Padding(
124 | padding: const EdgeInsets.only(bottom: 16.0),
125 | child: new Text(
126 | repo.description,
127 | maxLines: 3,
128 | overflow: TextOverflow.ellipsis,
129 | )
130 | )
131 | );
132 | }
133 |
134 | items.add(
135 | new Padding(
136 | padding: const EdgeInsets.only(bottom: 16.0),
137 | child: new Row(
138 | mainAxisAlignment: MainAxisAlignment.center,
139 | children: [
140 | _buildStatButton(
141 | repo.subscribersCount,
142 | const Icon(Icons.visibility, size: 14.0),
143 | () {
144 | Navigator.pushNamed(
145 | context, '/repos/${_username}/${_repo}/subscribers');
146 | }),
147 | _buildStatButton(
148 | repo.stargazersCount,
149 | const Icon(Icons.star, size: 14.0),
150 | () {
151 | Navigator.pushNamed(
152 | context, '/repos/${_username}/${_repo}/stargazers');
153 | }),
154 | _buildStatButton(
155 | repo.forksCount,
156 | const Icon(Icons.call_split, size: 14.0),
157 | () {
158 | Navigator.pushNamed(
159 | context, '/repos/${_username}/${_repo}/forks');
160 | })
161 | ],
162 | )
163 | )
164 | );
165 |
166 | items.add(
167 | new Row(
168 | mainAxisAlignment: MainAxisAlignment.center,
169 | children: [
170 | _buildStatButton(repo.openIssues, const Text('Issues'), () {}),
171 | _buildStatButton(
172 | repo.openIssues, const Text('Pull requests'), () {})
173 | ],
174 | )
175 | );
176 |
177 | return new Container(
178 | padding: const EdgeInsets.fromLTRB(16.0, 16.0, 16.0, 8.0),
179 | child: new Column(
180 | mainAxisAlignment: MainAxisAlignment.start,
181 | crossAxisAlignment: CrossAxisAlignment.center,
182 | children: items
183 | )
184 | );
185 | }
186 |
187 | Widget _buildStatButton(int count, Widget bottom, VoidCallback onPressed) {
188 | return new FlatButton(
189 | onPressed: onPressed,
190 | child: new Column(
191 | children: [
192 | new Text(count.toString()),
193 | new Padding(
194 | padding: const EdgeInsets.only(top: 2.0),
195 | child: bottom
196 | )
197 | ],
198 | )
199 | );
200 | }
201 | }
202 |
--------------------------------------------------------------------------------
/lib/ui/routes.dart:
--------------------------------------------------------------------------------
1 | import 'package:dart_hub/interactor/manager/auth_manager.dart';
2 | import 'package:dart_hub/interactor/manager/profile_manager.dart';
3 | import 'package:dart_hub/interactor/manager/repo_manager.dart';
4 | import 'package:dart_hub/interactor/paginator/event_paginator.dart';
5 | import 'package:dart_hub/interactor/paginator/repo_list_paginator.dart';
6 | import 'package:dart_hub/interactor/paginator/user_paginator.dart';
7 | import 'package:dart_hub/ui/followers_screen.dart';
8 | import 'package:dart_hub/ui/following_screen.dart';
9 | import 'package:dart_hub/ui/forks_screen.dart';
10 | import 'package:dart_hub/ui/repo_list_screen.dart';
11 | import 'package:dart_hub/ui/repo_screen.dart';
12 | import 'package:dart_hub/ui/home_screen.dart';
13 | import 'package:dart_hub/ui/login_screen.dart';
14 | import 'package:dart_hub/ui/profile_screen.dart';
15 | import 'package:dart_hub/ui/stargazers_screen.dart';
16 | import 'package:dart_hub/ui/subscribers_screen.dart';
17 | import 'package:fluro/fluro.dart';
18 | import 'package:flutter/material.dart';
19 |
20 | typedef Widget HandlerFunc(BuildContext context, Map params);
21 |
22 | HandlerFunc buildLoginHandler(AuthManager authManager) {
23 | return (BuildContext context, Map params) =>
24 | new LoginScreen(authManager);
25 | }
26 |
27 | HandlerFunc buildHomeHandler(AuthManager authManager) {
28 | return (BuildContext context, Map params) =>
29 | new HomeScreen(authManager);
30 | }
31 |
32 | HandlerFunc buildUserHandler(AuthManager authManager) {
33 | return (BuildContext context, Map params) =>
34 | new ProfileScreen(
35 | new ProfileManager(authManager, params['username']),
36 | new PerformedEventsPaginatorFactory(authManager, params['username']),
37 | params['username']);
38 | }
39 |
40 | HandlerFunc buildRepoListHandler(AuthManager authManager) {
41 | return (BuildContext context, Map params) =>
42 | new RepoListScreen(
43 | new RepoListPaginatorFactory(authManager, params['username']),
44 | params['username']);
45 | }
46 |
47 | HandlerFunc buildFollowersHandler(AuthManager authManager) {
48 | return (BuildContext context, Map params) =>
49 | new FollowersScreen(
50 | new FollowersPaginatorFactory(authManager, params['username']),
51 | params['username']);
52 | }
53 |
54 | HandlerFunc buildFollowingHandler(AuthManager authManager) {
55 | return (BuildContext context, Map params) =>
56 | new FollowingScreen(
57 | new FollowingPaginatorFactory(authManager, params['username']),
58 | params['username']);
59 | }
60 |
61 | HandlerFunc buildRepoHandler(AuthManager authManager) {
62 | return (BuildContext context, Map params) =>
63 | new RepoScreen(
64 | new RepoManager(authManager),
65 | new RepoEventsPaginatorFactory(authManager, params['owner'], params['repo']),
66 | params['owner'],
67 | params['repo']);
68 | }
69 |
70 | HandlerFunc buildSubscribersHandler(AuthManager authManager) {
71 | return (BuildContext context, Map params) =>
72 | new SubscribersScreen(
73 | new SubscribersPaginatorFactory(authManager, params['owner'], params['repo']),
74 | params['owner'],
75 | params['repo']);
76 | }
77 |
78 | HandlerFunc buildStargazersHandler(AuthManager authManager) {
79 | return (BuildContext context, Map params) =>
80 | new StargazersScreen(
81 | new StargazersPaginatorFactory(authManager, params['owner'], params['repo']),
82 | params['owner'],
83 | params['repo']);
84 | }
85 |
86 | HandlerFunc buildForksHandler(AuthManager authManager) {
87 | return (BuildContext context, Map params) =>
88 | new ForksScreen(
89 | new ForksPaginatorFactory(authManager, params['owner'], params['repo']),
90 | params['owner'],
91 | params['repo']);
92 | }
93 |
94 | void configureRouter(Router router, AuthManager authManager) {
95 | router.define(
96 | '/login',
97 | handler: new Handler(handlerFunc: buildLoginHandler(authManager))
98 | );
99 |
100 | router.define(
101 | '/home',
102 | handler: new Handler(handlerFunc: buildHomeHandler(authManager))
103 | );
104 |
105 | router.define(
106 | '/user',
107 | handler: new Handler(handlerFunc: buildUserHandler(authManager))
108 | );
109 |
110 | router.define(
111 | '/users/:username',
112 | handler: new Handler(handlerFunc: buildUserHandler(authManager))
113 | );
114 |
115 | router.define(
116 | '/user/repos',
117 | handler: new Handler(handlerFunc: buildRepoListHandler(authManager))
118 | );
119 |
120 | router.define(
121 | '/users/:username/repos',
122 | handler: new Handler(handlerFunc: buildRepoListHandler(authManager))
123 | );
124 |
125 | router.define(
126 | '/user/followers',
127 | handler: new Handler(handlerFunc: buildFollowersHandler(authManager))
128 | );
129 |
130 | router.define(
131 | '/users/:username/followers',
132 | handler: new Handler(handlerFunc: buildFollowersHandler(authManager))
133 | );
134 |
135 | router.define(
136 | '/user/following',
137 | handler: new Handler(handlerFunc: buildFollowingHandler(authManager))
138 | );
139 |
140 | router.define(
141 | '/users/:username/following',
142 | handler: new Handler(handlerFunc: buildFollowingHandler(authManager))
143 | );
144 |
145 | router.define(
146 | '/repos/:owner/:repo',
147 | handler: new Handler(handlerFunc: buildRepoHandler(authManager))
148 | );
149 |
150 | router.define(
151 | '/repos/:owner/:repo/stargazers',
152 | handler: new Handler(handlerFunc: buildStargazersHandler(authManager))
153 | );
154 |
155 | router.define(
156 | '/repos/:owner/:repo/subscribers',
157 | handler: new Handler(handlerFunc: buildSubscribersHandler(authManager))
158 | );
159 |
160 | router.define(
161 | '/repos/:owner/:repo/forks',
162 | handler: new Handler(handlerFunc: buildForksHandler(authManager))
163 | );
164 | }
165 |
--------------------------------------------------------------------------------
/lib/ui/search_view.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class SearchView extends StatefulWidget {
4 |
5 | @override
6 | State createState() => new _SearchViewState();
7 | }
8 |
9 | class _SearchViewState extends State {
10 |
11 | @override
12 | Widget build(BuildContext context) {
13 | return new Center(child: new Text('Coming soon'));
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/lib/ui/splash_screen.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 | import 'package:dart_hub/interactor/manager/auth_manager.dart';
3 | import 'package:flutter/material.dart';
4 |
5 | class SplashScreen extends StatefulWidget {
6 |
7 | final AuthManager _authManager;
8 |
9 | SplashScreen(this._authManager);
10 |
11 | @override
12 | State createState() => new _SplashState(_authManager);
13 | }
14 |
15 | class _SplashState extends State {
16 |
17 | final AuthManager _authManager;
18 |
19 | _SplashState(this._authManager);
20 |
21 | @override
22 | void initState() {
23 | super.initState();
24 | _init();
25 | }
26 |
27 | Future _init() async {
28 | await _authManager.init();
29 |
30 | String route;
31 | if (_authManager.loggedIn) {
32 | route = '/home';
33 | } else {
34 | route = '/login';
35 | }
36 |
37 | Navigator.pushReplacementNamed(context, route);
38 | }
39 |
40 | @override
41 | Widget build(BuildContext context) {
42 | return new Scaffold(
43 | body: new Center(
44 | child: new CircularProgressIndicator()
45 | )
46 | );
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/lib/ui/stargazers_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:dart_hub/model/user.dart';
2 | import 'package:dart_hub/interactor/paginator/user_paginator.dart';
3 | import 'package:dart_hub/ui/paginated_list_screen.dart';
4 | import 'package:dart_hub/ui/tiles/user_tile.dart';
5 | import 'package:flutter/material.dart';
6 |
7 | class StargazersScreen extends StatelessWidget {
8 |
9 | final StargazersPaginatorFactory _paginatorFactory;
10 | final String _username;
11 | final String _repo;
12 |
13 | StargazersScreen(this._paginatorFactory, this._username, this._repo);
14 |
15 | @override
16 | Widget build(BuildContext context) {
17 | return new PaginatedListScreen(
18 | title: new Column(
19 | mainAxisAlignment: MainAxisAlignment.center,
20 | crossAxisAlignment: CrossAxisAlignment.center,
21 | children: [
22 | new Text(_username),
23 | new Text('${_repo} • Stargazers', style: const TextStyle(fontSize: 12.0))
24 | ]
25 | ),
26 | paginatorFactory: _paginatorFactory,
27 | itemBuilder: _buildUserTile,
28 | );
29 | }
30 |
31 | Widget _buildUserTile(BuildContext context, User user) {
32 | return new UserTile(user);
33 | }
34 | }
--------------------------------------------------------------------------------
/lib/ui/subscribers_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:dart_hub/model/user.dart';
2 | import 'package:dart_hub/interactor/paginator/user_paginator.dart';
3 | import 'package:dart_hub/ui/paginated_list_screen.dart';
4 | import 'package:dart_hub/ui/tiles/user_tile.dart';
5 | import 'package:flutter/material.dart';
6 |
7 | class SubscribersScreen extends StatelessWidget {
8 |
9 | final SubscribersPaginatorFactory _paginatorFactory;
10 | final String _username;
11 | final String _repo;
12 |
13 | SubscribersScreen(this._paginatorFactory, this._username, this._repo);
14 |
15 | @override
16 | Widget build(BuildContext context) {
17 | return new PaginatedListScreen(
18 | title: new Column(
19 | mainAxisAlignment: MainAxisAlignment.center,
20 | crossAxisAlignment: CrossAxisAlignment.center,
21 | children: [
22 | new Text(_username),
23 | new Text('${_repo} • Subscribers', style: const TextStyle(fontSize: 12.0))
24 | ]
25 | ),
26 | paginatorFactory: _paginatorFactory,
27 | itemBuilder: _buildUserTile,
28 | );
29 | }
30 |
31 | Widget _buildUserTile(BuildContext context, User user) {
32 | return new UserTile(user);
33 | }
34 | }
--------------------------------------------------------------------------------
/lib/ui/tiles/event_tile.dart:
--------------------------------------------------------------------------------
1 | import 'package:dart_hub/model/event.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | class EventTile extends StatelessWidget {
5 |
6 | final Event _event;
7 |
8 | EventTile(this._event);
9 |
10 | @override
11 | Widget build(BuildContext context) {
12 | var icon;
13 | var title;
14 | switch (_event.type) {
15 | case EventType.CreateEvent:
16 | icon = Icons.add;
17 | title = _buildCreateText(_event);
18 | break;
19 | case EventType.DeleteEvent:
20 | icon = Icons.close;
21 | title = _buildDeleteText(_event);
22 | break;
23 | case EventType.ForkEvent:
24 | icon = Icons.call_split;
25 | title = '${_event.actor.login} forked ${_event.repo.name}';
26 | break;
27 | case EventType.PullRequestEvent:
28 | icon =
29 | _event.payload.action == EventActionType.Opened
30 | ? Icons.add
31 | : Icons.close;
32 | title = _buildPullText(_event);
33 | break;
34 | case EventType.PushEvent:
35 | icon = Icons.call_merge;
36 | title = _buildPushText(_event);
37 | break;
38 | case EventType.MemberEvent:
39 | icon = Icons.person;
40 | title = 'Member event';
41 | break;
42 | case EventType.WatchEvent:
43 | icon = Icons.star;
44 | title = '${_event.actor.login} starred ${_event.repo.name}';
45 | break;
46 | default:
47 | icon = Icons.info;
48 | title = 'Unknown event with id ${_event.id}';
49 | }
50 |
51 | return new ListTile(
52 | leading: new Icon(icon),
53 | dense: true,
54 | title: new Text(title, overflow: TextOverflow.ellipsis, maxLines: 2)
55 | );
56 | }
57 |
58 | String _buildCreateText(Event event) {
59 | switch (event.payload.refType) {
60 | case EventPayloadType.Branch:
61 | return '${event.actor.login} created branch ${event.payload.ref}';
62 | default:
63 | return '${_event.actor.login} created repository ${_event.repo.name}';
64 | }
65 | }
66 |
67 | String _buildDeleteText(Event event) {
68 | switch (event.payload.refType) {
69 | case EventPayloadType.Branch:
70 | return '${event.actor.login} deleted branch ${event.payload.ref}';
71 | default:
72 | return 'Unknown event with id ${_event.id}';
73 | }
74 | }
75 |
76 | String _buildPullText(Event event) {
77 | switch (event.payload.action) {
78 | case EventActionType.Closed:
79 | return '${event.actor.login} '
80 | 'closed pull request #${event.payload.pullRequest.number}: '
81 | '${event.payload.pullRequest.title}';
82 | case EventActionType.Opened:
83 | return '${event.actor.login} '
84 | 'opened pull request #${event.payload.pullRequest.number}: '
85 | '${event.payload.pullRequest.title}';
86 | default:
87 | return 'Unknown event with id ${_event.id}';
88 | }
89 | }
90 |
91 | String _buildPushText(Event event) {
92 | return '${event.actor.login} pushed '
93 | '${event.payload.size} commits to ${event.repo.name}';
94 | }
95 | }
96 |
--------------------------------------------------------------------------------
/lib/ui/tiles/repo_tile.dart:
--------------------------------------------------------------------------------
1 | import 'package:dart_hub/model/repo.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | class RepoTile extends StatelessWidget {
5 |
6 | final Repo _repo;
7 | final bool _fullname;
8 | final bool _subtitle;
9 |
10 | RepoTile(this._repo, {
11 | bool fullname = false,
12 | bool subtitle = true
13 | }) :
14 | _fullname = fullname,
15 | _subtitle = subtitle;
16 |
17 | @override
18 | Widget build(BuildContext context) {
19 | var subtitle = _subtitle ?
20 | new Text(
21 | _repo.description != null
22 | ? _repo.description : '',
23 | overflow: TextOverflow.ellipsis
24 | ) : null;
25 |
26 | var trailing = _repo.private ?
27 | const Icon(Icons.lock, color: Colors.grey) : null;
28 |
29 | return new ListTile(
30 | title: new Text(_fullname ? _repo.fullName : _repo.name),
31 | subtitle: subtitle,
32 | trailing: trailing,
33 | onTap: () => Navigator.pushNamed(context, '/repos/${_repo.fullName}'),
34 | );
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/lib/ui/tiles/user_tile.dart:
--------------------------------------------------------------------------------
1 | import 'package:dart_hub/model/user.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | class UserTile extends StatelessWidget {
5 |
6 | final User _user;
7 |
8 | UserTile(this._user);
9 |
10 | @override
11 | Widget build(BuildContext context) {
12 | return new ListTile(
13 | leading: new CircleAvatar(
14 | backgroundImage: new NetworkImage(_user.avatarUrl),
15 | backgroundColor: Colors.grey
16 | ),
17 | title: new Text(_user.login),
18 | onTap: () => Navigator.pushNamed(context, '/users/${_user.login}')
19 | );
20 | }
21 | }
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: dart_hub
2 | description: A GitHub client written in Flutter
3 |
4 | dependencies:
5 | flutter:
6 | sdk: flutter
7 | http:
8 | shared_preferences:
9 | stream_ext:
10 | fluro:
11 |
12 | # For information on the generic Dart part of this file, see the
13 | # following page: https://www.dartlang.org/tools/pub/pubspec
14 |
15 | # The following section is specific to Flutter.
16 | flutter:
17 |
18 | # The following line ensures that the Material Icons font is
19 | # included with your application, so that you can use the icons in
20 | # the Icons class.
21 | uses-material-design: true
--------------------------------------------------------------------------------
/screenshots/feed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamThompson/dart_hub/1e2bb3b85edf36fd8257b2cd0132d143fbdba801/screenshots/feed.png
--------------------------------------------------------------------------------
/screenshots/feedview.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamThompson/dart_hub/1e2bb3b85edf36fd8257b2cd0132d143fbdba801/screenshots/feedview.png
--------------------------------------------------------------------------------
/screenshots/followers.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamThompson/dart_hub/1e2bb3b85edf36fd8257b2cd0132d143fbdba801/screenshots/followers.png
--------------------------------------------------------------------------------
/screenshots/following.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamThompson/dart_hub/1e2bb3b85edf36fd8257b2cd0132d143fbdba801/screenshots/following.png
--------------------------------------------------------------------------------
/screenshots/profile.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamThompson/dart_hub/1e2bb3b85edf36fd8257b2cd0132d143fbdba801/screenshots/profile.png
--------------------------------------------------------------------------------
/screenshots/repo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamThompson/dart_hub/1e2bb3b85edf36fd8257b2cd0132d143fbdba801/screenshots/repo.png
--------------------------------------------------------------------------------
/screenshots/repos.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamThompson/dart_hub/1e2bb3b85edf36fd8257b2cd0132d143fbdba801/screenshots/repos.png
--------------------------------------------------------------------------------