diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e6365a8
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,63 @@
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
+.DS_Store
+.atom/
+.buildlog/
+.history
+.svn/
+
+# IntelliJ related
+*.iml
+*.ipr
+*.iws
+.idea/
+
+# The .vscode folder contains launch configuration and tasks you configure in
+# VS Code which you may wish to be included in version control, so this line
+# is commented out by default.
+#.vscode/
+
+# Flutter/Dart/Pub related
+**/doc/api/
+**/ios/Flutter/.last_build_id
+.dart_tool/
+.flutter-plugins
+.flutter-plugins-dependencies
+.packages
+.pub-cache/
+.pub/
+/build/
+
+# Web related
+lib/generated_plugin_registrant.dart
+
+# Symbolication related
+app.*.symbols
+
+# Obfuscation related
+app.*.map.json
+
+# Android Studio will place build artifacts here
+/android/app/debug
+/android/app/profile
+/android/app/release
+
+# Android API keys go here
+/android/app/src/main/res/values/secrets.xml
+
+# Personal development screenshots go here
+/screenshots
+
+# iOS API Keys go here
+/ios/Flutter/Secrets.xcconfig
+
+# Ignore the Firebase files
+/android/app/google-services.json
+/ios/Runner/GoogleService-Info.plist
+
+# Ignore images related to release
+/assets/Release/*
+/web/icons/
diff --git a/.metadata b/.metadata
new file mode 100644
index 0000000..c1ee81b
--- /dev/null
+++ b/.metadata
@@ -0,0 +1,10 @@
+# This file tracks properties of this Flutter project.
+# Used by Flutter tool to assess capabilities and perform upgrades etc.
+#
+# This file should be version controlled and should not be manually edited.
+
+version:
+ revision: 1d9032c7e1d867f071f2277eb1673e8f9b0274e3
+ channel: stable
+
+project_type: app
diff --git a/COPYING b/COPYING
new file mode 100644
index 0000000..398da61
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,681 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ Copyright (C)
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+.
+
+
+As additional permission under section 7, you are allowed to distribute the
+software through an app store, even if that store has restrictive terms and
+conditions that are incompatible with the GPL, provided that the source is
+also available under the GPL with or without this permission through a
+channel without those restrictive terms and conditions.
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..4566412
--- /dev/null
+++ b/README.md
@@ -0,0 +1,25 @@
+# AntNupTracker
+
+
+
+Client app for AntNupTracker for iOS and Android™, developed using the Flutter™ framework in Dart™.
+
+Copyright (C) 2020-2022 Abouheif Lab
+
+Welcome to the repository for the `AntNupTracker` app. A contribution guide is coming shortly. The code is designed to try to follow Dart and Flutter style.
+
+This app is a tool for browsing records of [ant nuptial flights](https://www.antnuptialflights.com/about/) and reporting new flights from the field. Visit our website at https://www.antnuptialflights.com for more details. For the server-side application that manages the database of ant nuptial flights, please go to [this repository](https://github.com/bzrudski/antnuptracker-server/).
+
+Our app is licensed under the GNU GPLv3 with App Store Exception (see `COPYING`). Therefore, the app is open source, but the binary can still be distributed through Apple's App Store and Google Play without violating their terms. (All source files say GPL, but the App Store Exception is applied to all files in this project in order to not defeat the purpose of this project.)
+
+In order to build, clone this repository and open it in an IDE. You may need to tweak a few settings. If you would like to test your modifications against a custom version of the backend, make sure that you change the `base` argument value in `url_manager.dart`.
+
+IOS is a trademark or registered trademark of Cisco in the U.S. and other countries.
+
+App Store and Xcode are trademarks of Apple Inc., registered in the U.S. and other countries.
+
+Android™ and Google Play are registered trademarks of Google LLC.
+
+Dart and the related logo are trademarks of Google LLC. We are not endorsed by or affiliated with Google LLC.
+
+Flutter and the related logo are trademarks of Google LLC. We are not endorsed by or affiliated with Google LLC.
\ No newline at end of file
diff --git a/analysis_options.yaml b/analysis_options.yaml
new file mode 100644
index 0000000..b12d74b
--- /dev/null
+++ b/analysis_options.yaml
@@ -0,0 +1,2 @@
+#include: package:lints/recommended.yaml
+include: package:flutter_lints/flutter.yaml
\ No newline at end of file
diff --git a/android/.gitignore b/android/.gitignore
new file mode 100644
index 0000000..0a741cb
--- /dev/null
+++ b/android/.gitignore
@@ -0,0 +1,11 @@
+gradle-wrapper.jar
+/.gradle
+/captures/
+/gradlew
+/gradlew.bat
+/local.properties
+GeneratedPluginRegistrant.java
+
+# Remember to never publicly share your keystore.
+# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
+key.properties
diff --git a/android/app/build.gradle b/android/app/build.gradle
new file mode 100644
index 0000000..e8dfa93
--- /dev/null
+++ b/android/app/build.gradle
@@ -0,0 +1,77 @@
+def localProperties = new Properties()
+def localPropertiesFile = rootProject.file('local.properties')
+if (localPropertiesFile.exists()) {
+ localPropertiesFile.withReader('UTF-8') { reader ->
+ localProperties.load(reader)
+ }
+}
+
+def flutterRoot = localProperties.getProperty('flutter.sdk')
+if (flutterRoot == null) {
+ throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
+}
+
+def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
+if (flutterVersionCode == null) {
+ flutterVersionCode = '1'
+}
+
+def flutterVersionName = localProperties.getProperty('flutter.versionName')
+if (flutterVersionName == null) {
+ flutterVersionName = '1.0'
+}
+
+apply plugin: 'com.android.application'
+apply plugin: 'kotlin-android'
+apply plugin: 'com.google.gms.google-services'
+apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
+
+def keystoreProperties = new Properties()
+def keystorePropertiesFile = rootProject.file("key.properties")
+if (keystorePropertiesFile.exists()) {
+ keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
+}
+
+android {
+ compileSdkVersion 31
+
+ sourceSets {
+ main.java.srcDirs += 'src/main/kotlin'
+ }
+
+ defaultConfig {
+ // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
+ applicationId "com.bzrudski.ant_nup_tracker"
+ minSdkVersion 21
+ targetSdkVersion 31
+ versionCode flutterVersionCode.toInteger()
+ versionName flutterVersionName
+ }
+
+ signingConfigs {
+ release {
+ keyAlias keystoreProperties['keyAlias']
+ keyPassword keystoreProperties['keyPassword']
+ storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
+ storePassword keystoreProperties['storePassword']
+ }
+ }
+
+ buildTypes {
+ release {
+ // Signing with the debug keys for now, so `flutter run --release` works.
+// signingConfig signingConfigs.debug
+ signingConfig signingConfigs.release
+ }
+ }
+}
+
+flutter {
+ source '../..'
+}
+
+dependencies {
+ implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
+ implementation platform('com.google.firebase:firebase-bom:28.3.1')
+ implementation 'androidx.core:core-splashscreen:1.0.0-alpha02'
+}
diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml
new file mode 100644
index 0000000..36879fa
--- /dev/null
+++ b/android/app/src/debug/AndroidManifest.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
diff --git a/android/app/src/debug/ic_launcher_dev-playstore.png b/android/app/src/debug/ic_launcher_dev-playstore.png
new file mode 100644
index 0000000..be29506
Binary files /dev/null and b/android/app/src/debug/ic_launcher_dev-playstore.png differ
diff --git a/android/app/src/debug/res/drawable-v24/ic_launcher_dev_background.xml b/android/app/src/debug/res/drawable-v24/ic_launcher_dev_background.xml
new file mode 100644
index 0000000..6550213
--- /dev/null
+++ b/android/app/src/debug/res/drawable-v24/ic_launcher_dev_background.xml
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android/app/src/debug/res/drawable-v24/ic_launcher_dev_foreground.xml b/android/app/src/debug/res/drawable-v24/ic_launcher_dev_foreground.xml
new file mode 100644
index 0000000..1b912ce
--- /dev/null
+++ b/android/app/src/debug/res/drawable-v24/ic_launcher_dev_foreground.xml
@@ -0,0 +1,274 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android/app/src/debug/res/mipmap-anydpi-v26/ic_launcher.xml b/android/app/src/debug/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 0000000..327748d
--- /dev/null
+++ b/android/app/src/debug/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/android/app/src/debug/res/mipmap-anydpi-v26/ic_launcher_round.xml b/android/app/src/debug/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 0000000..327748d
--- /dev/null
+++ b/android/app/src/debug/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/android/app/src/debug/res/mipmap-hdpi/ic_launcher.png b/android/app/src/debug/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..4b31015
Binary files /dev/null and b/android/app/src/debug/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/android/app/src/debug/res/mipmap-hdpi/ic_launcher_round.png b/android/app/src/debug/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 0000000..5b7c692
Binary files /dev/null and b/android/app/src/debug/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/android/app/src/debug/res/mipmap-mdpi/ic_launcher.png b/android/app/src/debug/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..0cca726
Binary files /dev/null and b/android/app/src/debug/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/android/app/src/debug/res/mipmap-mdpi/ic_launcher_round.png b/android/app/src/debug/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 0000000..219efef
Binary files /dev/null and b/android/app/src/debug/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/android/app/src/debug/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/debug/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..313c768
Binary files /dev/null and b/android/app/src/debug/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/android/app/src/debug/res/mipmap-xhdpi/ic_launcher_round.png b/android/app/src/debug/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..2bb1b09
Binary files /dev/null and b/android/app/src/debug/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/android/app/src/debug/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/debug/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..15f497e
Binary files /dev/null and b/android/app/src/debug/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/android/app/src/debug/res/mipmap-xxhdpi/ic_launcher_round.png b/android/app/src/debug/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..e8fd718
Binary files /dev/null and b/android/app/src/debug/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/android/app/src/debug/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/debug/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..03a7c51
Binary files /dev/null and b/android/app/src/debug/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/android/app/src/debug/res/mipmap-xxxhdpi/ic_launcher_round.png b/android/app/src/debug/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..21d35cb
Binary files /dev/null and b/android/app/src/debug/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/android/app/src/debug/res/values/strings.xml b/android/app/src/debug/res/values/strings.xml
new file mode 100644
index 0000000..5dcc3b1
--- /dev/null
+++ b/android/app/src/debug/res/values/strings.xml
@@ -0,0 +1,4 @@
+
+
+ AntNupDev
+
\ No newline at end of file
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..73666ac
--- /dev/null
+++ b/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,54 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/ic_launcher_dev-playstore.png b/android/app/src/main/ic_launcher_dev-playstore.png
new file mode 100644
index 0000000..3aa17f8
Binary files /dev/null and b/android/app/src/main/ic_launcher_dev-playstore.png differ
diff --git a/android/app/src/main/ic_launcher_release-playstore.png b/android/app/src/main/ic_launcher_release-playstore.png
new file mode 100644
index 0000000..f4f34bc
Binary files /dev/null and b/android/app/src/main/ic_launcher_release-playstore.png differ
diff --git a/android/app/src/main/kotlin/com/bzrudski/ant_nup_tracker/MainActivity.kt b/android/app/src/main/kotlin/com/bzrudski/ant_nup_tracker/MainActivity.kt
new file mode 100644
index 0000000..e670ce1
--- /dev/null
+++ b/android/app/src/main/kotlin/com/bzrudski/ant_nup_tracker/MainActivity.kt
@@ -0,0 +1,6 @@
+package com.bzrudski.ant_nup_tracker
+
+import io.flutter.embedding.android.FlutterActivity
+
+class MainActivity: FlutterActivity() {
+}
diff --git a/android/app/src/main/res/drawable-anydpi-v24/ic_notification_icon.xml b/android/app/src/main/res/drawable-anydpi-v24/ic_notification_icon.xml
new file mode 100644
index 0000000..eae7d8a
--- /dev/null
+++ b/android/app/src/main/res/drawable-anydpi-v24/ic_notification_icon.xml
@@ -0,0 +1,115 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/drawable-hdpi/ic_notification_icon.png b/android/app/src/main/res/drawable-hdpi/ic_notification_icon.png
new file mode 100644
index 0000000..78c5a45
Binary files /dev/null and b/android/app/src/main/res/drawable-hdpi/ic_notification_icon.png differ
diff --git a/android/app/src/main/res/drawable-mdpi/ic_notification_icon.png b/android/app/src/main/res/drawable-mdpi/ic_notification_icon.png
new file mode 100644
index 0000000..3145ec2
Binary files /dev/null and b/android/app/src/main/res/drawable-mdpi/ic_notification_icon.png differ
diff --git a/android/app/src/main/res/drawable-v21/launch_background.xml b/android/app/src/main/res/drawable-v21/launch_background.xml
new file mode 100644
index 0000000..f74085f
--- /dev/null
+++ b/android/app/src/main/res/drawable-v21/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/drawable-v24/ic_launcher_release_background.xml b/android/app/src/main/res/drawable-v24/ic_launcher_release_background.xml
new file mode 100644
index 0000000..6d61bc8
--- /dev/null
+++ b/android/app/src/main/res/drawable-v24/ic_launcher_release_background.xml
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/drawable-v24/ic_launcher_release_foreground.xml b/android/app/src/main/res/drawable-v24/ic_launcher_release_foreground.xml
new file mode 100644
index 0000000..1b912ce
--- /dev/null
+++ b/android/app/src/main/res/drawable-v24/ic_launcher_release_foreground.xml
@@ -0,0 +1,274 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/drawable-xhdpi/ic_notification_icon.png b/android/app/src/main/res/drawable-xhdpi/ic_notification_icon.png
new file mode 100644
index 0000000..764058e
Binary files /dev/null and b/android/app/src/main/res/drawable-xhdpi/ic_notification_icon.png differ
diff --git a/android/app/src/main/res/drawable-xxhdpi/ic_notification_icon.png b/android/app/src/main/res/drawable-xxhdpi/ic_notification_icon.png
new file mode 100644
index 0000000..bb52abd
Binary files /dev/null and b/android/app/src/main/res/drawable-xxhdpi/ic_notification_icon.png differ
diff --git a/android/app/src/main/res/drawable/ic_ant_gradient.xml b/android/app/src/main/res/drawable/ic_ant_gradient.xml
new file mode 100644
index 0000000..b245035
--- /dev/null
+++ b/android/app/src/main/res/drawable/ic_ant_gradient.xml
@@ -0,0 +1,122 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/drawable/ic_cartoon_ant.xml b/android/app/src/main/res/drawable/ic_cartoon_ant.xml
new file mode 100644
index 0000000..e8bf37f
--- /dev/null
+++ b/android/app/src/main/res/drawable/ic_cartoon_ant.xml
@@ -0,0 +1,109 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/drawable/ic_cartoon_ant2.xml b/android/app/src/main/res/drawable/ic_cartoon_ant2.xml
new file mode 100644
index 0000000..9e8b9a5
--- /dev/null
+++ b/android/app/src/main/res/drawable/ic_cartoon_ant2.xml
@@ -0,0 +1,269 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/drawable/ic_splash_bg.xml b/android/app/src/main/res/drawable/ic_splash_bg.xml
new file mode 100644
index 0000000..f8e84c4
--- /dev/null
+++ b/android/app/src/main/res/drawable/ic_splash_bg.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/android/app/src/main/res/drawable/launch_background.xml b/android/app/src/main/res/drawable/launch_background.xml
new file mode 100644
index 0000000..8cdf281
--- /dev/null
+++ b/android/app/src/main/res/drawable/launch_background.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 0000000..ff8d7ca
--- /dev/null
+++ b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 0000000..ff8d7ca
--- /dev/null
+++ b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..84de40f
Binary files /dev/null and b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 0000000..5cc6f2a
Binary files /dev/null and b/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..133778a
Binary files /dev/null and b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 0000000..4d94e46
Binary files /dev/null and b/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..b4f947c
Binary files /dev/null and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..1a9e9e2
Binary files /dev/null and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..1f235ab
Binary files /dev/null and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..f52ed51
Binary files /dev/null and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..00ce2f0
Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..ed83993
Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/android/app/src/main/res/values-night/styles.xml b/android/app/src/main/res/values-night/styles.xml
new file mode 100644
index 0000000..449a9f9
--- /dev/null
+++ b/android/app/src/main/res/values-night/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/values/colors.xml b/android/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..d704408
--- /dev/null
+++ b/android/app/src/main/res/values/colors.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/android/app/src/main/res/values/strings.xml b/android/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..60a4201
--- /dev/null
+++ b/android/app/src/main/res/values/strings.xml
@@ -0,0 +1,4 @@
+
+
+ AntNupTracker
+
\ No newline at end of file
diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..2089c28
--- /dev/null
+++ b/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
diff --git a/android/app/src/profile/AndroidManifest.xml b/android/app/src/profile/AndroidManifest.xml
new file mode 100644
index 0000000..e445b44
--- /dev/null
+++ b/android/app/src/profile/AndroidManifest.xml
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/android/build.gradle b/android/build.gradle
new file mode 100644
index 0000000..34c818f
--- /dev/null
+++ b/android/build.gradle
@@ -0,0 +1,32 @@
+buildscript {
+ ext.kotlin_version = '1.6.10'
+ repositories {
+ google()
+ mavenCentral()
+ }
+
+ dependencies {
+ classpath 'com.android.tools.build:gradle:7.1.3'
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
+ classpath 'com.google.gms:google-services:4.3.10'
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+rootProject.buildDir = '../build'
+subprojects {
+ project.buildDir = "${rootProject.buildDir}/${project.name}"
+}
+subprojects {
+ project.evaluationDependsOn(':app')
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/android/gradle.properties b/android/gradle.properties
new file mode 100644
index 0000000..94adc3a
--- /dev/null
+++ b/android/gradle.properties
@@ -0,0 +1,3 @@
+org.gradle.jvmargs=-Xmx1536M
+android.useAndroidX=true
+android.enableJetifier=true
diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..595fb86
--- /dev/null
+++ b/android/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Fri Jun 23 08:50:38 CEST 2017
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
diff --git a/android/settings.gradle b/android/settings.gradle
new file mode 100644
index 0000000..44e62bc
--- /dev/null
+++ b/android/settings.gradle
@@ -0,0 +1,11 @@
+include ':app'
+
+def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
+def properties = new Properties()
+
+assert localPropertiesFile.exists()
+localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
+
+def flutterSdkPath = properties.getProperty("flutter.sdk")
+assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
+apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
diff --git a/android/settings_aar.gradle b/android/settings_aar.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/android/settings_aar.gradle
@@ -0,0 +1 @@
+include ':app'
diff --git a/assets/android_icon/background_dev.svg b/assets/android_icon/background_dev.svg
new file mode 100644
index 0000000..efb8b6a
--- /dev/null
+++ b/assets/android_icon/background_dev.svg
@@ -0,0 +1,25 @@
+
+
diff --git a/assets/android_icon/background_release.svg b/assets/android_icon/background_release.svg
new file mode 100644
index 0000000..6be1474
--- /dev/null
+++ b/assets/android_icon/background_release.svg
@@ -0,0 +1,195 @@
+
+
diff --git a/assets/android_icon/full_ant.svg b/assets/android_icon/full_ant.svg
new file mode 100644
index 0000000..5313e96
--- /dev/null
+++ b/assets/android_icon/full_ant.svg
@@ -0,0 +1,404 @@
+
+
+
+
diff --git a/assets/android_icon/full_ant_small.svg b/assets/android_icon/full_ant_small.svg
new file mode 100644
index 0000000..2bbcfaa
--- /dev/null
+++ b/assets/android_icon/full_ant_small.svg
@@ -0,0 +1,404 @@
+
+
+
+
diff --git a/assets/ant_circles/2x/green_ant.png b/assets/ant_circles/2x/green_ant.png
new file mode 100644
index 0000000..c316c0e
Binary files /dev/null and b/assets/ant_circles/2x/green_ant.png differ
diff --git a/assets/ant_circles/2x/red_ant.png b/assets/ant_circles/2x/red_ant.png
new file mode 100644
index 0000000..491391e
Binary files /dev/null and b/assets/ant_circles/2x/red_ant.png differ
diff --git a/assets/ant_circles/2x/white_ant.png b/assets/ant_circles/2x/white_ant.png
new file mode 100644
index 0000000..fef5b57
Binary files /dev/null and b/assets/ant_circles/2x/white_ant.png differ
diff --git a/assets/ant_circles/3x/green_ant.png b/assets/ant_circles/3x/green_ant.png
new file mode 100644
index 0000000..4ab20bd
Binary files /dev/null and b/assets/ant_circles/3x/green_ant.png differ
diff --git a/assets/ant_circles/3x/red_ant.png b/assets/ant_circles/3x/red_ant.png
new file mode 100644
index 0000000..fb8247d
Binary files /dev/null and b/assets/ant_circles/3x/red_ant.png differ
diff --git a/assets/ant_circles/3x/white_ant.png b/assets/ant_circles/3x/white_ant.png
new file mode 100644
index 0000000..7679ebb
Binary files /dev/null and b/assets/ant_circles/3x/white_ant.png differ
diff --git a/assets/ant_circles/green_ant.png b/assets/ant_circles/green_ant.png
new file mode 100644
index 0000000..f588d0b
Binary files /dev/null and b/assets/ant_circles/green_ant.png differ
diff --git a/assets/ant_circles/green_ant.svg b/assets/ant_circles/green_ant.svg
new file mode 100644
index 0000000..a5f67f5
--- /dev/null
+++ b/assets/ant_circles/green_ant.svg
@@ -0,0 +1,137 @@
+
+
diff --git a/assets/ant_circles/red_ant.png b/assets/ant_circles/red_ant.png
new file mode 100644
index 0000000..1418b7c
Binary files /dev/null and b/assets/ant_circles/red_ant.png differ
diff --git a/assets/ant_circles/red_ant.svg b/assets/ant_circles/red_ant.svg
new file mode 100644
index 0000000..b1f40ef
--- /dev/null
+++ b/assets/ant_circles/red_ant.svg
@@ -0,0 +1,142 @@
+
+
diff --git a/assets/ant_circles/white_ant.png b/assets/ant_circles/white_ant.png
new file mode 100644
index 0000000..08eb720
Binary files /dev/null and b/assets/ant_circles/white_ant.png differ
diff --git a/assets/ant_circles/white_ant.svg b/assets/ant_circles/white_ant.svg
new file mode 100644
index 0000000..4840d06
--- /dev/null
+++ b/assets/ant_circles/white_ant.svg
@@ -0,0 +1,96 @@
+
+
diff --git a/assets/app_icon/Alternatives/icon3.png b/assets/app_icon/Alternatives/icon3.png
new file mode 100644
index 0000000..3dad51e
Binary files /dev/null and b/assets/app_icon/Alternatives/icon3.png differ
diff --git a/assets/app_icon/Alternatives/icon4.png b/assets/app_icon/Alternatives/icon4.png
new file mode 100644
index 0000000..3f1d578
Binary files /dev/null and b/assets/app_icon/Alternatives/icon4.png differ
diff --git a/assets/app_icon/Alternatives/icon5.png b/assets/app_icon/Alternatives/icon5.png
new file mode 100644
index 0000000..7ee776d
Binary files /dev/null and b/assets/app_icon/Alternatives/icon5.png differ
diff --git a/assets/app_icon/Alternatives/icon6.png b/assets/app_icon/Alternatives/icon6.png
new file mode 100644
index 0000000..39c4ca9
Binary files /dev/null and b/assets/app_icon/Alternatives/icon6.png differ
diff --git a/assets/app_icon/Alternatives/icon7.png b/assets/app_icon/Alternatives/icon7.png
new file mode 100644
index 0000000..2b22167
Binary files /dev/null and b/assets/app_icon/Alternatives/icon7.png differ
diff --git a/assets/app_icon/gradient-images1/icon-grad1024.png b/assets/app_icon/gradient-images1/icon-grad1024.png
new file mode 100644
index 0000000..ae1e656
Binary files /dev/null and b/assets/app_icon/gradient-images1/icon-grad1024.png differ
diff --git a/assets/app_icon/gradient-images1/icon-grad120.png b/assets/app_icon/gradient-images1/icon-grad120.png
new file mode 100644
index 0000000..8760950
Binary files /dev/null and b/assets/app_icon/gradient-images1/icon-grad120.png differ
diff --git a/assets/app_icon/gradient-images1/icon-grad152.png b/assets/app_icon/gradient-images1/icon-grad152.png
new file mode 100644
index 0000000..4a3d2a6
Binary files /dev/null and b/assets/app_icon/gradient-images1/icon-grad152.png differ
diff --git a/assets/app_icon/gradient-images1/icon-grad167.png b/assets/app_icon/gradient-images1/icon-grad167.png
new file mode 100644
index 0000000..ce08fcd
Binary files /dev/null and b/assets/app_icon/gradient-images1/icon-grad167.png differ
diff --git a/assets/app_icon/gradient-images1/icon-grad180.png b/assets/app_icon/gradient-images1/icon-grad180.png
new file mode 100644
index 0000000..191bec0
Binary files /dev/null and b/assets/app_icon/gradient-images1/icon-grad180.png differ
diff --git a/assets/app_icon/gradient-images1/icon-grad40.png b/assets/app_icon/gradient-images1/icon-grad40.png
new file mode 100644
index 0000000..e018fc4
Binary files /dev/null and b/assets/app_icon/gradient-images1/icon-grad40.png differ
diff --git a/assets/app_icon/gradient-images1/icon-grad58.png b/assets/app_icon/gradient-images1/icon-grad58.png
new file mode 100644
index 0000000..e37105b
Binary files /dev/null and b/assets/app_icon/gradient-images1/icon-grad58.png differ
diff --git a/assets/app_icon/gradient-images1/icon-grad60.png b/assets/app_icon/gradient-images1/icon-grad60.png
new file mode 100644
index 0000000..d0fac5e
Binary files /dev/null and b/assets/app_icon/gradient-images1/icon-grad60.png differ
diff --git a/assets/app_icon/gradient-images1/icon-grad80.png b/assets/app_icon/gradient-images1/icon-grad80.png
new file mode 100644
index 0000000..59f172e
Binary files /dev/null and b/assets/app_icon/gradient-images1/icon-grad80.png differ
diff --git a/assets/app_icon/gradient-images1/icon-grad87.png b/assets/app_icon/gradient-images1/icon-grad87.png
new file mode 100644
index 0000000..d92394d
Binary files /dev/null and b/assets/app_icon/gradient-images1/icon-grad87.png differ
diff --git a/assets/app_icon/gradient2_icon/AntIconNewShortBlue1024.png b/assets/app_icon/gradient2_icon/AntIconNewShortBlue1024.png
new file mode 100644
index 0000000..586c150
Binary files /dev/null and b/assets/app_icon/gradient2_icon/AntIconNewShortBlue1024.png differ
diff --git a/assets/app_icon/gradient2_icon/AntIconNewShortBlue120.png b/assets/app_icon/gradient2_icon/AntIconNewShortBlue120.png
new file mode 100644
index 0000000..03e48c5
Binary files /dev/null and b/assets/app_icon/gradient2_icon/AntIconNewShortBlue120.png differ
diff --git a/assets/app_icon/gradient2_icon/AntIconNewShortBlue152.png b/assets/app_icon/gradient2_icon/AntIconNewShortBlue152.png
new file mode 100644
index 0000000..e077073
Binary files /dev/null and b/assets/app_icon/gradient2_icon/AntIconNewShortBlue152.png differ
diff --git a/assets/app_icon/gradient2_icon/AntIconNewShortBlue167.png b/assets/app_icon/gradient2_icon/AntIconNewShortBlue167.png
new file mode 100644
index 0000000..2c50cc0
Binary files /dev/null and b/assets/app_icon/gradient2_icon/AntIconNewShortBlue167.png differ
diff --git a/assets/app_icon/gradient2_icon/AntIconNewShortBlue180.png b/assets/app_icon/gradient2_icon/AntIconNewShortBlue180.png
new file mode 100644
index 0000000..5cecf70
Binary files /dev/null and b/assets/app_icon/gradient2_icon/AntIconNewShortBlue180.png differ
diff --git a/assets/app_icon/gradient2_icon/AntIconNewShortBlue40.png b/assets/app_icon/gradient2_icon/AntIconNewShortBlue40.png
new file mode 100644
index 0000000..8e75527
Binary files /dev/null and b/assets/app_icon/gradient2_icon/AntIconNewShortBlue40.png differ
diff --git a/assets/app_icon/gradient2_icon/AntIconNewShortBlue58.png b/assets/app_icon/gradient2_icon/AntIconNewShortBlue58.png
new file mode 100644
index 0000000..49e73a9
Binary files /dev/null and b/assets/app_icon/gradient2_icon/AntIconNewShortBlue58.png differ
diff --git a/assets/app_icon/gradient2_icon/AntIconNewShortBlue60.png b/assets/app_icon/gradient2_icon/AntIconNewShortBlue60.png
new file mode 100644
index 0000000..cdc2827
Binary files /dev/null and b/assets/app_icon/gradient2_icon/AntIconNewShortBlue60.png differ
diff --git a/assets/app_icon/gradient2_icon/AntIconNewShortBlue80.png b/assets/app_icon/gradient2_icon/AntIconNewShortBlue80.png
new file mode 100644
index 0000000..5a71fd5
Binary files /dev/null and b/assets/app_icon/gradient2_icon/AntIconNewShortBlue80.png differ
diff --git a/assets/app_icon/gradient2_icon/AntIconNewShortBlue87.png b/assets/app_icon/gradient2_icon/AntIconNewShortBlue87.png
new file mode 100644
index 0000000..a780118
Binary files /dev/null and b/assets/app_icon/gradient2_icon/AntIconNewShortBlue87.png differ
diff --git a/assets/app_icon/gradient7/AntIconNewShortBlue1024.png b/assets/app_icon/gradient7/AntIconNewShortBlue1024.png
new file mode 100644
index 0000000..03fdd69
Binary files /dev/null and b/assets/app_icon/gradient7/AntIconNewShortBlue1024.png differ
diff --git a/assets/app_icon/gradient7/AntIconNewShortBlue120.png b/assets/app_icon/gradient7/AntIconNewShortBlue120.png
new file mode 100644
index 0000000..e71cfde
Binary files /dev/null and b/assets/app_icon/gradient7/AntIconNewShortBlue120.png differ
diff --git a/assets/app_icon/gradient7/AntIconNewShortBlue152.png b/assets/app_icon/gradient7/AntIconNewShortBlue152.png
new file mode 100644
index 0000000..9b01895
Binary files /dev/null and b/assets/app_icon/gradient7/AntIconNewShortBlue152.png differ
diff --git a/assets/app_icon/gradient7/AntIconNewShortBlue167.png b/assets/app_icon/gradient7/AntIconNewShortBlue167.png
new file mode 100644
index 0000000..1e42c69
Binary files /dev/null and b/assets/app_icon/gradient7/AntIconNewShortBlue167.png differ
diff --git a/assets/app_icon/gradient7/AntIconNewShortBlue180.png b/assets/app_icon/gradient7/AntIconNewShortBlue180.png
new file mode 100644
index 0000000..424bce2
Binary files /dev/null and b/assets/app_icon/gradient7/AntIconNewShortBlue180.png differ
diff --git a/assets/app_icon/gradient7/AntIconNewShortBlue40.png b/assets/app_icon/gradient7/AntIconNewShortBlue40.png
new file mode 100644
index 0000000..8cf1b06
Binary files /dev/null and b/assets/app_icon/gradient7/AntIconNewShortBlue40.png differ
diff --git a/assets/app_icon/gradient7/AntIconNewShortBlue58.png b/assets/app_icon/gradient7/AntIconNewShortBlue58.png
new file mode 100644
index 0000000..59e13d9
Binary files /dev/null and b/assets/app_icon/gradient7/AntIconNewShortBlue58.png differ
diff --git a/assets/app_icon/gradient7/AntIconNewShortBlue60.png b/assets/app_icon/gradient7/AntIconNewShortBlue60.png
new file mode 100644
index 0000000..66c752c
Binary files /dev/null and b/assets/app_icon/gradient7/AntIconNewShortBlue60.png differ
diff --git a/assets/app_icon/gradient7/AntIconNewShortBlue80.png b/assets/app_icon/gradient7/AntIconNewShortBlue80.png
new file mode 100644
index 0000000..8cd6a80
Binary files /dev/null and b/assets/app_icon/gradient7/AntIconNewShortBlue80.png differ
diff --git a/assets/app_icon/gradient7/AntIconNewShortBlue87.png b/assets/app_icon/gradient7/AntIconNewShortBlue87.png
new file mode 100644
index 0000000..aea13cb
Binary files /dev/null and b/assets/app_icon/gradient7/AntIconNewShortBlue87.png differ
diff --git a/assets/app_icon/icon-gradient.svg b/assets/app_icon/icon-gradient.svg
new file mode 100644
index 0000000..97b65a5
--- /dev/null
+++ b/assets/app_icon/icon-gradient.svg
@@ -0,0 +1,297 @@
+
+
diff --git a/assets/app_icon/icon-gradient2.svg b/assets/app_icon/icon-gradient2.svg
new file mode 100644
index 0000000..3bac186
--- /dev/null
+++ b/assets/app_icon/icon-gradient2.svg
@@ -0,0 +1,297 @@
+
+
diff --git a/assets/app_icon/icon-gradient3.svg b/assets/app_icon/icon-gradient3.svg
new file mode 100644
index 0000000..12eb128
--- /dev/null
+++ b/assets/app_icon/icon-gradient3.svg
@@ -0,0 +1,357 @@
+
+
diff --git a/assets/app_icon/icon-gradient3.svg.2021_12_28_15_24_43.0.svg b/assets/app_icon/icon-gradient3.svg.2021_12_28_15_24_43.0.svg
new file mode 100644
index 0000000..f0fb17c
--- /dev/null
+++ b/assets/app_icon/icon-gradient3.svg.2021_12_28_15_24_43.0.svg
@@ -0,0 +1,357 @@
+
+
diff --git a/assets/app_icon/icon-gradient4.svg b/assets/app_icon/icon-gradient4.svg
new file mode 100644
index 0000000..9cb93f5
--- /dev/null
+++ b/assets/app_icon/icon-gradient4.svg
@@ -0,0 +1,439 @@
+
+
diff --git a/assets/app_icon/icon-gradient6.svg b/assets/app_icon/icon-gradient6.svg
new file mode 100644
index 0000000..b385ff6
--- /dev/null
+++ b/assets/app_icon/icon-gradient6.svg
@@ -0,0 +1,484 @@
+
+
diff --git a/assets/app_icon/icon-gradient7-dev.svg b/assets/app_icon/icon-gradient7-dev.svg
new file mode 100644
index 0000000..4fdd3cd
--- /dev/null
+++ b/assets/app_icon/icon-gradient7-dev.svg
@@ -0,0 +1,484 @@
+
+
diff --git a/assets/app_icon/icon-gradient7.svg b/assets/app_icon/icon-gradient7.svg
new file mode 100644
index 0000000..82c2faf
--- /dev/null
+++ b/assets/app_icon/icon-gradient7.svg
@@ -0,0 +1,484 @@
+
+
diff --git a/assets/app_icon/icon.svg b/assets/app_icon/icon.svg
new file mode 100644
index 0000000..6bf7947
--- /dev/null
+++ b/assets/app_icon/icon.svg
@@ -0,0 +1,251 @@
+
+
diff --git a/assets/app_icon/newdevicon_icon/newdevicon1024.png b/assets/app_icon/newdevicon_icon/newdevicon1024.png
new file mode 100644
index 0000000..62d9f2b
Binary files /dev/null and b/assets/app_icon/newdevicon_icon/newdevicon1024.png differ
diff --git a/assets/app_icon/newdevicon_icon/newdevicon120.png b/assets/app_icon/newdevicon_icon/newdevicon120.png
new file mode 100644
index 0000000..9cf9f0d
Binary files /dev/null and b/assets/app_icon/newdevicon_icon/newdevicon120.png differ
diff --git a/assets/app_icon/newdevicon_icon/newdevicon152.png b/assets/app_icon/newdevicon_icon/newdevicon152.png
new file mode 100644
index 0000000..edad583
Binary files /dev/null and b/assets/app_icon/newdevicon_icon/newdevicon152.png differ
diff --git a/assets/app_icon/newdevicon_icon/newdevicon167.png b/assets/app_icon/newdevicon_icon/newdevicon167.png
new file mode 100644
index 0000000..e111db6
Binary files /dev/null and b/assets/app_icon/newdevicon_icon/newdevicon167.png differ
diff --git a/assets/app_icon/newdevicon_icon/newdevicon180.png b/assets/app_icon/newdevicon_icon/newdevicon180.png
new file mode 100644
index 0000000..83b71bd
Binary files /dev/null and b/assets/app_icon/newdevicon_icon/newdevicon180.png differ
diff --git a/assets/app_icon/newdevicon_icon/newdevicon40.png b/assets/app_icon/newdevicon_icon/newdevicon40.png
new file mode 100644
index 0000000..1b7089e
Binary files /dev/null and b/assets/app_icon/newdevicon_icon/newdevicon40.png differ
diff --git a/assets/app_icon/newdevicon_icon/newdevicon58.png b/assets/app_icon/newdevicon_icon/newdevicon58.png
new file mode 100644
index 0000000..c91c937
Binary files /dev/null and b/assets/app_icon/newdevicon_icon/newdevicon58.png differ
diff --git a/assets/app_icon/newdevicon_icon/newdevicon60.png b/assets/app_icon/newdevicon_icon/newdevicon60.png
new file mode 100644
index 0000000..bff799c
Binary files /dev/null and b/assets/app_icon/newdevicon_icon/newdevicon60.png differ
diff --git a/assets/app_icon/newdevicon_icon/newdevicon80.png b/assets/app_icon/newdevicon_icon/newdevicon80.png
new file mode 100644
index 0000000..60ab79c
Binary files /dev/null and b/assets/app_icon/newdevicon_icon/newdevicon80.png differ
diff --git a/assets/app_icon/newdevicon_icon/newdevicon87.png b/assets/app_icon/newdevicon_icon/newdevicon87.png
new file mode 100644
index 0000000..e19e67c
Binary files /dev/null and b/assets/app_icon/newdevicon_icon/newdevicon87.png differ
diff --git a/assets/cartoon_ant/2x/cartoon_ant.png b/assets/cartoon_ant/2x/cartoon_ant.png
new file mode 100644
index 0000000..5564e1a
Binary files /dev/null and b/assets/cartoon_ant/2x/cartoon_ant.png differ
diff --git a/assets/cartoon_ant/3x/cartoon_ant.png b/assets/cartoon_ant/3x/cartoon_ant.png
new file mode 100644
index 0000000..43aa782
Binary files /dev/null and b/assets/cartoon_ant/3x/cartoon_ant.png differ
diff --git a/assets/cartoon_ant/cartoon_ant.png b/assets/cartoon_ant/cartoon_ant.png
new file mode 100644
index 0000000..2e845c3
Binary files /dev/null and b/assets/cartoon_ant/cartoon_ant.png differ
diff --git a/assets/cartoon_ant/cartoon_ant.svg b/assets/cartoon_ant/cartoon_ant.svg
new file mode 100644
index 0000000..4125adf
--- /dev/null
+++ b/assets/cartoon_ant/cartoon_ant.svg
@@ -0,0 +1,453 @@
+
+
+
+
diff --git a/assets/cartoon_ant/cartoon_ant_cleaned.svg b/assets/cartoon_ant/cartoon_ant_cleaned.svg
new file mode 100644
index 0000000..4125adf
--- /dev/null
+++ b/assets/cartoon_ant/cartoon_ant_cleaned.svg
@@ -0,0 +1,453 @@
+
+
+
+
diff --git a/assets/cartoon_ant/dark/2x/cartoon_ant.png b/assets/cartoon_ant/dark/2x/cartoon_ant.png
new file mode 100644
index 0000000..3770338
Binary files /dev/null and b/assets/cartoon_ant/dark/2x/cartoon_ant.png differ
diff --git a/assets/cartoon_ant/dark/2x/cartoon_ant_darker.png b/assets/cartoon_ant/dark/2x/cartoon_ant_darker.png
new file mode 100644
index 0000000..5deec74
Binary files /dev/null and b/assets/cartoon_ant/dark/2x/cartoon_ant_darker.png differ
diff --git a/assets/cartoon_ant/dark/3x/cartoon_ant.png b/assets/cartoon_ant/dark/3x/cartoon_ant.png
new file mode 100644
index 0000000..d700ecf
Binary files /dev/null and b/assets/cartoon_ant/dark/3x/cartoon_ant.png differ
diff --git a/assets/cartoon_ant/dark/3x/cartoon_ant_darker.png b/assets/cartoon_ant/dark/3x/cartoon_ant_darker.png
new file mode 100644
index 0000000..7908077
Binary files /dev/null and b/assets/cartoon_ant/dark/3x/cartoon_ant_darker.png differ
diff --git a/assets/cartoon_ant/dark/cartoon_ant.png b/assets/cartoon_ant/dark/cartoon_ant.png
new file mode 100644
index 0000000..e15f2bf
Binary files /dev/null and b/assets/cartoon_ant/dark/cartoon_ant.png differ
diff --git a/assets/cartoon_ant/dark/cartoon_ant.svg b/assets/cartoon_ant/dark/cartoon_ant.svg
new file mode 100644
index 0000000..6cb5c7e
--- /dev/null
+++ b/assets/cartoon_ant/dark/cartoon_ant.svg
@@ -0,0 +1,400 @@
+
+
+
+
diff --git a/assets/cartoon_ant/dark/cartoon_ant_darker.png b/assets/cartoon_ant/dark/cartoon_ant_darker.png
new file mode 100644
index 0000000..9e757a6
Binary files /dev/null and b/assets/cartoon_ant/dark/cartoon_ant_darker.png differ
diff --git a/assets/cartoon_ant/dark/cartoon_ant_darker.svg b/assets/cartoon_ant/dark/cartoon_ant_darker.svg
new file mode 100644
index 0000000..c32a948
--- /dev/null
+++ b/assets/cartoon_ant/dark/cartoon_ant_darker.svg
@@ -0,0 +1,400 @@
+
+
+
+
diff --git a/assets/cartoon_ant_old/2x/cartoon_ant.png b/assets/cartoon_ant_old/2x/cartoon_ant.png
new file mode 100644
index 0000000..c3ce660
Binary files /dev/null and b/assets/cartoon_ant_old/2x/cartoon_ant.png differ
diff --git a/assets/cartoon_ant_old/3x/cartoon_ant.png b/assets/cartoon_ant_old/3x/cartoon_ant.png
new file mode 100644
index 0000000..e78a177
Binary files /dev/null and b/assets/cartoon_ant_old/3x/cartoon_ant.png differ
diff --git a/assets/cartoon_ant_old/cartoon_ant.png b/assets/cartoon_ant_old/cartoon_ant.png
new file mode 100644
index 0000000..b4b4cd6
Binary files /dev/null and b/assets/cartoon_ant_old/cartoon_ant.png differ
diff --git a/assets/cartoon_ant_old/cartoon_ant.svg b/assets/cartoon_ant_old/cartoon_ant.svg
new file mode 100644
index 0000000..c778798
--- /dev/null
+++ b/assets/cartoon_ant_old/cartoon_ant.svg
@@ -0,0 +1,160 @@
+
+
diff --git a/assets/createiosicons.sh b/assets/createiosicons.sh
new file mode 100755
index 0000000..480a9c9
--- /dev/null
+++ b/assets/createiosicons.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+#inkscape=/Applications/Inkscape.app/Contents/MacOS/inkscape
+inputSVG=$1
+exportName=$2
+resolutions="40 58 60 80 87 120 152 167 180 1024"
+dirName=${exportName}_icon
+
+mkdir $dirName
+
+for res in $resolutions
+do
+ inkscape $inputSVG -o $dirName/$exportName$res.png -w $res -h $res
+done
diff --git a/assets/feature_graphic/feature_graphic.png b/assets/feature_graphic/feature_graphic.png
new file mode 100644
index 0000000..976f760
Binary files /dev/null and b/assets/feature_graphic/feature_graphic.png differ
diff --git a/fonts/Dosis/Dosis-VariableFont_wght.ttf b/fonts/Dosis/Dosis-VariableFont_wght.ttf
new file mode 100644
index 0000000..e2c9959
Binary files /dev/null and b/fonts/Dosis/Dosis-VariableFont_wght.ttf differ
diff --git a/fonts/Dosis/OFL.txt b/fonts/Dosis/OFL.txt
new file mode 100644
index 0000000..73b1b36
--- /dev/null
+++ b/fonts/Dosis/OFL.txt
@@ -0,0 +1,93 @@
+Copyright 2011 The Dosis Project Authors (https://github.com/googlefonts/dosis-vf)
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+This license is copied below, and is also available with a FAQ at:
+http://scripts.sil.org/OFL
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/fonts/Dosis/README.txt b/fonts/Dosis/README.txt
new file mode 100644
index 0000000..e12383b
--- /dev/null
+++ b/fonts/Dosis/README.txt
@@ -0,0 +1,69 @@
+Dosis Variable Font
+===================
+
+This download contains Dosis as both a variable font and static fonts.
+
+Dosis is a variable font with this axis:
+ wght
+
+This means all the styles are contained in a single file:
+ Dosis-VariableFont_wght.ttf
+
+If your app fully supports variable fonts, you can now pick intermediate styles
+that aren’t available as static fonts. Not all apps support variable fonts, and
+in those cases you can use the static font files for Dosis:
+ static/Dosis-ExtraLight.ttf
+ static/Dosis-Light.ttf
+ static/Dosis-Regular.ttf
+ static/Dosis-Medium.ttf
+ static/Dosis-SemiBold.ttf
+ static/Dosis-Bold.ttf
+ static/Dosis-ExtraBold.ttf
+
+Get started
+-----------
+
+1. Install the font files you want to use
+
+2. Use your app's font picker to view the font family and all the
+available styles
+
+Learn more about variable fonts
+-------------------------------
+
+ https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts
+ https://variablefonts.typenetwork.com
+ https://medium.com/variable-fonts
+
+In desktop apps
+
+ https://theblog.adobe.com/can-variable-fonts-illustrator-cc
+ https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts
+
+Online
+
+ https://developers.google.com/fonts/docs/getting_started
+ https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide
+ https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts
+
+Installing fonts
+
+ MacOS: https://support.apple.com/en-us/HT201749
+ Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux
+ Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows
+
+Android Apps
+
+ https://developers.google.com/fonts/docs/android
+ https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts
+
+License
+-------
+Please read the full license text (OFL.txt) to understand the permissions,
+restrictions and requirements for usage, redistribution, and modification.
+
+You can use them in your products & projects - print or digital,
+commercial or otherwise.
+
+This isn't legal advice, please consider consulting a lawyer and see the full
+license for all details.
diff --git a/fonts/Dosis/static/Dosis-Bold.ttf b/fonts/Dosis/static/Dosis-Bold.ttf
new file mode 100644
index 0000000..2e21748
Binary files /dev/null and b/fonts/Dosis/static/Dosis-Bold.ttf differ
diff --git a/fonts/Dosis/static/Dosis-ExtraBold.ttf b/fonts/Dosis/static/Dosis-ExtraBold.ttf
new file mode 100644
index 0000000..6ea1ff0
Binary files /dev/null and b/fonts/Dosis/static/Dosis-ExtraBold.ttf differ
diff --git a/fonts/Dosis/static/Dosis-ExtraLight.ttf b/fonts/Dosis/static/Dosis-ExtraLight.ttf
new file mode 100644
index 0000000..9de198c
Binary files /dev/null and b/fonts/Dosis/static/Dosis-ExtraLight.ttf differ
diff --git a/fonts/Dosis/static/Dosis-Light.ttf b/fonts/Dosis/static/Dosis-Light.ttf
new file mode 100644
index 0000000..bbd12bb
Binary files /dev/null and b/fonts/Dosis/static/Dosis-Light.ttf differ
diff --git a/fonts/Dosis/static/Dosis-Medium.ttf b/fonts/Dosis/static/Dosis-Medium.ttf
new file mode 100644
index 0000000..9a73543
Binary files /dev/null and b/fonts/Dosis/static/Dosis-Medium.ttf differ
diff --git a/fonts/Dosis/static/Dosis-Regular.ttf b/fonts/Dosis/static/Dosis-Regular.ttf
new file mode 100644
index 0000000..1057d24
Binary files /dev/null and b/fonts/Dosis/static/Dosis-Regular.ttf differ
diff --git a/fonts/Dosis/static/Dosis-SemiBold.ttf b/fonts/Dosis/static/Dosis-SemiBold.ttf
new file mode 100644
index 0000000..73bd1ca
Binary files /dev/null and b/fonts/Dosis/static/Dosis-SemiBold.ttf differ
diff --git a/fonts/Open_Sans/LICENSE.txt b/fonts/Open_Sans/LICENSE.txt
new file mode 100644
index 0000000..d645695
--- /dev/null
+++ b/fonts/Open_Sans/LICENSE.txt
@@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/fonts/Open_Sans/OpenSans-Italic-VariableFont_wdth,wght.ttf b/fonts/Open_Sans/OpenSans-Italic-VariableFont_wdth,wght.ttf
new file mode 100644
index 0000000..ae4c04c
Binary files /dev/null and b/fonts/Open_Sans/OpenSans-Italic-VariableFont_wdth,wght.ttf differ
diff --git a/fonts/Open_Sans/OpenSans-VariableFont_wdth,wght.ttf b/fonts/Open_Sans/OpenSans-VariableFont_wdth,wght.ttf
new file mode 100644
index 0000000..cbb30ef
Binary files /dev/null and b/fonts/Open_Sans/OpenSans-VariableFont_wdth,wght.ttf differ
diff --git a/fonts/Open_Sans/README.txt b/fonts/Open_Sans/README.txt
new file mode 100644
index 0000000..c222e44
--- /dev/null
+++ b/fonts/Open_Sans/README.txt
@@ -0,0 +1,100 @@
+Open Sans Variable Font
+=======================
+
+This download contains Open Sans as both variable fonts and static fonts.
+
+Open Sans is a variable font with these axes:
+ wdth
+ wght
+
+This means all the styles are contained in these files:
+ OpenSans-VariableFont_wdth,wght.ttf
+ OpenSans-Italic-VariableFont_wdth,wght.ttf
+
+If your app fully supports variable fonts, you can now pick intermediate styles
+that aren’t available as static fonts. Not all apps support variable fonts, and
+in those cases you can use the static font files for Open Sans:
+ static/OpenSans_Condensed/OpenSans_Condensed-Light.ttf
+ static/OpenSans_Condensed/OpenSans_Condensed-Regular.ttf
+ static/OpenSans_Condensed/OpenSans_Condensed-Medium.ttf
+ static/OpenSans_Condensed/OpenSans_Condensed-SemiBold.ttf
+ static/OpenSans_Condensed/OpenSans_Condensed-Bold.ttf
+ static/OpenSans_Condensed/OpenSans_Condensed-ExtraBold.ttf
+ static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Light.ttf
+ static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Regular.ttf
+ static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Medium.ttf
+ static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-SemiBold.ttf
+ static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Bold.ttf
+ static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-ExtraBold.ttf
+ static/OpenSans/OpenSans-Light.ttf
+ static/OpenSans/OpenSans-Regular.ttf
+ static/OpenSans/OpenSans-Medium.ttf
+ static/OpenSans/OpenSans-SemiBold.ttf
+ static/OpenSans/OpenSans-Bold.ttf
+ static/OpenSans/OpenSans-ExtraBold.ttf
+ static/OpenSans_Condensed/OpenSans_Condensed-LightItalic.ttf
+ static/OpenSans_Condensed/OpenSans_Condensed-Italic.ttf
+ static/OpenSans_Condensed/OpenSans_Condensed-MediumItalic.ttf
+ static/OpenSans_Condensed/OpenSans_Condensed-SemiBoldItalic.ttf
+ static/OpenSans_Condensed/OpenSans_Condensed-BoldItalic.ttf
+ static/OpenSans_Condensed/OpenSans_Condensed-ExtraBoldItalic.ttf
+ static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-LightItalic.ttf
+ static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Italic.ttf
+ static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-MediumItalic.ttf
+ static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-SemiBoldItalic.ttf
+ static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-BoldItalic.ttf
+ static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-ExtraBoldItalic.ttf
+ static/OpenSans/OpenSans-LightItalic.ttf
+ static/OpenSans/OpenSans-Italic.ttf
+ static/OpenSans/OpenSans-MediumItalic.ttf
+ static/OpenSans/OpenSans-SemiBoldItalic.ttf
+ static/OpenSans/OpenSans-BoldItalic.ttf
+ static/OpenSans/OpenSans-ExtraBoldItalic.ttf
+
+Get started
+-----------
+
+1. Install the font files you want to use
+
+2. Use your app's font picker to view the font family and all the
+available styles
+
+Learn more about variable fonts
+-------------------------------
+
+ https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts
+ https://variablefonts.typenetwork.com
+ https://medium.com/variable-fonts
+
+In desktop apps
+
+ https://theblog.adobe.com/can-variable-fonts-illustrator-cc
+ https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts
+
+Online
+
+ https://developers.google.com/fonts/docs/getting_started
+ https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide
+ https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts
+
+Installing fonts
+
+ MacOS: https://support.apple.com/en-us/HT201749
+ Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux
+ Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows
+
+Android Apps
+
+ https://developers.google.com/fonts/docs/android
+ https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts
+
+License
+-------
+Please read the full license text (LICENSE.txt) to understand the permissions,
+restrictions and requirements for usage, redistribution, and modification.
+
+You can use them in your products & projects - print or digital,
+commercial or otherwise.
+
+This isn't legal advice, please consider consulting a lawyer and see the full
+license for all details.
diff --git a/fonts/Open_Sans/static/OpenSans/OpenSans-Bold.ttf b/fonts/Open_Sans/static/OpenSans/OpenSans-Bold.ttf
new file mode 100644
index 0000000..ab4d993
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans/OpenSans-Bold.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans/OpenSans-BoldItalic.ttf b/fonts/Open_Sans/static/OpenSans/OpenSans-BoldItalic.ttf
new file mode 100644
index 0000000..5dcb3a5
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans/OpenSans-BoldItalic.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans/OpenSans-ExtraBold.ttf b/fonts/Open_Sans/static/OpenSans/OpenSans-ExtraBold.ttf
new file mode 100644
index 0000000..6fce624
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans/OpenSans-ExtraBold.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans/OpenSans-ExtraBoldItalic.ttf b/fonts/Open_Sans/static/OpenSans/OpenSans-ExtraBoldItalic.ttf
new file mode 100644
index 0000000..788be48
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans/OpenSans-ExtraBoldItalic.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans/OpenSans-Italic.ttf b/fonts/Open_Sans/static/OpenSans/OpenSans-Italic.ttf
new file mode 100644
index 0000000..68cff8f
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans/OpenSans-Italic.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans/OpenSans-Light.ttf b/fonts/Open_Sans/static/OpenSans/OpenSans-Light.ttf
new file mode 100644
index 0000000..1638514
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans/OpenSans-Light.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans/OpenSans-LightItalic.ttf b/fonts/Open_Sans/static/OpenSans/OpenSans-LightItalic.ttf
new file mode 100644
index 0000000..d321563
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans/OpenSans-LightItalic.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans/OpenSans-Medium.ttf b/fonts/Open_Sans/static/OpenSans/OpenSans-Medium.ttf
new file mode 100644
index 0000000..faa5386
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans/OpenSans-Medium.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans/OpenSans-MediumItalic.ttf b/fonts/Open_Sans/static/OpenSans/OpenSans-MediumItalic.ttf
new file mode 100644
index 0000000..e15c7d4
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans/OpenSans-MediumItalic.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans/OpenSans-Regular.ttf b/fonts/Open_Sans/static/OpenSans/OpenSans-Regular.ttf
new file mode 100644
index 0000000..e21ff5f
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans/OpenSans-Regular.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans/OpenSans-SemiBold.ttf b/fonts/Open_Sans/static/OpenSans/OpenSans-SemiBold.ttf
new file mode 100644
index 0000000..2b18a1c
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans/OpenSans-SemiBold.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans/OpenSans-SemiBoldItalic.ttf b/fonts/Open_Sans/static/OpenSans/OpenSans-SemiBoldItalic.ttf
new file mode 100644
index 0000000..1f86d18
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans/OpenSans-SemiBoldItalic.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-Bold.ttf b/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-Bold.ttf
new file mode 100644
index 0000000..8d7dc04
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-Bold.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-BoldItalic.ttf b/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-BoldItalic.ttf
new file mode 100644
index 0000000..5b9791f
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-BoldItalic.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-ExtraBold.ttf b/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-ExtraBold.ttf
new file mode 100644
index 0000000..09125ec
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-ExtraBold.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-ExtraBoldItalic.ttf b/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-ExtraBoldItalic.ttf
new file mode 100644
index 0000000..ee1f69f
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-ExtraBoldItalic.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-Italic.ttf b/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-Italic.ttf
new file mode 100644
index 0000000..73ceb69
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-Italic.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-Light.ttf b/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-Light.ttf
new file mode 100644
index 0000000..fd82b9b
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-Light.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-LightItalic.ttf b/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-LightItalic.ttf
new file mode 100644
index 0000000..631d70b
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-LightItalic.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-Medium.ttf b/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-Medium.ttf
new file mode 100644
index 0000000..b3287f5
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-Medium.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-MediumItalic.ttf b/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-MediumItalic.ttf
new file mode 100644
index 0000000..a186079
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-MediumItalic.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-Regular.ttf b/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-Regular.ttf
new file mode 100644
index 0000000..ed90093
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-Regular.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-SemiBold.ttf b/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-SemiBold.ttf
new file mode 100644
index 0000000..cf41701
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-SemiBold.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-SemiBoldItalic.ttf b/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-SemiBoldItalic.ttf
new file mode 100644
index 0000000..edcc9d1
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans_Condensed/OpenSans_Condensed-SemiBoldItalic.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Bold.ttf b/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Bold.ttf
new file mode 100644
index 0000000..bd1abee
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Bold.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-BoldItalic.ttf b/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-BoldItalic.ttf
new file mode 100644
index 0000000..18b5449
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-BoldItalic.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-ExtraBold.ttf b/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-ExtraBold.ttf
new file mode 100644
index 0000000..0419b55
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-ExtraBold.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-ExtraBoldItalic.ttf b/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-ExtraBoldItalic.ttf
new file mode 100644
index 0000000..41a93e2
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-ExtraBoldItalic.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Italic.ttf b/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Italic.ttf
new file mode 100644
index 0000000..6e3f49c
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Italic.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Light.ttf b/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Light.ttf
new file mode 100644
index 0000000..7259e9f
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Light.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-LightItalic.ttf b/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-LightItalic.ttf
new file mode 100644
index 0000000..eb1b419
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-LightItalic.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Medium.ttf b/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Medium.ttf
new file mode 100644
index 0000000..6a453ae
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Medium.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-MediumItalic.ttf b/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-MediumItalic.ttf
new file mode 100644
index 0000000..82656db
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-MediumItalic.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Regular.ttf b/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Regular.ttf
new file mode 100644
index 0000000..b5e33f3
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Regular.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-SemiBold.ttf b/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-SemiBold.ttf
new file mode 100644
index 0000000..cd3877d
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-SemiBold.ttf differ
diff --git a/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-SemiBoldItalic.ttf b/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-SemiBoldItalic.ttf
new file mode 100644
index 0000000..abb57d0
Binary files /dev/null and b/fonts/Open_Sans/static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-SemiBoldItalic.ttf differ
diff --git a/ios/.gitignore b/ios/.gitignore
new file mode 100644
index 0000000..047b63d
--- /dev/null
+++ b/ios/.gitignore
@@ -0,0 +1,35 @@
+*.mode1v3
+*.mode2v3
+*.moved-aside
+*.pbxuser
+*.perspectivev3
+**/*sync/
+.sconsign.dblite
+.tags*
+**/.vagrant/
+**/DerivedData/
+Icon?
+**/Pods/
+**/.symlinks/
+profile
+xcuserdata
+**/.generated/
+Flutter/App.framework
+Flutter/Flutter.framework
+Flutter/Flutter.podspec
+Flutter/Generated.xcconfig
+Flutter/app.flx
+Flutter/app.zip
+Flutter/flutter_assets/
+Flutter/flutter_export_environment.sh
+ServiceDefinitions.json
+Runner/GeneratedPluginRegistrant.*
+
+# Exceptions to above rules.
+!default.mode1v3
+!default.mode2v3
+!default.pbxuser
+!default.perspectivev3
+
+# Remove archived flutter icon
+/Runner/Assets.xcassets/AppIcon - archive.appiconset/
diff --git a/ios/Flutter/AppFrameworkInfo.plist b/ios/Flutter/AppFrameworkInfo.plist
new file mode 100644
index 0000000..b5936e8
--- /dev/null
+++ b/ios/Flutter/AppFrameworkInfo.plist
@@ -0,0 +1,26 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleExecutable
+ App
+ CFBundleIdentifier
+ io.flutter.flutter.app
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ App
+ CFBundlePackageType
+ FMWK
+ CFBundleShortVersionString
+ 1.0
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ 1.0
+ MinimumOSVersion
+ 11.0
+
+
diff --git a/ios/Flutter/Debug.xcconfig b/ios/Flutter/Debug.xcconfig
new file mode 100644
index 0000000..9706ed5
--- /dev/null
+++ b/ios/Flutter/Debug.xcconfig
@@ -0,0 +1,6 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
+#include "Generated.xcconfig"
+// Create the `Secrets.xcconfig` file to store API keys
+#include "Secrets.xcconfig"
+ASSETCATALOG_COMPILER_APPICON_NAME = AppIconDev
+APP_NAME = AntNupDev
diff --git a/ios/Flutter/Release.xcconfig b/ios/Flutter/Release.xcconfig
new file mode 100644
index 0000000..f2834d3
--- /dev/null
+++ b/ios/Flutter/Release.xcconfig
@@ -0,0 +1,6 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
+#include "Generated.xcconfig"
+// Create the `Secrets.xcconfig` file to store API keys
+#include "Secrets.xcconfig"
+ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon
+APP_NAME = AntNupTracker
diff --git a/ios/Podfile b/ios/Podfile
new file mode 100644
index 0000000..8f0c020
--- /dev/null
+++ b/ios/Podfile
@@ -0,0 +1,102 @@
+# Uncomment this line to define a global platform for your project
+platform :ios, '11.0'
+
+# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
+ENV['COCOAPODS_DISABLE_STATS'] = 'true'
+
+# add pods for desired Firebase products
+# https://firebase.google.com/docs/ios/setup#available-pods
+
+project 'Runner', {
+ 'Debug' => :debug,
+ 'Profile' => :release,
+ 'Release' => :release,
+}
+
+def flutter_root
+ generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
+ unless File.exist?(generated_xcode_build_settings_path)
+ raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
+ end
+
+ File.foreach(generated_xcode_build_settings_path) do |line|
+ matches = line.match(/FLUTTER_ROOT\=(.*)/)
+ return matches[1].strip if matches
+ end
+ raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
+end
+
+require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
+
+flutter_ios_podfile_setup
+
+target 'Runner' do
+ use_frameworks!
+ use_modular_headers!
+
+ flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
+end
+
+post_install do |installer|
+ installer.pods_project.targets.each do |target|
+ flutter_additional_ios_build_settings(target)
+
+ target.build_configurations.each do |config|
+ # Here are some configurations automatically generated by flutter
+
+ # You can enable the permissions needed here. For example to enable camera
+ # permission, just remove the `#` character in front so it looks like this:
+ #
+ # ## dart: PermissionGroup.camera
+ # 'PERMISSION_CAMERA=1'
+ #
+ # Preprocessor definitions can be found in: https://github.com/Baseflow/flutter-permission-handler/blob/master/permission_handler/ios/Classes/PermissionHandlerEnums.h
+ config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
+ '$(inherited)',
+
+ ## dart: PermissionGroup.calendar
+ # 'PERMISSION_EVENTS=1',
+
+ ## dart: PermissionGroup.reminders
+ # 'PERMISSION_REMINDERS=1',
+
+ ## dart: PermissionGroup.contacts
+ # 'PERMISSION_CONTACTS=1',
+
+ ## dart: PermissionGroup.camera
+ 'PERMISSION_CAMERA=1',
+
+ ## dart: PermissionGroup.microphone
+ # 'PERMISSION_MICROPHONE=1',
+
+ ## dart: PermissionGroup.speech
+ # 'PERMISSION_SPEECH_RECOGNIZER=1',
+
+ ## dart: PermissionGroup.photos
+ 'PERMISSION_PHOTOS=1',
+
+ ## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]
+ 'PERMISSION_LOCATION=1',
+
+ ## dart: PermissionGroup.notification
+ # 'PERMISSION_NOTIFICATIONS=1',
+
+ ## dart: PermissionGroup.mediaLibrary
+ # 'PERMISSION_MEDIA_LIBRARY=1',
+
+ ## dart: PermissionGroup.sensors
+ # 'PERMISSION_SENSORS=1',
+
+ ## dart: PermissionGroup.bluetooth
+ # 'PERMISSION_BLUETOOTH=1',
+
+ ## dart: PermissionGroup.appTrackingTransparency
+ # 'PERMISSION_APP_TRACKING_TRANSPARENCY=1',
+
+ ## dart: PermissionGroup.criticalAlerts
+ # 'PERMISSION_CRITICAL_ALERTS=1'
+ ]
+
+ end
+ end
+end
diff --git a/ios/Podfile.lock b/ios/Podfile.lock
new file mode 100644
index 0000000..514330d
--- /dev/null
+++ b/ios/Podfile.lock
@@ -0,0 +1,221 @@
+PODS:
+ - Firebase/CoreOnly (9.2.0):
+ - FirebaseCore (= 9.2.0)
+ - Firebase/Messaging (9.2.0):
+ - Firebase/CoreOnly
+ - FirebaseMessaging (~> 9.2.0)
+ - firebase_core (1.19.2):
+ - Firebase/CoreOnly (= 9.2.0)
+ - Flutter
+ - firebase_messaging (11.4.4):
+ - Firebase/Messaging (= 9.2.0)
+ - firebase_core
+ - Flutter
+ - FirebaseCore (9.2.0):
+ - FirebaseCoreDiagnostics (~> 9.0)
+ - FirebaseCoreInternal (~> 9.0)
+ - GoogleUtilities/Environment (~> 7.7)
+ - GoogleUtilities/Logger (~> 7.7)
+ - FirebaseCoreDiagnostics (9.3.0):
+ - GoogleDataTransport (< 10.0.0, >= 9.1.4)
+ - GoogleUtilities/Environment (~> 7.7)
+ - GoogleUtilities/Logger (~> 7.7)
+ - nanopb (< 2.30910.0, >= 2.30908.0)
+ - FirebaseCoreInternal (9.3.0):
+ - "GoogleUtilities/NSData+zlib (~> 7.7)"
+ - FirebaseInstallations (9.3.0):
+ - FirebaseCore (~> 9.0)
+ - GoogleUtilities/Environment (~> 7.7)
+ - GoogleUtilities/UserDefaults (~> 7.7)
+ - PromisesObjC (~> 2.1)
+ - FirebaseMessaging (9.2.0):
+ - FirebaseCore (~> 9.0)
+ - FirebaseInstallations (~> 9.0)
+ - GoogleDataTransport (< 10.0.0, >= 9.1.4)
+ - GoogleUtilities/AppDelegateSwizzler (~> 7.7)
+ - GoogleUtilities/Environment (~> 7.7)
+ - GoogleUtilities/Reachability (~> 7.7)
+ - GoogleUtilities/UserDefaults (~> 7.7)
+ - nanopb (< 2.30910.0, >= 2.30908.0)
+ - Flutter (1.0.0)
+ - flutter_image_compress (0.0.1):
+ - Flutter
+ - Mantle
+ - SDWebImage
+ - SDWebImageWebPCoder
+ - flutter_secure_storage (3.3.1):
+ - Flutter
+ - FMDB (2.7.5):
+ - FMDB/standard (= 2.7.5)
+ - FMDB/standard (2.7.5)
+ - gallery_saver (0.0.1):
+ - Flutter
+ - google_maps_flutter (0.0.1):
+ - Flutter
+ - GoogleMaps
+ - GoogleDataTransport (9.1.4):
+ - GoogleUtilities/Environment (~> 7.7)
+ - nanopb (< 2.30910.0, >= 2.30908.0)
+ - PromisesObjC (< 3.0, >= 1.2)
+ - GoogleMaps (5.2.0):
+ - GoogleMaps/Maps (= 5.2.0)
+ - GoogleMaps/Base (5.2.0)
+ - GoogleMaps/Maps (5.2.0):
+ - GoogleMaps/Base
+ - GoogleUtilities/AppDelegateSwizzler (7.7.0):
+ - GoogleUtilities/Environment
+ - GoogleUtilities/Logger
+ - GoogleUtilities/Network
+ - GoogleUtilities/Environment (7.7.0):
+ - PromisesObjC (< 3.0, >= 1.2)
+ - GoogleUtilities/Logger (7.7.0):
+ - GoogleUtilities/Environment
+ - GoogleUtilities/Network (7.7.0):
+ - GoogleUtilities/Logger
+ - "GoogleUtilities/NSData+zlib"
+ - GoogleUtilities/Reachability
+ - "GoogleUtilities/NSData+zlib (7.7.0)"
+ - GoogleUtilities/Reachability (7.7.0):
+ - GoogleUtilities/Logger
+ - GoogleUtilities/UserDefaults (7.7.0):
+ - GoogleUtilities/Logger
+ - image_picker_ios (0.0.1):
+ - Flutter
+ - libwebp (1.2.1):
+ - libwebp/demux (= 1.2.1)
+ - libwebp/mux (= 1.2.1)
+ - libwebp/webp (= 1.2.1)
+ - libwebp/demux (1.2.1):
+ - libwebp/webp
+ - libwebp/mux (1.2.1):
+ - libwebp/demux
+ - libwebp/webp (1.2.1)
+ - location (0.0.1):
+ - Flutter
+ - Mantle (2.2.0):
+ - Mantle/extobjc (= 2.2.0)
+ - Mantle/extobjc (2.2.0)
+ - nanopb (2.30909.0):
+ - nanopb/decode (= 2.30909.0)
+ - nanopb/encode (= 2.30909.0)
+ - nanopb/decode (2.30909.0)
+ - nanopb/encode (2.30909.0)
+ - path_provider_ios (0.0.1):
+ - Flutter
+ - permission_handler_apple (9.0.4):
+ - Flutter
+ - PromisesObjC (2.1.1)
+ - SDWebImage (5.13.1):
+ - SDWebImage/Core (= 5.13.1)
+ - SDWebImage/Core (5.13.1)
+ - SDWebImageWebPCoder (0.9.0):
+ - libwebp (~> 1.0)
+ - SDWebImage/Core (~> 5.13)
+ - shared_preferences_ios (0.0.1):
+ - Flutter
+ - sqflite (0.0.2):
+ - Flutter
+ - FMDB (>= 2.7.5)
+ - url_launcher_ios (0.0.1):
+ - Flutter
+
+DEPENDENCIES:
+ - firebase_core (from `.symlinks/plugins/firebase_core/ios`)
+ - firebase_messaging (from `.symlinks/plugins/firebase_messaging/ios`)
+ - Flutter (from `Flutter`)
+ - flutter_image_compress (from `.symlinks/plugins/flutter_image_compress/ios`)
+ - flutter_secure_storage (from `.symlinks/plugins/flutter_secure_storage/ios`)
+ - gallery_saver (from `.symlinks/plugins/gallery_saver/ios`)
+ - google_maps_flutter (from `.symlinks/plugins/google_maps_flutter/ios`)
+ - image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`)
+ - location (from `.symlinks/plugins/location/ios`)
+ - path_provider_ios (from `.symlinks/plugins/path_provider_ios/ios`)
+ - permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`)
+ - shared_preferences_ios (from `.symlinks/plugins/shared_preferences_ios/ios`)
+ - sqflite (from `.symlinks/plugins/sqflite/ios`)
+ - url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
+
+SPEC REPOS:
+ trunk:
+ - Firebase
+ - FirebaseCore
+ - FirebaseCoreDiagnostics
+ - FirebaseCoreInternal
+ - FirebaseInstallations
+ - FirebaseMessaging
+ - FMDB
+ - GoogleDataTransport
+ - GoogleMaps
+ - GoogleUtilities
+ - libwebp
+ - Mantle
+ - nanopb
+ - PromisesObjC
+ - SDWebImage
+ - SDWebImageWebPCoder
+
+EXTERNAL SOURCES:
+ firebase_core:
+ :path: ".symlinks/plugins/firebase_core/ios"
+ firebase_messaging:
+ :path: ".symlinks/plugins/firebase_messaging/ios"
+ Flutter:
+ :path: Flutter
+ flutter_image_compress:
+ :path: ".symlinks/plugins/flutter_image_compress/ios"
+ flutter_secure_storage:
+ :path: ".symlinks/plugins/flutter_secure_storage/ios"
+ gallery_saver:
+ :path: ".symlinks/plugins/gallery_saver/ios"
+ google_maps_flutter:
+ :path: ".symlinks/plugins/google_maps_flutter/ios"
+ image_picker_ios:
+ :path: ".symlinks/plugins/image_picker_ios/ios"
+ location:
+ :path: ".symlinks/plugins/location/ios"
+ path_provider_ios:
+ :path: ".symlinks/plugins/path_provider_ios/ios"
+ permission_handler_apple:
+ :path: ".symlinks/plugins/permission_handler_apple/ios"
+ shared_preferences_ios:
+ :path: ".symlinks/plugins/shared_preferences_ios/ios"
+ sqflite:
+ :path: ".symlinks/plugins/sqflite/ios"
+ url_launcher_ios:
+ :path: ".symlinks/plugins/url_launcher_ios/ios"
+
+SPEC CHECKSUMS:
+ Firebase: 4ba896cb8e5105d4b9e247e1c1b6222b548df55a
+ firebase_core: ada8be870601fe3c2684dae2356f634189bd598f
+ firebase_messaging: 405f36f22122866761e7ba7aa1dcecbae09ef836
+ FirebaseCore: 0e27f2a15d8f7b7ef11e7d93e23b1cbab55d748c
+ FirebaseCoreDiagnostics: 060eb57cc56dfaf40b1b1b5874a5c17c41ce79f8
+ FirebaseCoreInternal: 635d1c9a612a6502b6377a0c92af83758076ffff
+ FirebaseInstallations: 54b40022cb06e462740c9f2b9fbe38b5e78a825a
+ FirebaseMessaging: 4eaf1b8a7464b2c5e619ad66e9b20ee3e3206b24
+ Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
+ flutter_image_compress: fd2b476345226e1a10ea352fa306af95704642c1
+ flutter_secure_storage: 7953c38a04c3fdbb00571bcd87d8e3b5ceb9daec
+ FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
+ gallery_saver: 9fc173c9f4fcc48af53b2a9ebea1b643255be542
+ google_maps_flutter: c59fc576c0d0c7f4dc4bd63832c862d22d5a7c6d
+ GoogleDataTransport: 5fffe35792f8b96ec8d6775f5eccd83c998d5a3b
+ GoogleMaps: 025272d5876d3b32604e5c080dc25eaf68764693
+ GoogleUtilities: e0913149f6b0625b553d70dae12b49fc62914fd1
+ image_picker_ios: b786a5dcf033a8336a657191401bfdf12017dabb
+ libwebp: 98a37e597e40bfdb4c911fc98f2c53d0b12d05fc
+ location: 3a2eed4dd2fab25e7b7baf2a9efefe82b512d740
+ Mantle: c5aa8794a29a022dfbbfc9799af95f477a69b62d
+ nanopb: b552cce312b6c8484180ef47159bc0f65a1f0431
+ path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02
+ permission_handler_apple: 44366e37eaf29454a1e7b1b7d736c2cceaeb17ce
+ PromisesObjC: ab77feca74fa2823e7af4249b8326368e61014cb
+ SDWebImage: fb26a455eeda4c7a55e4dcb6172dbb258af7a4ca
+ SDWebImageWebPCoder: 3dc350894112feab5375cfba9ce0986544a66a69
+ shared_preferences_ios: 548a61f8053b9b8a49ac19c1ffbc8b92c50d68ad
+ sqflite: 6d358c025f5b867b29ed92fc697fd34924e11904
+ url_launcher_ios: 839c58cdb4279282219f5e248c3321761ff3c4de
+
+PODFILE CHECKSUM: 48ba0c1e455ab125a7fe9b5a129ad23791e1b2be
+
+COCOAPODS: 1.11.3
diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..416c005
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.pbxproj
@@ -0,0 +1,617 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 51;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
+ 4301869F26CC4044002CC572 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 4301869E26CC4044002CC572 /* GoogleService-Info.plist */; };
+ 43F88BF027763086008AF6A5 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 43F88BDD277625FA008AF6A5 /* InfoPlist.strings */; };
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
+ AF13EEDE1653AA3241DB44B6 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4AC5FA87FC5D91F08BAEFFD8 /* Pods_Runner.framework */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+ 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 10;
+ files = (
+ );
+ name = "Embed Frameworks";
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+ 0B6237CDA5BCB712634F1008 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
+ 4301869D26CC3C3A002CC572 /* Runner.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Runner.entitlements; sourceTree = ""; };
+ 4301869E26CC4044002CC572 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = ""; };
+ 434866BF26C419BB00EA3DD9 /* Secrets.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Secrets.xcconfig; path = Flutter/Secrets.xcconfig; sourceTree = ""; };
+ 43F88BDC277625FA008AF6A5 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
+ 43F88BE127762981008AF6A5 /* fr-CA */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "fr-CA"; path = "fr-CA.lproj/Main.strings"; sourceTree = ""; };
+ 43F88BE227762981008AF6A5 /* fr-CA */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "fr-CA"; path = "fr-CA.lproj/LaunchScreen.strings"; sourceTree = ""; };
+ 43F88BE427762981008AF6A5 /* fr-CA */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "fr-CA"; path = "fr-CA.lproj/InfoPlist.strings"; sourceTree = ""; };
+ 43F88BEE27762EE9008AF6A5 /* Info-Release.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Info-Release.plist"; sourceTree = ""; };
+ 43F88BF1277AAAD3008AF6A5 /* Info-Debug.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Info-Debug.plist"; sourceTree = ""; };
+ 4AC5FA87FC5D91F08BAEFFD8 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+ 5725F2EE7A310DBFCEB39DBD /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
+ 8317E65BF06E4E5FAD301E34 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
+ 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
+ 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 97C146EB1CF9000F007C117D /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ AF13EEDE1653AA3241DB44B6 /* Pods_Runner.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 6FE9F32E8D2A2DDFF4C3BAB3 /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 4AC5FA87FC5D91F08BAEFFD8 /* Pods_Runner.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "";
+ };
+ 9740EEB11CF90186004384FC /* Flutter */ = {
+ isa = PBXGroup;
+ children = (
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */,
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */,
+ 434866BF26C419BB00EA3DD9 /* Secrets.xcconfig */,
+ );
+ name = Flutter;
+ sourceTree = "";
+ };
+ 97C146E51CF9000F007C117D = {
+ isa = PBXGroup;
+ children = (
+ 9740EEB11CF90186004384FC /* Flutter */,
+ 97C146F01CF9000F007C117D /* Runner */,
+ 97C146EF1CF9000F007C117D /* Products */,
+ BB6DEE6B068BEDBB2FD27CCA /* Pods */,
+ 6FE9F32E8D2A2DDFF4C3BAB3 /* Frameworks */,
+ );
+ sourceTree = "";
+ };
+ 97C146EF1CF9000F007C117D /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146EE1CF9000F007C117D /* Runner.app */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ 97C146F01CF9000F007C117D /* Runner */ = {
+ isa = PBXGroup;
+ children = (
+ 4301869D26CC3C3A002CC572 /* Runner.entitlements */,
+ 97C146FA1CF9000F007C117D /* Main.storyboard */,
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */,
+ 4301869E26CC4044002CC572 /* GoogleService-Info.plist */,
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
+ 43F88BEE27762EE9008AF6A5 /* Info-Release.plist */,
+ 43F88BF1277AAAD3008AF6A5 /* Info-Debug.plist */,
+ 43F88BDD277625FA008AF6A5 /* InfoPlist.strings */,
+ );
+ path = Runner;
+ sourceTree = "";
+ };
+ BB6DEE6B068BEDBB2FD27CCA /* Pods */ = {
+ isa = PBXGroup;
+ children = (
+ 8317E65BF06E4E5FAD301E34 /* Pods-Runner.debug.xcconfig */,
+ 5725F2EE7A310DBFCEB39DBD /* Pods-Runner.release.xcconfig */,
+ 0B6237CDA5BCB712634F1008 /* Pods-Runner.profile.xcconfig */,
+ );
+ path = Pods;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 97C146ED1CF9000F007C117D /* Runner */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
+ buildPhases = (
+ 48EB4F65EFD82FDD118159EA /* [CP] Check Pods Manifest.lock */,
+ 9740EEB61CF901F6004384FC /* Run Script */,
+ 97C146EA1CF9000F007C117D /* Sources */,
+ 97C146EB1CF9000F007C117D /* Frameworks */,
+ 97C146EC1CF9000F007C117D /* Resources */,
+ 9705A1C41CF9048500538489 /* Embed Frameworks */,
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
+ B2635C0624EB71287C82825A /* [CP] Embed Pods Frameworks */,
+ 00F778CF884CBB856D2982F5 /* [CP] Copy Pods Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = Runner;
+ packageProductDependencies = (
+ );
+ productName = Runner;
+ productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 97C146E61CF9000F007C117D /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 1300;
+ ORGANIZATIONNAME = "";
+ TargetAttributes = {
+ 97C146ED1CF9000F007C117D = {
+ CreatedOnToolsVersion = 7.3.1;
+ LastSwiftMigration = 1100;
+ };
+ };
+ };
+ buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
+ compatibilityVersion = "Xcode 9.3";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ "fr-CA",
+ );
+ mainGroup = 97C146E51CF9000F007C117D;
+ packageReferences = (
+ );
+ productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 97C146ED1CF9000F007C117D /* Runner */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 97C146EC1CF9000F007C117D /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
+ 43F88BF027763086008AF6A5 /* InfoPlist.strings in Resources */,
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
+ 4301869F26CC4044002CC572 /* GoogleService-Info.plist in Resources */,
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ 00F778CF884CBB856D2982F5 /* [CP] Copy Pods Resources */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
+ );
+ name = "[CP] Copy Pods Resources";
+ outputFileListPaths = (
+ "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
+ showEnvVarsInLog = 0;
+ };
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Thin Binary";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin\n";
+ };
+ 48EB4F65EFD82FDD118159EA /* [CP] Check Pods Manifest.lock */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ );
+ inputPaths = (
+ "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
+ "${PODS_ROOT}/Manifest.lock",
+ );
+ name = "[CP] Check Pods Manifest.lock";
+ outputFileListPaths = (
+ );
+ outputPaths = (
+ "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
+ showEnvVarsInLog = 0;
+ };
+ 9740EEB61CF901F6004384FC /* Run Script */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Run Script";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
+ };
+ B2635C0624EB71287C82825A /* [CP] Embed Pods Frameworks */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
+ );
+ name = "[CP] Embed Pods Frameworks";
+ outputFileListPaths = (
+ "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
+ showEnvVarsInLog = 0;
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 97C146EA1CF9000F007C117D /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ 43F88BDD277625FA008AF6A5 /* InfoPlist.strings */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 43F88BDC277625FA008AF6A5 /* en */,
+ 43F88BE427762981008AF6A5 /* fr-CA */,
+ );
+ name = InfoPlist.strings;
+ sourceTree = "";
+ };
+ 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C146FB1CF9000F007C117D /* Base */,
+ 43F88BE127762981008AF6A5 /* fr-CA */,
+ );
+ name = Main.storyboard;
+ sourceTree = "";
+ };
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C147001CF9000F007C117D /* Base */,
+ 43F88BE227762981008AF6A5 /* fr-CA */,
+ );
+ name = LaunchScreen.storyboard;
+ sourceTree = "";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 249021D3217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 12.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Profile;
+ };
+ 249021D4217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ DEVELOPMENT_TEAM = 87CYK2AQPY;
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = "Runner/Info-$(CONFIGURATION).plist";
+ IPHONEOS_DEPLOYMENT_TARGET = 12.0;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ MARKETING_VERSION = 1.0.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.brudski.NuptialTracker;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Profile;
+ };
+ 97C147031CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 12.0;
+ MTL_ENABLE_DEBUG_INFO = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ 97C147041CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 12.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ SWIFT_COMPILATION_MODE = wholemodule;
+ SWIFT_OPTIMIZATION_LEVEL = "-O";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 97C147061CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = "$(inherited)";
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ DEVELOPMENT_TEAM = 87CYK2AQPY;
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = "Runner/Info-$(CONFIGURATION).plist";
+ IPHONEOS_DEPLOYMENT_TARGET = 12.0;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ MARKETING_VERSION = 1.0.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.brudski.NuptialTracker;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Debug;
+ };
+ 97C147071CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ DEVELOPMENT_TEAM = 87CYK2AQPY;
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = "Runner/Info-$(CONFIGURATION).plist";
+ IPHONEOS_DEPLOYMENT_TARGET = 12.0;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ MARKETING_VERSION = 1.0.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.brudski.NuptialTracker;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147031CF9000F007C117D /* Debug */,
+ 97C147041CF9000F007C117D /* Release */,
+ 249021D3217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147061CF9000F007C117D /* Debug */,
+ 97C147071CF9000F007C117D /* Release */,
+ 249021D4217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 97C146E61CF9000F007C117D /* Project object */;
+}
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..919434a
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000..f9b0d7c
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
new file mode 100644
index 0000000..c87d15a
--- /dev/null
+++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -0,0 +1,87 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ios/Runner.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..21a3cc1
--- /dev/null
+++ b/ios/Runner.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
diff --git a/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000..f9b0d7c
--- /dev/null
+++ b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift
new file mode 100644
index 0000000..02acfde
--- /dev/null
+++ b/ios/Runner/AppDelegate.swift
@@ -0,0 +1,19 @@
+import UIKit
+import Flutter
+import GoogleMaps
+
+@UIApplicationMain
+@objc class AppDelegate: FlutterAppDelegate {
+ override func application(
+ _ application: UIApplication,
+ didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
+ ) -> Bool {
+
+ guard let mapsAPIKey = Bundle.main.object(forInfoDictionaryKey: "Google Maps API Key") as? String else {
+ fatalError("Maps API key not found!")
+ }
+ GMSServices.provideAPIKey(mapsAPIKey)
+ GeneratedPluginRegistrant.register(with: self)
+ return super.application(application, didFinishLaunchingWithOptions: launchOptions)
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue1024.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue1024.png
new file mode 100644
index 0000000..03fdd69
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue1024.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue120.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue120.png
new file mode 100644
index 0000000..e71cfde
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue120.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue152.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue152.png
new file mode 100644
index 0000000..9b01895
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue152.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue167.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue167.png
new file mode 100644
index 0000000..1e42c69
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue167.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue180.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue180.png
new file mode 100644
index 0000000..424bce2
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue180.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue40.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue40.png
new file mode 100644
index 0000000..8cf1b06
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue40.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue58.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue58.png
new file mode 100644
index 0000000..59e13d9
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue58.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue60.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue60.png
new file mode 100644
index 0000000..66c752c
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue60.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue80.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue80.png
new file mode 100644
index 0000000..8cd6a80
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue80.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue87.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue87.png
new file mode 100644
index 0000000..aea13cb
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/AntIconNewShortBlue87.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 0000000..4fafd33
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,113 @@
+{
+ "images" : [
+ {
+ "filename" : "AntIconNewShortBlue40.png",
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "20x20"
+ },
+ {
+ "filename" : "AntIconNewShortBlue60.png",
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "20x20"
+ },
+ {
+ "filename" : "AntIconNewShortBlue58.png",
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "AntIconNewShortBlue87.png",
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "AntIconNewShortBlue80.png",
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "40x40"
+ },
+ {
+ "filename" : "AntIconNewShortBlue120.png",
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "40x40"
+ },
+ {
+ "filename" : "AntIconNewShortBlue120.png",
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "60x60"
+ },
+ {
+ "filename" : "AntIconNewShortBlue180.png",
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "60x60"
+ },
+ {
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "20x20"
+ },
+ {
+ "filename" : "AntIconNewShortBlue40.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "20x20"
+ },
+ {
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "AntIconNewShortBlue58.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "AntIconNewShortBlue40.png",
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "40x40"
+ },
+ {
+ "filename" : "AntIconNewShortBlue80.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "40x40"
+ },
+ {
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "76x76"
+ },
+ {
+ "filename" : "AntIconNewShortBlue152.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "76x76"
+ },
+ {
+ "filename" : "AntIconNewShortBlue167.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "83.5x83.5"
+ },
+ {
+ "filename" : "AntIconNewShortBlue1024.png",
+ "idiom" : "ios-marketing",
+ "scale" : "1x",
+ "size" : "1024x1024"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/AppIconDev.appiconset/Contents.json b/ios/Runner/Assets.xcassets/AppIconDev.appiconset/Contents.json
new file mode 100644
index 0000000..dd3b87d
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/AppIconDev.appiconset/Contents.json
@@ -0,0 +1,113 @@
+{
+ "images" : [
+ {
+ "filename" : "newdevicon40.png",
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "20x20"
+ },
+ {
+ "filename" : "newdevicon60.png",
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "20x20"
+ },
+ {
+ "filename" : "newdevicon58.png",
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "newdevicon87.png",
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "newdevicon80.png",
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "40x40"
+ },
+ {
+ "filename" : "newdevicon120.png",
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "40x40"
+ },
+ {
+ "filename" : "newdevicon120.png",
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "60x60"
+ },
+ {
+ "filename" : "newdevicon180.png",
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "60x60"
+ },
+ {
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "20x20"
+ },
+ {
+ "filename" : "newdevicon40.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "20x20"
+ },
+ {
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "newdevicon58.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "newdevicon40.png",
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "40x40"
+ },
+ {
+ "filename" : "newdevicon80.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "40x40"
+ },
+ {
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "76x76"
+ },
+ {
+ "filename" : "newdevicon152.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "76x76"
+ },
+ {
+ "filename" : "newdevicon167.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "83.5x83.5"
+ },
+ {
+ "filename" : "newdevicon1024.png",
+ "idiom" : "ios-marketing",
+ "scale" : "1x",
+ "size" : "1024x1024"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon1024.png b/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon1024.png
new file mode 100644
index 0000000..62d9f2b
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon1024.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon120.png b/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon120.png
new file mode 100644
index 0000000..9cf9f0d
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon120.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon152.png b/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon152.png
new file mode 100644
index 0000000..edad583
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon152.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon167.png b/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon167.png
new file mode 100644
index 0000000..e111db6
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon167.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon180.png b/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon180.png
new file mode 100644
index 0000000..83b71bd
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon180.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon40.png b/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon40.png
new file mode 100644
index 0000000..1b7089e
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon40.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon58.png b/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon58.png
new file mode 100644
index 0000000..c91c937
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon58.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon60.png b/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon60.png
new file mode 100644
index 0000000..bff799c
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon60.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon80.png b/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon80.png
new file mode 100644
index 0000000..60ab79c
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon80.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon87.png b/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon87.png
new file mode 100644
index 0000000..e19e67c
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconDev.appiconset/newdevicon87.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort1024.png b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort1024.png
new file mode 100644
index 0000000..e9b009c
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort1024.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort120-1.png b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort120-1.png
new file mode 100644
index 0000000..a2e0787
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort120-1.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort120.png b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort120.png
new file mode 100644
index 0000000..a2e0787
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort120.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort152.png b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort152.png
new file mode 100644
index 0000000..9ef773c
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort152.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort167.png b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort167.png
new file mode 100644
index 0000000..78493a7
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort167.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort180.png b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort180.png
new file mode 100644
index 0000000..fb2073a
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort180.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort40-1.png b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort40-1.png
new file mode 100644
index 0000000..b532aae
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort40-1.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort40-2.png b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort40-2.png
new file mode 100644
index 0000000..b532aae
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort40-2.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort40.png b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort40.png
new file mode 100644
index 0000000..b532aae
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort40.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort58-1.png b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort58-1.png
new file mode 100644
index 0000000..67a3e5b
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort58-1.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort58.png b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort58.png
new file mode 100644
index 0000000..67a3e5b
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort58.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort60.png b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort60.png
new file mode 100644
index 0000000..5f4aff3
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort60.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort80-1.png b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort80-1.png
new file mode 100644
index 0000000..124d5de
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort80-1.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort80.png b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort80.png
new file mode 100644
index 0000000..124d5de
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort80.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort87.png b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort87.png
new file mode 100644
index 0000000..1ecce8c
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/AntIconNewShort87.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/Contents.json b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/Contents.json
new file mode 100644
index 0000000..4ed9246
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/AppIconDevOld.appiconset/Contents.json
@@ -0,0 +1,113 @@
+{
+ "images" : [
+ {
+ "filename" : "AntIconNewShort40-2.png",
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "20x20"
+ },
+ {
+ "filename" : "AntIconNewShort60.png",
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "20x20"
+ },
+ {
+ "filename" : "AntIconNewShort58-1.png",
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "AntIconNewShort87.png",
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "AntIconNewShort80-1.png",
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "40x40"
+ },
+ {
+ "filename" : "AntIconNewShort120-1.png",
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "40x40"
+ },
+ {
+ "filename" : "AntIconNewShort120.png",
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "60x60"
+ },
+ {
+ "filename" : "AntIconNewShort180.png",
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "60x60"
+ },
+ {
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "20x20"
+ },
+ {
+ "filename" : "AntIconNewShort40-1.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "20x20"
+ },
+ {
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "AntIconNewShort58.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "AntIconNewShort40.png",
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "40x40"
+ },
+ {
+ "filename" : "AntIconNewShort80.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "40x40"
+ },
+ {
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "76x76"
+ },
+ {
+ "filename" : "AntIconNewShort152.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "76x76"
+ },
+ {
+ "filename" : "AntIconNewShort167.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "83.5x83.5"
+ },
+ {
+ "filename" : "AntIconNewShort1024.png",
+ "idiom" : "ios-marketing",
+ "scale" : "1x",
+ "size" : "1024x1024"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue1024.png b/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue1024.png
new file mode 100644
index 0000000..58ac1c5
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue1024.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue120.png b/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue120.png
new file mode 100644
index 0000000..2c7cb2b
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue120.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue152.png b/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue152.png
new file mode 100644
index 0000000..336313f
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue152.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue167.png b/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue167.png
new file mode 100644
index 0000000..0f3c1a2
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue167.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue180.png b/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue180.png
new file mode 100644
index 0000000..debb586
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue180.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue40.png b/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue40.png
new file mode 100644
index 0000000..83d37e9
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue40.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue58.png b/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue58.png
new file mode 100644
index 0000000..b1efc37
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue58.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue60.png b/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue60.png
new file mode 100644
index 0000000..81c84c4
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue60.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue80.png b/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue80.png
new file mode 100644
index 0000000..49253e5
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue80.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue87.png b/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue87.png
new file mode 100644
index 0000000..a2e82c1
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconOld.appiconset/AntIconNewShortBlue87.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconOld.appiconset/Contents.json b/ios/Runner/Assets.xcassets/AppIconOld.appiconset/Contents.json
new file mode 100644
index 0000000..4fafd33
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/AppIconOld.appiconset/Contents.json
@@ -0,0 +1,113 @@
+{
+ "images" : [
+ {
+ "filename" : "AntIconNewShortBlue40.png",
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "20x20"
+ },
+ {
+ "filename" : "AntIconNewShortBlue60.png",
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "20x20"
+ },
+ {
+ "filename" : "AntIconNewShortBlue58.png",
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "AntIconNewShortBlue87.png",
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "AntIconNewShortBlue80.png",
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "40x40"
+ },
+ {
+ "filename" : "AntIconNewShortBlue120.png",
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "40x40"
+ },
+ {
+ "filename" : "AntIconNewShortBlue120.png",
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "60x60"
+ },
+ {
+ "filename" : "AntIconNewShortBlue180.png",
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "60x60"
+ },
+ {
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "20x20"
+ },
+ {
+ "filename" : "AntIconNewShortBlue40.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "20x20"
+ },
+ {
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "AntIconNewShortBlue58.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "AntIconNewShortBlue40.png",
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "40x40"
+ },
+ {
+ "filename" : "AntIconNewShortBlue80.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "40x40"
+ },
+ {
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "76x76"
+ },
+ {
+ "filename" : "AntIconNewShortBlue152.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "76x76"
+ },
+ {
+ "filename" : "AntIconNewShortBlue167.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "83.5x83.5"
+ },
+ {
+ "filename" : "AntIconNewShortBlue1024.png",
+ "idiom" : "ios-marketing",
+ "scale" : "1x",
+ "size" : "1024x1024"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue1024.png b/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue1024.png
new file mode 100644
index 0000000..586c150
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue1024.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue120.png b/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue120.png
new file mode 100644
index 0000000..03e48c5
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue120.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue152.png b/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue152.png
new file mode 100644
index 0000000..e077073
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue152.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue167.png b/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue167.png
new file mode 100644
index 0000000..2c50cc0
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue167.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue180.png b/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue180.png
new file mode 100644
index 0000000..5cecf70
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue180.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue40.png b/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue40.png
new file mode 100644
index 0000000..8e75527
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue40.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue58.png b/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue58.png
new file mode 100644
index 0000000..49e73a9
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue58.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue60.png b/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue60.png
new file mode 100644
index 0000000..cdc2827
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue60.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue80.png b/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue80.png
new file mode 100644
index 0000000..5a71fd5
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue80.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue87.png b/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue87.png
new file mode 100644
index 0000000..a780118
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/AntIconNewShortBlue87.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/Contents.json b/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/Contents.json
new file mode 100644
index 0000000..4fafd33
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/AppIconOld2.appiconset/Contents.json
@@ -0,0 +1,113 @@
+{
+ "images" : [
+ {
+ "filename" : "AntIconNewShortBlue40.png",
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "20x20"
+ },
+ {
+ "filename" : "AntIconNewShortBlue60.png",
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "20x20"
+ },
+ {
+ "filename" : "AntIconNewShortBlue58.png",
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "AntIconNewShortBlue87.png",
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "AntIconNewShortBlue80.png",
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "40x40"
+ },
+ {
+ "filename" : "AntIconNewShortBlue120.png",
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "40x40"
+ },
+ {
+ "filename" : "AntIconNewShortBlue120.png",
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "60x60"
+ },
+ {
+ "filename" : "AntIconNewShortBlue180.png",
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "60x60"
+ },
+ {
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "20x20"
+ },
+ {
+ "filename" : "AntIconNewShortBlue40.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "20x20"
+ },
+ {
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "AntIconNewShortBlue58.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "AntIconNewShortBlue40.png",
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "40x40"
+ },
+ {
+ "filename" : "AntIconNewShortBlue80.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "40x40"
+ },
+ {
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "76x76"
+ },
+ {
+ "filename" : "AntIconNewShortBlue152.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "76x76"
+ },
+ {
+ "filename" : "AntIconNewShortBlue167.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "83.5x83.5"
+ },
+ {
+ "filename" : "AntIconNewShortBlue1024.png",
+ "idiom" : "ios-marketing",
+ "scale" : "1x",
+ "size" : "1024x1024"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/Contents.json b/ios/Runner/Assets.xcassets/Contents.json
new file mode 100644
index 0000000..73c0059
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/Contents.json
@@ -0,0 +1,6 @@
+{
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
new file mode 100644
index 0000000..0bedcf2
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
@@ -0,0 +1,23 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage.png",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@3x.png",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
new file mode 100644
index 0000000..89c2725
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
@@ -0,0 +1,5 @@
+# Launch Screen Assets
+
+You can customize the launch screen with your own desired assets by replacing the image files in this directory.
+
+You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
\ No newline at end of file
diff --git a/ios/Runner/Assets.xcassets/launchBackground.colorset/Contents.json b/ios/Runner/Assets.xcassets/launchBackground.colorset/Contents.json
new file mode 100644
index 0000000..b82c1e7
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/launchBackground.colorset/Contents.json
@@ -0,0 +1,38 @@
+{
+ "colors" : [
+ {
+ "color" : {
+ "color-space" : "srgb",
+ "components" : {
+ "alpha" : "1.000",
+ "blue" : "0xFF",
+ "green" : "0xFF",
+ "red" : "0xFF"
+ }
+ },
+ "idiom" : "universal"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "color" : {
+ "color-space" : "srgb",
+ "components" : {
+ "alpha" : "1.000",
+ "blue" : "55",
+ "green" : "55",
+ "red" : "55"
+ }
+ },
+ "idiom" : "universal"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/launchTop.colorset/Contents.json b/ios/Runner/Assets.xcassets/launchTop.colorset/Contents.json
new file mode 100644
index 0000000..f35df12
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/launchTop.colorset/Contents.json
@@ -0,0 +1,38 @@
+{
+ "colors" : [
+ {
+ "color" : {
+ "color-space" : "srgb",
+ "components" : {
+ "alpha" : "1.000",
+ "blue" : "244",
+ "green" : "159",
+ "red" : "73"
+ }
+ },
+ "idiom" : "universal"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "color" : {
+ "color-space" : "srgb",
+ "components" : {
+ "alpha" : "1.000",
+ "blue" : "55",
+ "green" : "55",
+ "red" : "55"
+ }
+ },
+ "idiom" : "universal"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ios/Runner/Base.lproj/LaunchScreen.storyboard b/ios/Runner/Base.lproj/LaunchScreen.storyboard
new file mode 100644
index 0000000..e4d16ab
--- /dev/null
+++ b/ios/Runner/Base.lproj/LaunchScreen.storyboard
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ios/Runner/Base.lproj/Main.storyboard b/ios/Runner/Base.lproj/Main.storyboard
new file mode 100644
index 0000000..f3c2851
--- /dev/null
+++ b/ios/Runner/Base.lproj/Main.storyboard
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ios/Runner/Info-Debug.plist b/ios/Runner/Info-Debug.plist
new file mode 100644
index 0000000..cf992e3
--- /dev/null
+++ b/ios/Runner/Info-Debug.plist
@@ -0,0 +1,76 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleDisplayName
+ $(APP_NAME)
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleLocalizations
+
+ en
+ fr
+
+ CFBundleName
+ $(APP_NAME)
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ $(MARKETING_VERSION)
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ $(FLUTTER_BUILD_NUMBER)
+ Google Maps API Key
+ $(MAPS_API_KEY)
+ LSRequiresIPhoneOS
+
+ NSAppTransportSecurity
+
+ NSAllowsArbitraryLoads
+
+ NSExceptionDomains
+
+
+ NSBonjourServices
+
+ _dartobservatory._tcp
+
+ NSCameraUsageDescription
+ $(NSCameraUsageDescription)
+ NSLocationWhenInUseUsageDescription
+ $(NSLocationWhenInUseUsageDescription)
+ NSPhotoLibraryUsageDescription
+ $(NSPhotoLibraryUsageDescription)
+ UIBackgroundModes
+
+ fetch
+ remote-notification
+
+ UILaunchStoryboardName
+ LaunchScreen
+ UIMainStoryboardFile
+ Main
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UIViewControllerBasedStatusBarAppearance
+
+
+
diff --git a/ios/Runner/Info-Release.plist b/ios/Runner/Info-Release.plist
new file mode 100644
index 0000000..e9b0e79
--- /dev/null
+++ b/ios/Runner/Info-Release.plist
@@ -0,0 +1,74 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleDisplayName
+ $(APP_NAME)
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleLocalizations
+
+ en
+ fr
+
+ CFBundleName
+ $(APP_NAME)
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ $(FLUTTER_BUILD_NAME)
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ $(FLUTTER_BUILD_NUMBER)
+ Google Maps API Key
+ $(MAPS_API_KEY)
+ LSRequiresIPhoneOS
+
+ NSAppTransportSecurity
+
+ NSAllowsArbitraryLoads
+
+ NSExceptionDomains
+
+
+ NSCameraUsageDescription
+ $(NSCameraUsageDescription)
+ NSLocationWhenInUseUsageDescription
+ Use location features to get current location for reporting flights and filtering flights based on proximity.
+ NSPhotoLibraryUsageDescription
+ Upload existing pictures of ant nuptial flights from your photo library.
+ NSAppleMusicUsageDescription
+ $(NSAppleMusicUsageDescription)
+ UIBackgroundModes
+
+ fetch
+ remote-notification
+
+ UILaunchStoryboardName
+ LaunchScreen
+ UIMainStoryboardFile
+ Main
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UIViewControllerBasedStatusBarAppearance
+
+
+
diff --git a/ios/Runner/Runner-Bridging-Header.h b/ios/Runner/Runner-Bridging-Header.h
new file mode 100644
index 0000000..308a2a5
--- /dev/null
+++ b/ios/Runner/Runner-Bridging-Header.h
@@ -0,0 +1 @@
+#import "GeneratedPluginRegistrant.h"
diff --git a/ios/Runner/Runner.entitlements b/ios/Runner/Runner.entitlements
new file mode 100644
index 0000000..903def2
--- /dev/null
+++ b/ios/Runner/Runner.entitlements
@@ -0,0 +1,8 @@
+
+
+
+
+ aps-environment
+ development
+
+
diff --git a/ios/Runner/en.lproj/Info.plist b/ios/Runner/en.lproj/Info.plist
new file mode 100644
index 0000000..b2c7a3c
--- /dev/null
+++ b/ios/Runner/en.lproj/Info.plist
@@ -0,0 +1,73 @@
+
+
+
+
+ CFBundleLocalizations
+
+ en
+ fr
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ $(APP_NAME)
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ $(FLUTTER_BUILD_NAME)
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ $(FLUTTER_BUILD_NUMBER)
+ Google Maps API Key
+ $(MAPS_API_KEY)
+ LSRequiresIPhoneOS
+
+ NSAppTransportSecurity
+
+ NSAllowsArbitraryLoads
+
+ NSExceptionDomains
+
+ 192.168.2.31
+
+ NSExceptionAllowsInsecureHTTPLoads
+
+ NSIncludesSubdomains
+
+
+
+
+ NSLocationWhenInUseUsageDescription
+ Enable location features when reporting flights and filtering flights.
+ NSCameraUsageDescription
+ Take pictures of nuptial flights
+ NSPhotoLibraryUsageDescription
+ Use existing pictures of nuptial flights
+ UILaunchStoryboardName
+ LaunchScreen
+ UIMainStoryboardFile
+ Main
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UIViewControllerBasedStatusBarAppearance
+
+
+
diff --git a/ios/Runner/en.lproj/InfoPlist.strings b/ios/Runner/en.lproj/InfoPlist.strings
new file mode 100644
index 0000000..0e8ee0d
--- /dev/null
+++ b/ios/Runner/en.lproj/InfoPlist.strings
@@ -0,0 +1,15 @@
+/*
+ InfoPlist.strings
+ Runner
+
+ Created by Benjamin Rudski on 2021-12-24.
+
+*/
+
+NSLocationWhenInUseUsageDescription = "Use location features to get current location for reporting flights and filtering flights based on proximity.";
+
+NSCameraUsageDescription = "Use camera to take pictures of ant nuptial flights.";
+
+NSPhotoLibraryUsageDescription = "Upload existing pictures of ant nuptial flights from your photo library.";
+
+NSAppleMusicUsageDescription = "Upload existing pictures of ant nuptial flights from your photo library.";
diff --git a/ios/Runner/fr-CA.lproj/Info.plist b/ios/Runner/fr-CA.lproj/Info.plist
new file mode 100644
index 0000000..b2c7a3c
--- /dev/null
+++ b/ios/Runner/fr-CA.lproj/Info.plist
@@ -0,0 +1,73 @@
+
+
+
+
+ CFBundleLocalizations
+
+ en
+ fr
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ $(APP_NAME)
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ $(FLUTTER_BUILD_NAME)
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ $(FLUTTER_BUILD_NUMBER)
+ Google Maps API Key
+ $(MAPS_API_KEY)
+ LSRequiresIPhoneOS
+
+ NSAppTransportSecurity
+
+ NSAllowsArbitraryLoads
+
+ NSExceptionDomains
+
+ 192.168.2.31
+
+ NSExceptionAllowsInsecureHTTPLoads
+
+ NSIncludesSubdomains
+
+
+
+
+ NSLocationWhenInUseUsageDescription
+ Enable location features when reporting flights and filtering flights.
+ NSCameraUsageDescription
+ Take pictures of nuptial flights
+ NSPhotoLibraryUsageDescription
+ Use existing pictures of nuptial flights
+ UILaunchStoryboardName
+ LaunchScreen
+ UIMainStoryboardFile
+ Main
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UIViewControllerBasedStatusBarAppearance
+
+
+
diff --git a/ios/Runner/fr-CA.lproj/InfoPlist.strings b/ios/Runner/fr-CA.lproj/InfoPlist.strings
new file mode 100644
index 0000000..2ac12df
--- /dev/null
+++ b/ios/Runner/fr-CA.lproj/InfoPlist.strings
@@ -0,0 +1,13 @@
+/*
+ InfoPlist.strings
+ Runner
+
+ Created by Benjamin Rudski on 2021-12-24.
+
+*/
+
+NSLocationWhenInUseUsageDescription = "Utiliser les services de localisation pour enregistrer des vols nuptials et pour réorganiser la liste de vols par distance.";
+
+NSCameraUsageDescription = "Utiliser la caméra pour prendre des photos de vols nuptials de fourmis.";
+
+NSPhotoLibraryUsageDescription = "Insérer des photos de vols nuptials de votre galerie de photos.";
diff --git a/ios/Runner/fr-CA.lproj/LaunchScreen.strings b/ios/Runner/fr-CA.lproj/LaunchScreen.strings
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/ios/Runner/fr-CA.lproj/LaunchScreen.strings
@@ -0,0 +1 @@
+
diff --git a/ios/Runner/fr-CA.lproj/Main.strings b/ios/Runner/fr-CA.lproj/Main.strings
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/ios/Runner/fr-CA.lproj/Main.strings
@@ -0,0 +1 @@
+
diff --git a/l10n.yaml b/l10n.yaml
new file mode 100644
index 0000000..c20c760
--- /dev/null
+++ b/l10n.yaml
@@ -0,0 +1,5 @@
+arb-dir: lib/l10n
+template-arb-file: app_en.arb
+output_localization-file: app_localizations.dart
+header: import 'package:intl/intl.dart' as intl;
+untranslated-messages-file: untranslated_messages.txt
\ No newline at end of file
diff --git a/lib/changelog.dart b/lib/changelog.dart
new file mode 100644
index 0000000..6b54b62
--- /dev/null
+++ b/lib/changelog.dart
@@ -0,0 +1,80 @@
+/*
+ * changelog.dart
+ * Copyright (c) 2020-2022, Abouheif Lab.
+ *
+ * AntNupTracker, mobile app for recording and managing ant nuptial flight data
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published
+ * by the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+import 'dart:convert';
+import 'package:ant_nup_tracker/sessions.dart';
+import 'package:ant_nup_tracker/url_manager.dart';
+import 'package:http/http.dart' as http;
+import 'package:json_annotation/json_annotation.dart';
+
+import 'exceptions.dart';
+
+part 'changelog.g.dart';
+
+@JsonSerializable()
+class Changelog {
+ String user;
+ DateTime date;
+ String event;
+
+ Changelog(this.user, this.date, this.event);
+
+ factory Changelog.fromJson(Map json) =>
+ _$ChangelogFromJson(json);
+ Map toJson() => _$ChangelogToJson(this);
+}
+
+
+Future> fetchChangelogForFlight(int id) async {
+ final changelogUrl = UrlManager.shared.urlForHistory(id);
+ // return await Future.delayed(Duration(seconds: 3), ()=>throw NoResponseException());
+ try {
+ final response = await http.get(changelogUrl, headers: SessionManager.shared.headers);
+
+ if (response.statusCode == 401) throw FailedAuthenticationException();
+ if (response.statusCode != 200) throw ReadException(response.statusCode);
+
+ try {
+ final parsedChanges = jsonDecode(response.body).cast<
+ Map>();
+ return parsedChanges
+ .map((json) => Changelog.fromJson(json))
+ .toList();
+ } catch (err, stack) {
+ // print(err);
+ // print(stack);
+ throw JsonException();
+ }
+ } catch (error) {
+ throw NoResponseException();
+ }
+}
+
+// Future main() async {
+// const id = 19;
+// final changelog = await fetchChangelogForFlight(id);
+//
+// // for (final change in changelog){
+// // // print("Reading change:");
+// // // print(change.event);
+// // }
+//
+// // print("Done changelog!");
+// }
\ No newline at end of file
diff --git a/lib/changelog.g.dart b/lib/changelog.g.dart
new file mode 100644
index 0000000..1ae8a55
--- /dev/null
+++ b/lib/changelog.g.dart
@@ -0,0 +1,41 @@
+/*
+ * changelog.g.dart
+ * Copyright (c) 2020-2022, Abouheif Lab.
+ *
+ * AntNupTracker, mobile app for recording and managing ant nuptial flight data
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published
+ * by the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+// GENERATED CODE - DO NOT MODIFY BY HAND
+
+part of 'changelog.dart';
+
+// **************************************************************************
+// JsonSerializableGenerator
+// **************************************************************************
+
+Changelog _$ChangelogFromJson(Map json) {
+ return Changelog(
+ json['user'] as String,
+ DateTime.parse(json['date'] as String),
+ json['event'] as String,
+ );
+}
+
+Map _$ChangelogToJson(Changelog instance) => {
+ 'user': instance.user,
+ 'date': instance.date.toIso8601String(),
+ 'event': instance.event,
+ };
diff --git a/lib/changelog_screen.dart b/lib/changelog_screen.dart
new file mode 100644
index 0000000..17a942a
--- /dev/null
+++ b/lib/changelog_screen.dart
@@ -0,0 +1,120 @@
+/*
+ * changelog_screen.dart
+ * Copyright (c) 2020-2022, Abouheif Lab.
+ *
+ * AntNupTracker, mobile app for recording and managing ant nuptial flight data
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published
+ * by the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+import 'package:ant_nup_tracker/changelog.dart';
+import 'package:ant_nup_tracker/detail_screen.dart';
+// import 'package:ant_nup_tracker/user.dart';
+// import 'package:ant_nup_tracker/users.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_gen/gen_l10n/app_localizations.dart';
+import 'package:intl/intl.dart';
+
+// import 'exceptions.dart';
+
+class ChangelogScreen extends DetailScreen> {
+ // final int _id;
+
+ const ChangelogScreen(int id, {List? initialValue, Key? key})
+ : super(id, initialValue: initialValue, key: key);
+
+ @override
+ _ChangelogScreenState createState() => _ChangelogScreenState();
+}
+
+class _ChangelogScreenState extends DetailScreenState> {
+ late TextStyle _labelStyle;
+
+ _ChangelogScreenState() : super();
+
+ @override
+ Widget buildDetailScreen(List history) {
+ final appLocalization = AppLocalizations.of(context)!;
+ final currentLocale = appLocalization.localeName;
+
+ TextStyle changelogTextStyle = _labelStyle.apply(fontSizeFactor: 1, fontWeightDelta: 2);
+
+ return ListView.builder(
+ itemCount: history.length * 2,
+ itemBuilder: (context, index) {
+ if (index.isOdd) return const Divider();
+ final changelog = history[index ~/ 2];
+
+ return Container(
+ margin: const EdgeInsets.all(12.0),
+ child: Column(
+ children: [
+ Container(
+ margin: const EdgeInsets.symmetric(vertical: 12.0),
+ child: Row(
+ children: [
+ Expanded(
+ child:
+ Text(changelog.event, style: changelogTextStyle)),
+ ],
+ ),
+ ),
+ Row(
+ children: [
+ Expanded(
+ child: Text(
+ changelog.user,
+ style: _labelStyle,
+ textAlign: TextAlign.end,
+ )),
+ ],
+ ),
+ Row(
+ children: [
+ Expanded(
+ child: Text(
+ DateFormat.yMMMd(currentLocale)
+ .add_jm()
+ .format(changelog.date),
+ style: _labelStyle,
+ textAlign: TextAlign.end,
+ )),
+ ],
+ )
+ ],
+ ),
+ );
+ },
+ );
+ }
+
+ @override
+ void loadDetailFuture(int id, {bool forceReload = false}) {
+ setState(() {
+ detailFuture = fetchChangelogForFlight(id);
+ });
+ }
+
+ @override
+ String get appBarHeader =>
+ AppLocalizations.of(context)!.flightHistoryAppBarHeader(id);
+
+ @override
+ Widget build(BuildContext context) {
+ _labelStyle =
+ Theme.of(context).textTheme.bodyText2!.apply(fontSizeDelta: 4.0);
+
+ return super.build(context);
+ }
+}
diff --git a/lib/comments.dart b/lib/comments.dart
new file mode 100644
index 0000000..2138c3b
--- /dev/null
+++ b/lib/comments.dart
@@ -0,0 +1,121 @@
+/*
+ * comments.dart
+ * Copyright (c) 2020-2022, Abouheif Lab.
+ *
+ * AntNupTracker, mobile app for recording and managing ant nuptial flight data
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published
+ * by the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+import 'dart:convert';
+import 'dart:io';
+
+import 'package:ant_nup_tracker/exceptions.dart';
+import 'package:ant_nup_tracker/url_manager.dart';
+import 'package:ant_nup_tracker/users.dart';
+import 'package:json_annotation/json_annotation.dart';
+import 'package:http/http.dart' as http;
+
+import 'sessions.dart';
+
+part 'comments.g.dart';
+
+@JsonSerializable()
+class Comment {
+ final int id;
+ @JsonKey(name: 'flight')
+ final int flightID;
+ final String author;
+
+ @JsonKey(name: 'role')
+ final Role authorRole;
+ final String text;
+ final DateTime time;
+
+ const Comment(this.id, this.flightID, this.author, this.authorRole, this.text,
+ this.time);
+
+ factory Comment.fromJson(Map json) =>
+ _$CommentFromJson(json);
+
+ // Map toJson() => _$CommentToJson(this);
+ Map toJson() => {
+ "text": text,
+ };
+}
+
+Future> getCommentsForFlight(int id) async {
+ final url = UrlManager.shared.urlForComments(id);
+
+ try {
+
+ final response = await http.get(url, headers: SessionManager.shared.headers);
+
+ final status = response.statusCode;
+
+ if (status != 200) throw ReadException(status);
+
+ try {
+ final rawComments = jsonDecode(utf8.decode(response.bodyBytes)) as List;
+ final comments = rawComments.map((e) => Comment.fromJson(e)).toList();
+ return comments;
+ } catch (e) {
+ throw JsonException();
+ }
+
+ } on IOException {
+ throw NoResponseException();
+ }
+}
+
+Future addNewComment(int id, String commentText) async {
+ // final data = comment.toJson();
+ final data = {
+ "text": commentText
+ };
+ final url = UrlManager.shared.urlForComments(id);
+
+ final response = await http.post(url, body: jsonEncode(data), headers: {
+ 'Content-Type': 'application/json',
+ 'Authorization': 'Token ${SessionManager.shared.session!.token}',
+ });
+
+ // print(response.statusCode);
+ // print(response.body);
+
+ final statusCode = response.statusCode;
+
+ if (statusCode == 404) throw NoFlightException(id);
+ if (statusCode == 401) throw FailedAuthenticationException();
+ if (statusCode != 201) throw CommentCreationException(statusCode);
+}
+
+Future updateComment(int id, Comment comment) async {
+ final data = comment.toJson();
+ final url = UrlManager.shared.urlForCommentEdit(id, comment.id);
+
+ final response = await http.put(url, body: jsonEncode(data), headers: {
+ 'Content-Type': 'application/json',
+ 'Authorization': 'Token ${SessionManager.shared.session!.token}',
+ });
+
+ // print(response.statusCode);
+ // print(response.body);
+
+ final statusCode = response.statusCode;
+
+ if (statusCode == 404) throw NoFlightException(id);
+ if (statusCode == 401) throw FailedAuthenticationException();
+ if (statusCode != 200) throw CommentCreationException(statusCode);
+}
\ No newline at end of file
diff --git a/lib/comments.g.dart b/lib/comments.g.dart
new file mode 100644
index 0000000..5211e4d
--- /dev/null
+++ b/lib/comments.g.dart
@@ -0,0 +1,79 @@
+/*
+ * comments.g.dart
+ * Copyright (c) 2020-2022, Abouheif Lab.
+ *
+ * AntNupTracker, mobile app for recording and managing ant nuptial flight data
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published
+ * by the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+// GENERATED CODE - DO NOT MODIFY BY HAND
+
+part of 'comments.dart';
+
+// **************************************************************************
+// JsonSerializableGenerator
+// **************************************************************************
+
+Comment _$CommentFromJson(Map json) {
+ return Comment(
+ json['id'] as int,
+ json['flight'] as int,
+ json['author'] as String,
+ _$enumDecode(_$RoleEnumMap, json['role']),
+ json['text'] as String,
+ DateTime.parse(json['time'] as String),
+ );
+}
+
+// Map _$CommentToJson(Comment instance) => {
+// 'id': instance.id,
+// 'flight': instance.flightID,
+// 'author': instance.author,
+// 'role': _$RoleEnumMap[instance.authorRole],
+// 'text': instance.text,
+// 'time': instance.time.toIso8601String(),
+// };
+
+K _$enumDecode(
+ Map enumValues,
+ Object? source, {
+ K? unknownValue,
+}) {
+ if (source == null) {
+ throw ArgumentError(
+ 'A value must be provided. Supported values: '
+ '${enumValues.values.join(', ')}',
+ );
+ }
+
+ return enumValues.entries.singleWhere(
+ (e) => e.value == source,
+ orElse: () {
+ if (unknownValue == null) {
+ throw ArgumentError(
+ '`$source` is not one of the supported values: '
+ '${enumValues.values.join(', ')}',
+ );
+ }
+ return MapEntry(unknownValue, enumValues.values.first);
+ },
+ ).key;
+}
+
+const _$RoleEnumMap = {
+ Role.citizen: 0,
+ Role.professional: 1,
+ Role.flagged: -1,
+};
diff --git a/lib/common_ui_elements.dart b/lib/common_ui_elements.dart
new file mode 100644
index 0000000..58e5974
--- /dev/null
+++ b/lib/common_ui_elements.dart
@@ -0,0 +1,53 @@
+/*
+ * common_ui_elements.dart
+ * Copyright (c) 2020-2022, Abouheif Lab.
+ *
+ * AntNupTracker, mobile app for recording and managing ant nuptial flight data
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published
+ * by the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+import 'package:flutter/material.dart';
+
+class HeaderRow extends StatelessWidget {
+ const HeaderRow({required this.label, this.headerStyle, Key? key}) : super(key: key);
+
+ final TextStyle? headerStyle;
+ final String label;
+
+ @override
+ Widget build(BuildContext context) {
+ final textStyle = headerStyle ?? Theme.of(context).textTheme.headline6;
+
+ return Column(
+ children: [
+ const Divider(
+ thickness: 1,
+ ),
+ Padding(
+ padding: const EdgeInsets.only(top: 8.0),
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Expanded(child: Text(label, style: textStyle)),
+ ],
+ ),
+ ),
+ const Divider(
+ thickness: 1,
+ )
+ ],
+ );
+ }
+}
\ No newline at end of file
diff --git a/lib/dark_mode_theme_ext.dart b/lib/dark_mode_theme_ext.dart
new file mode 100644
index 0000000..96d631e
--- /dev/null
+++ b/lib/dark_mode_theme_ext.dart
@@ -0,0 +1,28 @@
+/*
+ * dark_mode_theme_ext.dart
+ * Copyright (c) 2020-2022, Abouheif Lab.
+ *
+ * AntNupTracker, mobile app for recording and managing ant nuptial flight data
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published
+ * by the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+import 'package:flutter/material.dart';
+
+extension DarkMode on Theme {
+ bool get isDarkMode => data.brightness == Brightness.dark;
+}
+
+extension DarkModeData on ThemeData {
+ bool get isDarkMode => brightness == Brightness.dark;
+}
\ No newline at end of file
diff --git a/lib/detail_screen.dart b/lib/detail_screen.dart
new file mode 100644
index 0000000..6ba6eb0
--- /dev/null
+++ b/lib/detail_screen.dart
@@ -0,0 +1,127 @@
+/*
+ * detail_screen.dart
+ * Copyright (c) 2020-2022, Abouheif Lab.
+ *
+ * AntNupTracker, mobile app for recording and managing ant nuptial flight data
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published
+ * by the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+import 'package:flutter/material.dart';
+
+import 'exceptions.dart';
+
+abstract class DetailScreen extends StatefulWidget {
+ const DetailScreen(this.id, {this.initialValue, Key? key}) : super(key: key);
+
+ @protected
+ final K id;
+
+ @protected
+ final T? initialValue;
+
+ // @override
+ // _DetailScreenState createState() => _DetailScreenState();
+}
+
+abstract class DetailScreenState extends State> {
+ // DetailScreenState(this.id, {this.initialValue});
+ DetailScreenState();
+
+ @protected
+ late final K id;
+
+ @protected
+ late final T? initialValue;
+
+ @protected
+ late Future detailFuture;
+
+ @protected
+ void loadDetailFuture(K id, {bool forceReload = false});
+
+ @override
+ void initState() {
+ super.initState();
+ id = widget.id;
+ initialValue = widget.initialValue;
+ if (initialValue == null) {
+ loadDetailFuture(id);
+ } else {
+ detailFuture = Future(() => initialValue!);
+ }
+ }
+
+ @protected
+ Widget buildDetailScreen(T result);
+
+ /// Override to perform non-UI related data tasks
+ @protected
+ void processData(T data) {}
+
+ @protected
+ String get appBarHeader;
+
+ @protected
+ List actions = [];
+
+ Widget _buildMainBody(BuildContext context, AsyncSnapshot snapshot) {
+ if (snapshot.connectionState != ConnectionState.done) {
+ // print("Loading the detail screen.");
+ return const CircularProgressIndicator();
+ }
+
+ if (snapshot.hasData) {
+ return RefreshIndicator(
+ onRefresh: () async {
+ setState(() {
+ loadDetailFuture(id, forceReload: true);
+ });
+ },
+ child: buildDetailScreen(snapshot.data!));
+ } else if (snapshot.hasError) {
+ final error = snapshot.error! as LocalisableException;
+ return ExceptionWidget(error, () => loadDetailFuture(id));
+ } else {
+ return const CircularProgressIndicator();
+ }
+ }
+
+ @override
+ @mustCallSuper
+ Widget build(BuildContext context) {
+ return FutureBuilder(
+ future: detailFuture,
+ builder: (BuildContext context, AsyncSnapshot snapshot) {
+ if (snapshot.connectionState == ConnectionState.done &&
+ snapshot.hasData) {
+ processData(snapshot.data!);
+ }// else {
+ // print("Waiting for data.............................");
+ // }
+
+ return Scaffold(
+ appBar: AppBar(
+ title: Text(appBarHeader),
+ actions: actions,
+ ),
+ body: SafeArea(
+ child: Center(
+ child: _buildMainBody(context, snapshot),
+ ),
+ ),
+ );
+ });
+ }
+}
diff --git a/lib/exceptions.dart b/lib/exceptions.dart
new file mode 100644
index 0000000..d1b23a6
--- /dev/null
+++ b/lib/exceptions.dart
@@ -0,0 +1,515 @@
+/*
+ * exceptions.dart
+ * Copyright (c) 2020-2022, Abouheif Lab.
+ *
+ * AntNupTracker, mobile app for recording and managing ant nuptial flight data
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published
+ * by the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+import 'package:flutter/material.dart';
+import 'package:flutter_gen/gen_l10n/app_localizations.dart';
+
+abstract class LocalisableException implements Exception {
+ String getLocalisedName(BuildContext context);
+ String getLocalisedDescription(BuildContext context);
+}
+
+class ReadException implements LocalisableException {
+ final int status;
+ ReadException(this.status);
+
+ @override
+ String toString() => "Read Exception: Server returned status $status";
+
+ @override
+ String getLocalisedDescription(BuildContext context) {
+ final appLocalization = AppLocalizations.of(context)!;
+ return appLocalization.readExceptionBody(status);
+ }
+
+ @override
+ String getLocalisedName(BuildContext context) {
+ final appLocalization = AppLocalizations.of(context)!;
+ return appLocalization.readExceptionHeader;
+ }
+}
+
+class JsonException implements LocalisableException {
+ @override
+ String getLocalisedDescription(BuildContext context) {
+ final appLocalization = AppLocalizations.of(context)!;
+ return appLocalization.jsonExceptionBody;
+ }
+
+ @override
+ String getLocalisedName(BuildContext context) {
+ final appLocalization = AppLocalizations.of(context)!;
+ return appLocalization.jsonExceptionHeader;
+ }
+}
+
+class GetException implements LocalisableException {
+ final int status;
+ GetException(this.status);
+
+ @override
+ String toString() => "Get Exception: Server returned status $status";
+
+ @override
+ String getLocalisedDescription(BuildContext context) {
+ final appLocalization = AppLocalizations.of(context)!;
+ return appLocalization.getExceptionBody(status);
+ }
+
+ @override
+ String getLocalisedName(BuildContext context) {
+ final appLocalization = AppLocalizations.of(context)!;
+ return appLocalization.getExceptionHeader;
+ }
+}
+
+class InvalidIdException implements LocalisableException {
+ @override
+ String getLocalisedDescription(BuildContext context) {
+ final appLocalization = AppLocalizations.of(context)!;
+ return appLocalization.invalidIdExceptionBody;
+ }
+
+ @override
+ String getLocalisedName(BuildContext context) {
+ final appLocalization = AppLocalizations.of(context)!;
+ return appLocalization.invalidIdExceptionHeader;
+ }
+}
+
+class NoFlightException implements LocalisableException {
+ final int id;
+
+ NoFlightException(this.id);
+
+ @override
+ String getLocalisedDescription(BuildContext context) {
+ final appLocalization = AppLocalizations.of(context)!;
+ return appLocalization.noFlightExceptionBody(id);
+ }
+
+ @override
+ String getLocalisedName(BuildContext context) {
+ final appLocalization = AppLocalizations.of(context)!;
+ return appLocalization.noFlightExceptionHeader;
+ }
+}
+
+class NoImageException implements LocalisableException {
+ final int id;
+
+ NoImageException(this.id);
+
+ @override
+ String getLocalisedDescription(BuildContext context) {
+ final appLocalization = AppLocalizations.of(context)!;
+ return appLocalization.noImageExceptionBody(id);
+ }
+
+ @override
+ String getLocalisedName(BuildContext context) {
+ final appLocalization = AppLocalizations.of(context)!;
+ return appLocalization.noImageExceptionHeader;
+ }
+}
+
+class InvalidImageTypeException implements LocalisableException {
+ final String? mimeType;
+
+ InvalidImageTypeException([this.mimeType]);
+
+ @override
+ String getLocalisedDescription(BuildContext context) {
+ final appLocalization = AppLocalizations.of(context)!;
+ return appLocalization.invalidImageTypeExceptionBody(mimeType ?? "none");
+ }
+
+ @override
+ String getLocalisedName(BuildContext context) {
+ final appLocalization = AppLocalizations.of(context)!;
+ return appLocalization.invalidImageTypeExceptionHeader;
+ }
+}
+
+class NoResponseException implements LocalisableException {
+ @override
+ String getLocalisedDescription(BuildContext context) {
+ final appLocalization = AppLocalizations.of(context)!;
+ return appLocalization.noResponseExceptionBody;
+ }
+
+ @override
+ String getLocalisedName(BuildContext context) {
+ final appLocalization = AppLocalizations.of(context)!;
+ return appLocalization.noResponseExceptionHeader;
+ }
+}
+
+class FailedAuthenticationException implements LocalisableException {
+ @override
+ String getLocalisedDescription(BuildContext context) {
+ final appLocalization = AppLocalizations.of(context)!;
+ return appLocalization.failedAuthenticationExceptionBody;
+ }
+
+ @override
+ String getLocalisedName(BuildContext context) {
+ final appLocalization = AppLocalizations.of(context)!;
+ return appLocalization.failedAuthenticationExceptionHeader;
+ }
+}
+
+class NoWeatherException implements LocalisableException {
+ final int _id;
+
+ const NoWeatherException(this._id);
+
+ @override
+ String getLocalisedDescription(BuildContext context) {
+ return AppLocalizations.of(context)!.noWeatherExceptionBody(_id);
+ }
+
+ @override
+ String getLocalisedName(BuildContext context) {
+ return AppLocalizations.of(context)!.noWeatherExceptionHeader;
+ }
+}
+
+class EmptyUsernamePasswordException implements LocalisableException {
+ @override
+ String getLocalisedDescription(BuildContext context) {
+ return AppLocalizations.of(context)!.emptyUsernamePasswordExceptionBody;
+ }
+
+ @override
+ String getLocalisedName(BuildContext context) {
+ return AppLocalizations.of(context)!.emptyUsernamePasswordExceptionHeader;
+ }
+}
+
+class IncorrectCredentialsException implements LocalisableException {
+ @override
+ String getLocalisedDescription(BuildContext context) {
+ return AppLocalizations.of(context)!.incorrectCredentialsExceptionBody;
+ }
+
+ @override
+ String getLocalisedName(BuildContext context) {
+ return AppLocalizations.of(context)!.incorrectCredentialsExceptionHeader;
+ }
+}
+
+class ForbiddenAccessException implements LocalisableException {
+ @override
+ String getLocalisedDescription(BuildContext context) {
+ return AppLocalizations.of(context)!.forbiddenAccessExceptionBody;
+ }
+
+ @override
+ String getLocalisedName(BuildContext context) {
+ return AppLocalizations.of(context)!.forbiddenAccessExceptionHeader;
+ }
+}
+
+class InsufficientPrivilegesException implements LocalisableException {
+ @override
+ String getLocalisedDescription(BuildContext context) {
+ return AppLocalizations.of(context)!.insufficientPrivilegesExceptionBody;
+ }
+
+ @override
+ String getLocalisedName(BuildContext context) {
+ return AppLocalizations.of(context)!.insufficientPrivilegesExceptionHeader;
+ }
+}
+
+class LoginException implements LocalisableException {
+ final int status;
+
+ LoginException(this.status);
+
+ @override
+ String getLocalisedDescription(BuildContext context) {
+ return AppLocalizations.of(context)!.loginExceptionBody(status);
+ }
+
+ @override
+ String getLocalisedName(BuildContext context) {
+ return AppLocalizations.of(context)!.loginExceptionHeader;
+ }
+}
+
+class LogoutException implements LocalisableException {
+ final int status;
+
+ LogoutException(this.status);
+
+ @override
+ String getLocalisedDescription(BuildContext context) {
+ return AppLocalizations.of(context)!.logoutExceptionBody(status);
+ }
+
+ @override
+ String getLocalisedName(BuildContext context) {
+ return AppLocalizations.of(context)!.logoutExceptionHeader;
+ }
+}
+
+class AddFlightException implements LocalisableException {
+ final int _status;
+
+ AddFlightException(this._status);
+
+ @override
+ String getLocalisedDescription(BuildContext context) {
+ return AppLocalizations.of(context)!.addFlightExceptionBody(_status);
+ }
+
+ @override
+ String getLocalisedName(BuildContext context) {
+ return AppLocalizations.of(context)!.addFlightExceptionHeader;
+ }
+
+}
+
+class EditFlightException implements LocalisableException {
+ final int _status;
+
+ EditFlightException(this._status);
+
+ @override
+ String getLocalisedDescription(BuildContext context) {
+ return AppLocalizations.of(context)!.editFlightExceptionBody(_status);
+ }
+
+ @override
+ String getLocalisedName(BuildContext context) {
+ return AppLocalizations.of(context)!.editFlightExceptionHeader;
+ }
+
+}
+
+class CommentCreationException implements LocalisableException {
+ final int _status;
+
+ CommentCreationException(this._status);
+
+ @override
+ String getLocalisedDescription(BuildContext context) {
+ return AppLocalizations.of(context)!.commentCreationExceptionBody(_status);
+ }
+
+ @override
+ String getLocalisedName(BuildContext context) {
+ return AppLocalizations.of(context)!.commentCreationExceptionHeader;
+ }
+
+}
+
+class FlightVerificationException implements LocalisableException {
+ final int _status;
+
+ FlightVerificationException(this._status);
+
+ @override
+ String getLocalisedDescription(BuildContext context) {
+ return AppLocalizations.of(context)!.flightVerificationExceptionBody(_status);
+ }
+
+ @override
+ String getLocalisedName(BuildContext context) {
+ return AppLocalizations.of(context)!.flightVerificationExceptionHeader;
+ }
+
+}
+
+class ImageCreationException implements LocalisableException {
+ final int _status;
+
+ ImageCreationException(this._status);
+
+ @override
+ String getLocalisedDescription(BuildContext context) {
+ return AppLocalizations.of(context)!.imageCreationExceptionBody(_status);
+ }
+
+ @override
+ String getLocalisedName(BuildContext context) {
+ return AppLocalizations.of(context)!.imageCreationExceptionHeader;
+ }
+
+}
+
+class ImageDeletionException implements LocalisableException {
+ final int _status;
+
+ ImageDeletionException(this._status);
+
+ @override
+ String getLocalisedDescription(BuildContext context) {
+ return AppLocalizations.of(context)!.imageDeletionExceptionBody(_status);
+ }
+
+ @override
+ String getLocalisedName(BuildContext context) {
+ return AppLocalizations.of(context)!.imageDeletionExceptionHeader;
+ }
+
+}
+
+class NotImageRowException implements LocalisableException {
+ @override
+ String getLocalisedDescription(BuildContext context) {
+ return AppLocalizations.of(context)!.notImageRowExceptionBody;
+ }
+
+ @override
+ String getLocalisedName(BuildContext context) {
+ return AppLocalizations.of(context)!.notImageRowExceptionHeader;
+ }
+}
+
+class NotificationUpdateException implements LocalisableException {
+ final int _status;
+
+ NotificationUpdateException(this._status);
+
+ @override
+ String getLocalisedDescription(BuildContext context) {
+ return AppLocalizations.of(context)!.notificationUpdateExceptionBody(_status);
+ }
+
+ @override
+ String getLocalisedName(BuildContext context) {
+ return AppLocalizations.of(context)!.notificationUpdateExceptionHeader;
+ }
+
+}
+
+class TokenVerificationException implements LocalisableException {
+ final int _status;
+
+ TokenVerificationException(this._status);
+
+ @override
+ String getLocalisedDescription(BuildContext context) {
+ return AppLocalizations.of(context)!.tokenVerificationExceptionBody(_status);
+ }
+
+ @override
+ String getLocalisedName(BuildContext context) {
+ return AppLocalizations.of(context)!.tokenVerificationExceptionHeader;
+ }
+
+}
+
+class GenusNotFoundException implements LocalisableException {
+ final int id;
+
+ GenusNotFoundException(this.id);
+
+ @override
+ String getLocalisedDescription(BuildContext context) {
+ final appLocalization = AppLocalizations.of(context)!;
+ return appLocalization.genusNotFoundExceptionBody(id);
+ }
+
+ @override
+ String getLocalisedName(BuildContext context) {
+ final appLocalization = AppLocalizations.of(context)!;
+ return appLocalization.genusNotFoundExceptionHeader;
+ }
+}
+
+class NoFlightResultsException implements LocalisableException {
+ @override
+ String getLocalisedDescription(BuildContext context) {
+ return AppLocalizations.of(context)!.noFlightResultsExceptionBody;
+ }
+
+ @override
+ String getLocalisedName(BuildContext context) {
+ return AppLocalizations.of(context)!.noFlightResultsExceptionHeader;
+ }
+}
+
+class ExceptionWidget extends StatelessWidget {
+ final LocalisableException _exception;
+ final void Function()? _tryAgainAction;
+ final IconData _iconData;
+
+ const ExceptionWidget(this._exception, this._tryAgainAction, {Key? key, IconData icon = Icons.error})
+ : _iconData = icon, super(key: key);
+
+ @override
+ Widget build(BuildContext context) {
+ final appLocalization = AppLocalizations.of(context)!;
+ // final _labelStyle =
+ // Theme.of(context).textTheme.bodyText2!.apply(fontSizeDelta: 4.0);
+
+ return Center(
+ child: Padding(
+ padding: const EdgeInsets.all(8.0),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.center,
+ mainAxisAlignment: MainAxisAlignment.start,
+ children: [
+ Icon(
+ _iconData,
+ size: 96,
+ color: Theme.of(context).colorScheme.primary,
+ ),
+ Row(
+ children: [
+ Expanded(
+ child: Text(
+ _exception.getLocalisedName(context),
+ // style: Theme.of(context).textTheme.headline5,
+ textAlign: TextAlign.center,
+ ),
+ ),
+ ],
+ ),
+ Row(
+ children: [
+ Expanded(
+ child: Text(
+ _exception.getLocalisedDescription(context),
+ // style: _labelStyle,
+ textAlign: TextAlign.center,
+ ),
+ ),
+ ],
+ ),
+ if (_tryAgainAction != null) TextButton(
+ onPressed: () {
+ _tryAgainAction!();
+ },
+ child: Padding(
+ padding: const EdgeInsets.all(8.0),
+ child: Text(appLocalization.tryAgainButton),
+ ),
+ )
+ ],
+ ),
+ ),
+ );
+ }
+}
diff --git a/lib/filtering.dart b/lib/filtering.dart
new file mode 100644
index 0000000..4ba7e7d
--- /dev/null
+++ b/lib/filtering.dart
@@ -0,0 +1,2076 @@
+/*
+ * filtering.dart
+ * Copyright (c) 2020-2022, Abouheif Lab.
+ *
+ * AntNupTracker, mobile app for recording and managing ant nuptial flight data
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published
+ * by the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+import 'dart:convert';
+import 'dart:io';
+
+import 'package:ant_nup_tracker/common_ui_elements.dart';
+import 'package:ant_nup_tracker/location_picker.dart';
+import 'package:ant_nup_tracker/users.dart';
+import 'package:flutter/material.dart';
+import 'package:collection/collection.dart';
+import 'package:google_maps_flutter/google_maps_flutter.dart';
+import 'package:intl/intl.dart';
+import 'package:flutter_gen/gen_l10n/app_localizations.dart';
+import 'package:path_provider/path_provider.dart';
+import 'package:scrollable_positioned_list/scrollable_positioned_list.dart';
+
+import 'flights.dart';
+
+enum ListOrdering {
+ flightId,
+ dateOfFlight,
+ dateRecorded,
+ // lastUpdated,
+ location
+}
+
+final _orderingEnumMap = {
+ ListOrdering.flightId: 0,
+ ListOrdering.dateOfFlight: 1,
+ ListOrdering.dateRecorded: 2,
+ ListOrdering.location: 3
+};
+
+enum SortingDirection { ascending, descending }
+
+final _sortingDirectionEnumMap = {
+ SortingDirection.ascending: 1,
+ SortingDirection.descending: -1
+};
+
+abstract class ListFilter {
+ // String get urlString;
+ Map get queryParameters;
+ Map toJson();
+}
+
+// class TaxonomyFilter implements ListFilter {
+// const TaxonomyFilter(this._genus, [this._species]);
+//
+// final String _genus;
+// final String? _species;
+//
+// @override
+// Map get queryParameters =>
+// {"genus": _genus, if (_species != null) "species": _species!};
+// }
+
+class TaxonomyFilter implements ListFilter {
+ TaxonomyFilter(
+ {Iterable genera = const [],
+ Iterable species = const []}) {
+ _genera.addAll(genera);
+ _species.addAll(species);
+ }
+
+ // TaxonomyFilter.fromStrings(
+ // Iterable genera, Iterable> species) {
+ // for (var genus in genera) {
+ // _genera.add(Genus.get(genus));
+ // }
+ //
+ // for (var taxonomy in species) {
+ // final genusName = taxonomy.item1;
+ // final speciesName = taxonomy.item2;
+ //
+ // final genus = Genus.get(genusName);
+ // final speciesObject = Species.get(genus, speciesName);
+ //
+ // _species.add(speciesObject);
+ // }
+ // }
+
+ final _genera = [];
+ final _species = [];
+
+ List get genera => List.unmodifiable(_genera);
+ List get species => List.unmodifiable(_species);
+
+ String _generateTaxonomyString() => _genera
+ .map((e) => e.toString())
+ .followedBy(_species.map((e) => e.toString()))
+ .join(",");
+
+ @override
+ Map get queryParameters =>
+ {"taxonomy": _generateTaxonomyString()};
+
+ @override
+ bool operator ==(Object other) {
+ if (other is! TaxonomyFilter) return false;
+ if (identical(this, other)) return true;
+
+ const genusListEquality = ListEquality();
+ const speciesListEquality = ListEquality();
+
+ return genusListEquality.equals(_genera, other._genera) &&
+ speciesListEquality.equals(_species, other._species);
+ }
+
+ @override
+ int get hashCode =>
+ genera.fold(
+ 0, (previousValue, element) => previousValue + element.hashCode) +
+ species.fold(
+ 0, (previousValue, element) => previousValue + element.hashCode);
+
+ @override
+ Map toJson() {
+ return {
+ 'genera': _genera.map((e) => e.id).toList(growable: false),
+ 'species': _species.map((e) => e.id).toList(growable: false)
+ };
+ }
+
+ factory TaxonomyFilter.fromJson(Map json) {
+ final genusIds = json['genera'] as List;
+ final speciesIds = json['species'] as List;
+
+ final genera = genusIds.map((e) => Genus.get(e as int));
+ final species = speciesIds.map((e) => Species.get(e as int));
+
+ return TaxonomyFilter(genera: genera, species: species);
+ }
+}
+
+class DateFilter implements ListFilter {
+ DateFilter([this.maxDate, this.minDate]);
+
+ final DateTime? maxDate;
+ final DateTime? minDate;
+
+ final _dateFormatter = DateFormat("y-M-d");
+
+ @override
+ Map get queryParameters => {
+ if (maxDate != null) "max_date": _dateFormatter.format(maxDate!),
+ if (minDate != null) "min_date": _dateFormatter.format(minDate!),
+ };
+
+ @override
+ bool operator ==(Object other) {
+ if (other is! DateFilter) return false;
+ if (identical(this, other)) return true;
+
+ return maxDate == other.maxDate && minDate == other.minDate;
+ }
+
+ @override
+ int get hashCode => maxDate.hashCode + minDate.hashCode;
+
+ @override
+ Map toJson() {
+ return {
+ 'maxDate': maxDate?.toIso8601String(),
+ 'minDate': minDate?.toIso8601String()
+ };
+ }
+
+ factory DateFilter.fromJson(Map json) {
+ final maxDateString = json['maxDate'] as String?;
+ final minDateString = json['minDate'] as String?;
+
+ final maxDate =
+ maxDateString != null ? DateTime.parse(maxDateString) : null;
+ final minDate =
+ minDateString != null ? DateTime.parse(minDateString) : null;
+
+ return DateFilter(maxDate, minDate);
+ }
+}
+
+class LocationFilter implements ListFilter {
+ const LocationFilter(this.location);
+
+ final LatLng location;
+
+ @override
+ Map get queryParameters =>
+ {"loc": "${location.latitude},${location.longitude}"};
+
+ @override
+ bool operator ==(Object other) {
+ if (other is! LocationFilter) return false;
+ if (identical(this, other)) return true;
+
+ return other.location == location;
+ }
+
+ @override
+ int get hashCode => location.hashCode;
+
+ @override
+ Map toJson() {
+ return {'location': location.toJson()};
+ }
+
+ factory LocationFilter.fromJson(Map json) {
+ final locationString = json['location'];
+ final location = LatLng.fromJson(locationString)!;
+
+ return LocationFilter(location);
+ }
+}
+
+class ImageFilter implements ListFilter {
+ const ImageFilter(this.hasImages);
+
+ final bool hasImages;
+
+ @override
+ Map get queryParameters =>
+ {"has_images": hasImages.toString()};
+
+ @override
+ bool operator ==(Object other) {
+ if (other is! ImageFilter) return false;
+ if (identical(this, other)) return true;
+
+ return other.hasImages == hasImages;
+ }
+
+ @override
+ int get hashCode => hasImages.hashCode;
+
+ @override
+ Map toJson() {
+ return {'hasImages': hasImages};
+ }
+
+ factory ImageFilter.fromJson(Map json) {
+ final hasImages = json['hasImages'] as bool;
+
+ return ImageFilter(hasImages);
+ }
+}
+
+class VerificationFilter implements ListFilter {
+ const VerificationFilter(this.verified, this.userRole);
+
+ final bool? verified;
+ final Role? userRole;
+
+ @override
+ Map get queryParameters => {
+ if (verified != null) "verified": verified!.toString(),
+ if (userRole != null)
+ "user_role":
+ userRole == Role.professional ? "professional" : "enthusiast"
+ };
+
+ @override
+ bool operator ==(Object other) {
+ if (other is! VerificationFilter) return false;
+ if (identical(this, other)) return true;
+
+ return (verified == other.verified && userRole == other.userRole);
+ }
+
+ static final _roleEnumMap = {
+ Role.citizen: 0,
+ Role.professional: 1,
+ Role.flagged: -1
+ };
+
+ @override
+ Map toJson() {
+ return {
+ 'verified': verified,
+ 'userRole': userRole != null ? _roleEnumMap[userRole] : null
+ };
+ }
+
+ factory VerificationFilter.fromJson(Map json) {
+ final verified = json['verified'] as bool?;
+ final userRoleInt = json['userRole'] as int?;
+
+ final Role? userRole = userRoleInt != null
+ ? _roleEnumMap.entries
+ .firstWhere((entry) => entry.value == userRoleInt)
+ .key
+ : null;
+
+ return VerificationFilter(verified, userRole);
+ }
+
+ @override
+ int get hashCode => verified.hashCode + userRole.hashCode;
+}
+
+class FilteringManager {
+ FilteringManager._();
+ static final shared = FilteringManager._();
+
+ DateFilter? dateFilter;
+ TaxonomyFilter? taxonomyFilter;
+ LocationFilter? locationFilter;
+ ImageFilter? imageFilter;
+ VerificationFilter? verificationFilter;
+
+ void configureFrom(FilteringManager filteringManager) {
+ dateFilter = filteringManager.dateFilter;
+ taxonomyFilter = filteringManager.taxonomyFilter;
+ locationFilter = filteringManager.locationFilter;
+ imageFilter = filteringManager.imageFilter;
+ verificationFilter = filteringManager.verificationFilter;
+ ordering = filteringManager.ordering;
+ direction = filteringManager.direction;
+ }
+
+ Future saveFilters() async {
+ final directory = await getApplicationDocumentsDirectory();
+ final path = directory.path;
+ final file = File("$path/filtering.json");
+ // print("Converting to JSON....");
+ // print(toJson());
+ // print(jsonEncode(toJson()));
+ file.writeAsString(jsonEncode(toJson()));
+ }
+
+ Map toJson() => {
+ 'dateFilter': dateFilter?.toJson(),
+ 'taxonomyFilter': taxonomyFilter?.toJson(),
+ 'locationFilter': locationFilter?.toJson(),
+ 'imageFilter': imageFilter?.toJson(),
+ 'verificationFilter': verificationFilter?.toJson(),
+ 'ordering': _orderingEnumMap[ordering],
+ 'direction': _sortingDirectionEnumMap[direction],
+ };
+
+ Future get canLoadFilters async {
+ final directory = await getApplicationDocumentsDirectory();
+ final path = directory.path;
+ final file = File("$path/filtering.json");
+
+ return await file.exists();
+ }
+
+ Future readFilters() async {
+ final directory = await getApplicationDocumentsDirectory();
+ final path = directory.path;
+ final file = File("$path/filtering.json");
+
+ try {
+ final contents = await file.readAsString();
+ final json = jsonDecode(contents);
+ final loaded = FilteringManager._fromJson(json);
+ shared.configureFrom(loaded);
+ } catch (error, stacktrace) {
+ // print(error);
+ // print(stacktrace);
+ }
+ }
+
+ Future loadFilters() async {
+ if (await canLoadFilters) await readFilters();
+ }
+
+ factory FilteringManager._fromJson(Map json) {
+ final dateFilter = json['dateFilter'] != null
+ ? DateFilter?.fromJson(json['dateFilter'])
+ : null;
+ final taxonomyFilter = json['taxonomyFilter'] != null
+ ? TaxonomyFilter?.fromJson(json['taxonomyFilter'])
+ : null;
+ final locationFilter = json['locationFilter'] != null
+ ? LocationFilter?.fromJson(json['locationFilter'])
+ : null;
+ final imageFilter = json['imageFilter'] != null
+ ? ImageFilter?.fromJson(json['imageFilter'])
+ : null;
+ final verificationFilter = json['verificationFilter'] != null
+ ? VerificationFilter?.fromJson(json['verificationFilter'])
+ : null;
+
+ final orderingInt = json['ordering'] as int;
+
+ final ordering = _orderingEnumMap.entries
+ .firstWhere((entry) => entry.value == orderingInt)
+ .key;
+
+ final directionInt = json['direction'] as int;
+
+ final direction = _sortingDirectionEnumMap.entries
+ .firstWhere((entry) => entry.value == directionInt)
+ .key;
+
+ final newFilteringManager = FilteringManager._();
+ newFilteringManager.dateFilter = dateFilter;
+ newFilteringManager.taxonomyFilter = taxonomyFilter;
+ newFilteringManager.locationFilter = locationFilter;
+ newFilteringManager.imageFilter = imageFilter;
+ newFilteringManager.verificationFilter = verificationFilter;
+ newFilteringManager.ordering = ordering;
+ newFilteringManager.direction = direction;
+
+ return newFilteringManager;
+ }
+
+ List get filters => [
+ if (locationFilter != null) locationFilter!,
+ if (dateFilter != null) dateFilter!,
+ if (taxonomyFilter != null) taxonomyFilter!,
+ if (imageFilter != null) imageFilter!,
+ if (verificationFilter != null) verificationFilter!,
+ ];
+
+ ListOrdering ordering = ListOrdering.flightId;
+ SortingDirection direction = SortingDirection.descending;
+}
+
+class FilteringScreen extends StatefulWidget {
+ // const FilteringScreen({this.currentLocation, Key? key}) : super(key: key);
+ const FilteringScreen({Key? key}) : super(key: key);
+
+ // final LatLng? currentLocation;
+
+ @override
+ _FilteringScreenState createState() => _FilteringScreenState();
+}
+
+class _FilteringScreenState extends State
+ with TickerProviderStateMixin {
+ late AppLocalizations _appLocalizations;
+ late LatLng _currentLocation;
+
+ var _ordering = FilteringManager.shared.ordering;
+ var _direction = FilteringManager.shared.direction;
+ var _dateFilter = FilteringManager.shared.dateFilter;
+ var _taxonomyFilter = FilteringManager.shared.taxonomyFilter;
+ var _locationFilter = FilteringManager.shared.locationFilter;
+ var _imageFilter = FilteringManager.shared.imageFilter;
+ var _verificationFilter = FilteringManager.shared.verificationFilter;
+
+ @override
+ void initState() {
+ super.initState();
+ _currentLocation = _locationFilter?.location ?? const LatLng(0, 0);
+
+ // if (_locationFilter == null) {
+ // getCurrentLocation()
+ // .then((location) => _currentLocation = location ?? _currentLocation);
+ // }
+ }
+
+ String _localizedOrderingName(ListOrdering listOrdering) {
+ switch (listOrdering) {
+ case ListOrdering.flightId:
+ return _appLocalizations.flightID;
+ case ListOrdering.dateOfFlight:
+ return _appLocalizations.dateOfFlight;
+ case ListOrdering.dateRecorded:
+ return _appLocalizations.dateRecordedDetailLabel;
+ case ListOrdering.location:
+ return _appLocalizations.distance;
+ }
+ }
+
+ String _localizedSortingDirectionName(SortingDirection direction) {
+ switch (direction) {
+ case SortingDirection.ascending:
+ return _appLocalizations.ascending;
+ case SortingDirection.descending:
+ return _appLocalizations.descending;
+ }
+ }
+
+ Widget _buildFilteringForm() {
+ return ListView(
+ primary: true,
+ padding: const EdgeInsets.all(16.0),
+ children: [
+ HeaderRow(label: _appLocalizations.sorting),
+ _buildSortingSection(),
+ HeaderRow(label: _appLocalizations.filtering),
+ DateFilteringRow(
+ onFilteringChanged: (dateFilter) => _dateFilter = dateFilter,
+ filter: _dateFilter,
+ ),
+ TaxonomyFilteringRow(
+ onFilteringChanged: (taxonomyFilter) =>
+ _taxonomyFilter = taxonomyFilter,
+ filter: _taxonomyFilter,
+ ),
+ ImageFilteringRow(
+ onFilteringChanged: (imageFilter) => _imageFilter = imageFilter,
+ filter: _imageFilter,
+ ),
+ VerificationFilteringRow(
+ onFilteringChanged: (verificationFilter) =>
+ _verificationFilter = verificationFilter,
+ filter: _verificationFilter,
+ )
+ ],
+ );
+ }
+
+ Widget _buildSortingSection() {
+ // return AnimatedSize(
+ // duration: const Duration(milliseconds: 250),
+ // curve: Curves.easeIn,
+ // alignment: Alignment.topCenter,
+ // child: Column(
+ // children: [
+ // _buildSortingRow(),
+ // if (_ordering == ListOrdering.location) _buildLocationSelectRow(),
+ // ],
+ // ),
+ // );
+ return SortingSection(
+ ordering: _ordering,
+ direction: _direction,
+ locationFilter: _locationFilter,
+ onSortingChanged: (ordering, direction, locationFilter) {
+ // print("Sorting is now changed...");
+ _ordering = ordering;
+ _direction = direction;
+ if (_ordering == ListOrdering.location) {
+ // print(
+ // "We have a filter at this location: ${locationFilter?.location ?? "None"}");
+ _locationFilter = locationFilter ?? LocationFilter(_currentLocation);
+ } else {
+ _locationFilter = null;
+ }
+ // setState(() => updateFilters());
+ // print("Now, at the screen level, we have filter at ${locationFilter?.location ?? "None"}");
+ },
+ );
+ }
+
+ // Widget _buildSortingRow() {
+ // return Padding(
+ // padding: const EdgeInsets.all(8.0),
+ // child: Wrap(
+ // alignment: WrapAlignment.spaceEvenly,
+ // crossAxisAlignment: WrapCrossAlignment.center,
+ // runAlignment: WrapAlignment.start,
+ // spacing: 16,
+ // runSpacing: 16,
+ // children: [
+ // // ConstrainedBox(
+ // // child: Text(_appLocalizations.sortBy),
+ // // constraints: const BoxConstraints(maxWidth: 500),
+ // // ),
+ // ConstrainedBox(
+ // constraints: const BoxConstraints(maxWidth: 500),
+ // child: ToggleButtons(
+ // isSelected: [
+ // for (var direction in SortingDirection.values)
+ // _direction == direction
+ // ],
+ // children: [
+ // for (var direction in SortingDirection.values)
+ // Padding(
+ // padding: const EdgeInsets.all(8.0),
+ // child: Text(_localizedSortingDirectionName(direction)),
+ // )
+ // ],
+ // onPressed: (index) => setState(
+ // () => _direction = SortingDirection.values[index],
+ // ),
+ // ),
+ // ),
+ // ConstrainedBox(
+ // constraints: const BoxConstraints(maxWidth: 500),
+ // child: DropdownButton(
+ // items: ListOrdering.values
+ // .map((e) => DropdownMenuItem(
+ // value: e, child: Text(_localizedOrderingName(e))))
+ // .toList(),
+ // value: _ordering,
+ // icon: const Icon(Icons.sort),
+ // onChanged: (ordering) => setState(() {
+ // _ordering = ordering ?? ListOrdering.flightId;
+ // if (_ordering == ListOrdering.location) {
+ // _locationFilter =
+ // _locationFilter ?? LocationFilter(_currentLocation);
+ // } else {
+ // _locationFilter = null;
+ // }
+ // }),
+ // ),
+ // ),
+ // ],
+ // ),
+ // );
+ // }
+
+ bool get didNotChangeFilters =>
+ _ordering == FilteringManager.shared.ordering &&
+ _direction == FilteringManager.shared.direction &&
+ _imageFilter == FilteringManager.shared.imageFilter &&
+ _verificationFilter == FilteringManager.shared.verificationFilter &&
+ _dateFilter == FilteringManager.shared.dateFilter &&
+ _locationFilter == FilteringManager.shared.locationFilter &&
+ _taxonomyFilter == FilteringManager.shared.taxonomyFilter;
+
+ void updateFilters() {
+ FilteringManager.shared.dateFilter = _dateFilter;
+ FilteringManager.shared.taxonomyFilter = _taxonomyFilter;
+ FilteringManager.shared.ordering = _ordering;
+ FilteringManager.shared.locationFilter = _locationFilter;
+ FilteringManager.shared.direction = _direction;
+ FilteringManager.shared.imageFilter = _imageFilter;
+ FilteringManager.shared.verificationFilter = _verificationFilter;
+ }
+
+ // Widget _buildLocationSelectRow() {
+ // return LocationSelectRow(
+ // initialLocation: _locationFilter?.location ?? _currentLocation,
+ // onLocationSelected: (location) {
+ // print("Now, in filtering manager, selected: $location");
+ // updateFilters();
+ // setState(() {
+ // _locationFilter = LocationFilter(location);
+ // });
+ // });
+ // }
+
+ @override
+ Widget build(BuildContext context) {
+ _appLocalizations = AppLocalizations.of(context)!;
+ return Scaffold(
+ appBar: AppBar(
+ title: Text(_appLocalizations.filteringAndSorting),
+ actions: [
+ IconButton(
+ onPressed: () async {
+ final shouldReload = !didNotChangeFilters;
+ if (shouldReload) {
+ // print("Changed filters!!!");
+ updateFilters();
+ await FilteringManager.shared.saveFilters();
+ } else {
+ // print("No filters changed!");
+ }
+ // print("Printing filters:");
+ for (var filter in FilteringManager.shared.filters) {
+ // print(filter.queryParameters);
+ }
+ Navigator.of(context).pop(shouldReload);
+ },
+ tooltip: _appLocalizations.done,
+ icon: const Icon(Icons.done),
+ )
+ ],
+ ),
+ body: SafeArea(child: _buildFilteringForm()),
+ );
+ }
+}
+
+class LocationSelectRow extends StatefulWidget {
+ const LocationSelectRow(
+ {this.initialLocation, required this.onLocationSelected, Key? key})
+ : super(key: key);
+
+ final LatLng? initialLocation;
+ final void Function(LatLng) onLocationSelected;
+
+ @override
+ _LocationSelectRowState createState() => _LocationSelectRowState();
+}
+
+class _LocationSelectRowState extends State {
+ late LatLng _selectedLocation;
+
+ // late void Function(LatLng) _onLocationSelected;
+
+ @override
+ void initState() {
+ super.initState();
+ // _getLocationFuture = getCurrentLocation().then((value) => value ?? const LatLng(0.0, 0.0));
+ _getLocationFuture = getFilterLocation();
+ _selectedLocation = widget.initialLocation ?? const LatLng(0, 0);
+ // _onLocationSelected = widget.onLocationSelected;
+
+ // if (widget.initialLocation == null) {
+ // getCurrentLocation().then((location){
+ // if (location != null) {
+ // setState(() => _selectedLocation = location);
+ // }
+ // });
+ // }
+ }
+
+ Future getFilterLocation() async {
+ return widget.initialLocation ??
+ await getCurrentLocation() ??
+ const LatLng(0.0, 0.0);
+ }
+
+ Future _getNewLocation() async {
+ final newLocation = await Navigator.push(
+ context,
+ MaterialPageRoute(
+ builder: (context) => LocationPickerView(
+ locationPickerMode: LocationPickerMode.locationOnly,
+ initialLocation: _selectedLocation,
+ ),
+ fullscreenDialog: true),
+ );
+
+ if (newLocation == null) return;
+
+ setState(() {
+ _selectedLocation = newLocation;
+ _getLocationFuture = getFilterLocation();
+ // print("Selected new location $newLocation");
+ });
+
+ widget.onLocationSelected(newLocation);
+ }
+
+ late Future _getLocationFuture;
+
+ @override
+ Widget build(BuildContext context) {
+ return ListTile(
+ leading: const Icon(Icons.location_pin),
+ trailing: IconButton(
+ icon: const Icon(Icons.edit),
+ tooltip: AppLocalizations.of(context)!.edit,
+ onPressed: _getNewLocation,
+ ),
+ title: Text(
+ // AppLocalizations.of(context)!.fromLocation(
+ stringFromLocation(
+ location: _selectedLocation,
+ ),
+ // ),
+ ),
+ onTap: _getNewLocation,
+ );
+
+ // return FutureBuilder(
+ // future: _getLocationFuture,
+ // builder: (BuildContext context, AsyncSnapshot snapshot) {
+ // if (snapshot.connectionState == ConnectionState.done &&
+ // snapshot.hasData) {
+ // _selectedLocation = snapshot.data ?? const LatLng(0.0, 0.0);
+ //
+ // return ListTile(
+ // leading: const Icon(Icons.location_pin),
+ // trailing: IconButton(
+ // icon: const Icon(Icons.edit),
+ // tooltip: AppLocalizations.of(context)!.edit,
+ // onPressed: _getNewLocation,
+ // ),
+ // title: Text(
+ // // AppLocalizations.of(context)!.fromLocation(
+ // stringFromLocation(
+ // location: _selectedLocation,
+ // ),
+ // // ),
+ // ),
+ // onTap: _getNewLocation,
+ // );
+ // }
+ //
+ // // if (snapshot.hasError){
+ // // print(snapshot.error);
+ // // print(snapshot.stackTrace);
+ // // }
+ //
+ // return const ListTile(
+ // title: Text("Updating Location"),
+ // leading: CircularProgressIndicator(),
+ // );
+ // },
+ // );
+ }
+}
+
+class SortingSection extends StatefulWidget {
+ const SortingSection({
+ Key? key,
+ this.ordering = ListOrdering.flightId,
+ this.direction = SortingDirection.descending,
+ this.locationFilter,
+ required this.onSortingChanged,
+ }) : super(key: key);
+
+ final ListOrdering ordering;
+ final SortingDirection direction;
+ final LocationFilter? locationFilter;
+ final void Function(ListOrdering ordering, SortingDirection direction,
+ LocationFilter? locationFilter) onSortingChanged;
+
+ @override
+ State createState() => _SortingSectionState();
+}
+
+class _SortingSectionState extends State {
+ late AppLocalizations _appLocalizations;
+ // late LatLng? _currentLocation;
+ late var _ordering = widget.ordering;
+ late var _direction = widget.direction;
+ late var _locationFilter = widget.locationFilter;
+ late final _onSortingChanged = widget.onSortingChanged;
+
+ @override
+ void initState() {
+ super.initState();
+ _getLocationFuture = getFilterLocation();
+ // _currentLocation = _locationFilter?.location ?? const LatLng(0, 0);
+
+ // if (_locationFilter == null) {
+ // getCurrentLocation()
+ // .then((location) => _currentLocation = location ?? _currentLocation);
+ // }
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ _appLocalizations = AppLocalizations.of(context)!;
+ return AnimatedSize(
+ duration: const Duration(milliseconds: 250),
+ curve: Curves.easeIn,
+ alignment: Alignment.topCenter,
+ child: Column(
+ children: [
+ _buildSortingRow(),
+ if (_ordering == ListOrdering.location) _buildLocationSelectRow(),
+ ],
+ ),
+ );
+ }
+
+ Widget _buildSortingRow() {
+ return Padding(
+ padding: const EdgeInsets.all(8.0),
+ child: Wrap(
+ alignment: WrapAlignment.spaceEvenly,
+ crossAxisAlignment: WrapCrossAlignment.center,
+ runAlignment: WrapAlignment.start,
+ spacing: 16,
+ runSpacing: 16,
+ children: [
+ // ConstrainedBox(
+ // child: Text(_appLocalizations.sortBy),
+ // constraints: const BoxConstraints(maxWidth: 500),
+ // ),
+ ConstrainedBox(
+ constraints: const BoxConstraints(maxWidth: 500),
+ child: ToggleButtons(
+ isSelected: [
+ for (var direction in SortingDirection.values)
+ _direction == direction
+ ],
+ children: [
+ for (var direction in SortingDirection.values)
+ Padding(
+ padding: const EdgeInsets.all(8.0),
+ child: Text(_localizedSortingDirectionName(direction)),
+ )
+ ],
+ onPressed: (index) => setState(
+ () {
+ _direction = SortingDirection.values[index];
+ _onSortingChanged(_ordering, _direction, _locationFilter);
+ },
+ ),
+ ),
+ ),
+ ConstrainedBox(
+ constraints: const BoxConstraints(maxWidth: 500),
+ child: DropdownButton(
+ items: ListOrdering.values
+ .map((e) => DropdownMenuItem(
+ value: e, child: Text(_localizedOrderingName(e))))
+ .toList(),
+ value: _ordering,
+ icon: const Icon(Icons.sort),
+ onChanged: (ordering) => setState(() {
+ _ordering = ordering ?? ListOrdering.flightId;
+ // if (_ordering == ListOrdering.location) {
+ // // _locationFilter =
+ // // _locationFilter ?? LocationFilter(_currentLocation);
+ // } else {
+ // _locationFilter = null;
+ // }
+
+ if (_ordering != ListOrdering.location) {
+ _locationFilter = null;
+ }
+
+ _onSortingChanged(_ordering, _direction, _locationFilter);
+ }),
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+
+ late Future _getLocationFuture;
+
+ Future getFilterLocation() async {
+ return _locationFilter?.location ??
+ await getCurrentLocation() ??
+ const LatLng(0.0, 0.0);
+ }
+
+ Widget _buildLocationSelectRow() {
+ return FutureBuilder(
+ future: _getLocationFuture,
+ builder: (BuildContext context, AsyncSnapshot snapshot) {
+ if (snapshot.connectionState == ConnectionState.done &&
+ snapshot.hasData) {
+ return LocationSelectRow(
+ initialLocation: snapshot.data!,
+ onLocationSelected: (location) {
+ _locationFilter = LocationFilter(location);
+ // print("Now, in filtering manager, selected: $location");
+ _onSortingChanged(_ordering, _direction, _locationFilter);
+ setState(() {
+ _getLocationFuture = getFilterLocation();
+ });
+ });
+ } else {
+ return ListTile(
+ title: Text(_appLocalizations.updatingLocation),
+ leading: const CircularProgressIndicator(),
+ );
+ }
+ });
+ }
+
+ String _localizedOrderingName(ListOrdering listOrdering) {
+ switch (listOrdering) {
+ case ListOrdering.flightId:
+ return _appLocalizations.flightID;
+ case ListOrdering.dateOfFlight:
+ return _appLocalizations.dateOfFlight;
+ case ListOrdering.dateRecorded:
+ return _appLocalizations.dateRecordedDetailLabel;
+ case ListOrdering.location:
+ return _appLocalizations.distance;
+ }
+ }
+
+ String _localizedSortingDirectionName(SortingDirection direction) {
+ switch (direction) {
+ case SortingDirection.ascending:
+ return _appLocalizations.ascending;
+ case SortingDirection.descending:
+ return _appLocalizations.descending;
+ }
+ }
+}
+
+abstract class FilteringRow extends StatefulWidget {
+ const FilteringRow({
+ Key? key,
+ this.filter,
+ required this.onFilteringChanged,
+ }) : super(key: key);
+
+ final T? filter;
+ final void Function(T?) onFilteringChanged;
+
+ // @override
+ // _FilteringRowState createState() => _FilteringRowState();
+}
+
+abstract class _FilteringRowState
+ extends State> with TickerProviderStateMixin {
+ @protected
+ late bool isFiltering;
+
+ @protected
+ void processInitialValue(T? filter);
+
+ @override
+ void initState() {
+ isFiltering = widget.filter != null;
+ processInitialValue(widget.filter);
+ super.initState();
+ }
+
+ @protected
+ T? createFilter();
+
+ @protected
+ String get filterLabel;
+
+ @protected
+ Widget buildBody(BuildContext context);
+
+ @protected
+ Duration get duration => const Duration(milliseconds: 250);
+
+ @protected
+ Curve get curve => Curves.easeIn;
+
+ @override
+ @mustCallSuper
+ Widget build(BuildContext context) {
+ return AnimatedSize(
+ duration: duration,
+ alignment: Alignment.topCenter,
+ curve: curve,
+ child: Column(
+ children: [
+ InkWell(
+ onTap: () {
+ setState(() {
+ isFiltering = !isFiltering;
+ widget.onFilteringChanged(createFilter());
+ });
+ },
+ child: Row(
+ children: [
+ Text(filterLabel),
+ const Spacer(),
+ Switch(
+ value: isFiltering,
+ onChanged: (value) {
+ setState(() => isFiltering = value);
+ widget.onFilteringChanged(createFilter());
+ })
+ ],
+ ),
+ ),
+ if (isFiltering) buildBody(context),
+ const Divider()
+ ],
+ ),
+ );
+ }
+}
+
+class DateFilteringRow extends FilteringRow {
+ const DateFilteringRow({
+ Key? key,
+ DateFilter? filter,
+ required void Function(DateFilter?) onFilteringChanged,
+ }) : super(
+ key: key,
+ filter: filter,
+ onFilteringChanged: onFilteringChanged,
+ );
+
+ @override
+ State createState() => _DateFilteringRowState();
+}
+
+class _DateFilteringRowState extends _FilteringRowState {
+ late bool _hasMinDate;
+ late DateTime? _minDate;
+ late bool _hasMaxDate;
+ late DateTime? _maxDate;
+
+ late AppLocalizations _appLocalizations;
+
+ @override
+ void processInitialValue(DateFilter? filter) {
+ _hasMinDate = widget.filter?.minDate != null;
+ _minDate = widget.filter?.minDate ?? DateTime.now();
+ _hasMaxDate = widget.filter?.maxDate != null;
+ _maxDate = widget.filter?.maxDate ?? DateTime.now();
+ }
+
+ @override
+ DateFilter? createFilter() {
+ return isFiltering && (_hasMinDate || _hasMaxDate)
+ ? DateFilter(
+ _hasMaxDate ? _maxDate : null, _hasMinDate ? _minDate : null)
+ : null;
+ }
+
+ @override
+ String get filterLabel => _appLocalizations.filterByDate;
+
+ @override
+ Widget build(BuildContext context) {
+ _appLocalizations = AppLocalizations.of(context)!;
+ return super.build(context);
+ }
+
+ static final earliestDate = DateTime(1900);
+
+ @override
+ Widget buildBody(BuildContext context) {
+ // var labelTheme = Theme.of(context).textTheme.bodyText1!;
+ final labelTheme = Theme.of(context).textTheme.subtitle1!;
+ // var activeColor = labelTheme.color;
+ final deactivatedColor = Theme.of(context).disabledColor;
+ final deactivatedLabelTheme = labelTheme.apply(color: deactivatedColor);
+ return Column(
+ children: [
+ InkWell(
+ onTap: () {
+ setState(() => _hasMinDate = !_hasMinDate);
+ widget.onFilteringChanged(createFilter());
+ },
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Checkbox(
+ value: _hasMinDate,
+ onChanged: isFiltering
+ ? (value) {
+ setState(() => _hasMinDate = value ?? false);
+ widget.onFilteringChanged(createFilter());
+ }
+ : null,
+ ),
+ Text(
+ _appLocalizations.minDate,
+ style: _hasMinDate ? labelTheme : deactivatedLabelTheme,
+ ),
+ const Spacer(),
+ Text(
+ DateFormat.yMMMd(_appLocalizations.localeName)
+ .format(_minDate ?? _maxDate ?? DateTime.now()),
+ style: _hasMinDate ? labelTheme : deactivatedLabelTheme,
+ ),
+ IconButton(
+ onPressed: _hasMinDate
+ ? () async {
+ final newMinDate = await showDatePicker(
+ context: context,
+ firstDate: earliestDate,
+ initialDate: _hasMinDate
+ ? _minDate!
+ : _hasMaxDate
+ ? _maxDate!
+ : DateTime.now(),
+ lastDate: _hasMaxDate ? _maxDate! : DateTime.now());
+ setState(() => _minDate = newMinDate);
+ widget.onFilteringChanged(createFilter());
+ }
+ : null,
+ icon: const Icon(
+ Icons.edit,
+ // color: _hasMinDate ? activeColor : deactivatedColor,
+ ),
+ tooltip: _appLocalizations.edit,
+ disabledColor: deactivatedColor,
+ )
+ ],
+ ),
+ ),
+ InkWell(
+ onTap: () {
+ setState(() => _hasMaxDate = !_hasMaxDate);
+ widget.onFilteringChanged(createFilter());
+ },
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Checkbox(
+ value: _hasMaxDate,
+ onChanged: isFiltering
+ ? (value) {
+ setState(() => _hasMaxDate = value ?? false);
+ widget.onFilteringChanged(createFilter());
+ }
+ : null,
+ ),
+ Text(
+ _appLocalizations.maxDate,
+ style: _hasMaxDate ? labelTheme : deactivatedLabelTheme,
+ ),
+ const Spacer(),
+ Text(
+ DateFormat.yMMMd(_appLocalizations.localeName)
+ .format(_maxDate ?? _minDate ?? DateTime.now()),
+ style: _hasMaxDate ? labelTheme : deactivatedLabelTheme,
+ ),
+ IconButton(
+ onPressed: _hasMaxDate
+ ? () async {
+ final newMaxDate = await showDatePicker(
+ context: context,
+ firstDate: _hasMinDate ? _minDate! : earliestDate,
+ initialDate: _maxDate ?? _minDate ?? DateTime.now(),
+ lastDate: DateTime.now());
+ setState(() => _maxDate = newMaxDate);
+ widget.onFilteringChanged(createFilter());
+ }
+ : null,
+ icon: const Icon(
+ Icons.edit,
+ // color: _hasMaxDate ? activeColor : deactivatedColor,
+ ),
+ tooltip: _appLocalizations.edit,
+ disabledColor: deactivatedColor,
+ )
+ ],
+ ),
+ )
+ ],
+ );
+ }
+}
+
+class TaxonomyFilteringRow extends FilteringRow {
+ const TaxonomyFilteringRow({
+ Key? key,
+ TaxonomyFilter? filter,
+ required void Function(TaxonomyFilter?) onFilteringChanged,
+ }) : super(
+ key: key,
+ filter: filter,
+ onFilteringChanged: onFilteringChanged,
+ );
+
+ @override
+ _TaxonomyFilteringRowState createState() => _TaxonomyFilteringRowState();
+}
+
+class _TaxonomyFilteringRowState extends _FilteringRowState {
+ late List _genera;
+ late List _species;
+
+ late AppLocalizations _appLocalizations;
+
+ @override
+ TaxonomyFilter? createFilter() =>
+ isFiltering ? TaxonomyFilter(genera: _genera, species: _species) : null;
+
+ @override
+ void processInitialValue(TaxonomyFilter? filter) {
+ _genera = List.of(widget.filter?.genera ?? const []);
+ _species = List.of(widget.filter?.species ?? const []);
+ }
+
+ @override
+ Widget buildBody(BuildContext context) {
+ // var labelTheme = Theme.of(context).textTheme.bodyText1!;
+ var labelTheme = Theme.of(context).textTheme.subtitle1;
+
+ return Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Padding(
+ padding: const EdgeInsets.all(16.0),
+ child: Text(
+ _appLocalizations.filteringByGenera(_genera.length),
+ style: labelTheme,
+ ),
+ ),
+ Padding(
+ padding: const EdgeInsets.all(16.0),
+ child: Text(
+ _appLocalizations.filteringBySpecies(_species.length),
+ style: labelTheme,
+ ),
+ )
+ ],
+ ),
+ IconButton(
+ icon: const Icon(Icons.edit),
+ tooltip: _appLocalizations.edit,
+ onPressed: () async {
+ // final newFilter = await Navigator.of(context)
+ // .push(MaterialPageRoute(
+ // builder: (context) => TaxonomyFilteringScreen(
+ // selectedGenera: _genera,
+ // selectedSpecies: _species,
+ // ),
+ // ));
+
+ final newFilter = await Navigator.of(context)
+ .push(MaterialPageRoute(
+ builder: (context) => TaxonomyFilteringScreen(
+ selectedGenera: List.of(_genera),
+ selectedSpecies: List.of(_species),
+ taxonomySelectionScreenType: TaxonomySelectionScreenType.filtering,
+ // filteringScreenHeader:
+ // _appLocalizations.filterByTaxonomy,
+ ),
+ fullscreenDialog: true));
+
+ if (newFilter == null) {
+ return;
+ }
+
+ setState(() {
+ _genera = newFilter.genera;
+ _species = newFilter.species;
+ });
+
+ widget.onFilteringChanged(createFilter());
+
+ // if (newFilter != null) {
+ // setState(() {
+ // _genera = newFilter.genera;
+ // _species = newFilter.species;
+ // });
+ // }
+ },
+ )
+ ],
+ );
+ }
+
+ @override
+ String get filterLabel => _appLocalizations.filterByTaxonomy;
+
+ @override
+ Widget build(BuildContext context) {
+ _appLocalizations = AppLocalizations.of(context)!;
+ return super.build(context);
+ }
+}
+
+class NameableSearchDelegate extends SearchDelegate {
+ NameableSearchDelegate({
+ required this.universe,
+ // required this.onResultSelected,
+ // this.initiallySelected = const [],
+ String? searchFieldLabel,
+ TextStyle? searchFieldStyle,
+ InputDecorationTheme? searchFieldDecorationTheme,
+ TextInputType? keyboardType,
+ TextInputAction textInputAction = TextInputAction.search,
+ }) : super(
+ searchFieldLabel: searchFieldLabel,
+ searchFieldStyle: searchFieldStyle,
+ searchFieldDecorationTheme: searchFieldDecorationTheme,
+ keyboardType: keyboardType,
+ textInputAction: textInputAction,
+ );
+
+ final List universe;
+ // final List initiallySelected;
+ // final void Function(String result) onResultSelected;
+
+ // late final List selectedResults;
+
+ List _getResults(String query) {
+ if (query.trim().isEmpty) return universe;
+
+ final results = universe
+ .where((element) =>
+ element.name.toLowerCase().contains(query.toLowerCase()))
+ .toList(growable: false);
+
+ results.sort((s1, s2) {
+ final positionBasedOrdering = s1.name
+ .toLowerCase()
+ .indexOf(query.toLowerCase())
+ .compareTo(s2.name.toLowerCase().indexOf(query.toLowerCase()));
+ return positionBasedOrdering != 0
+ ? positionBasedOrdering
+ : s1.name.compareTo(s2.name);
+ });
+
+ // print("There are ${results.length} results");
+
+ return results;
+ }
+
+ @override
+ List buildActions(BuildContext context) {
+ return [
+ IconButton(
+ onPressed: () {
+ query = "";
+ showSuggestions(context);
+ },
+ icon: const Icon(Icons.clear),
+ tooltip: AppLocalizations.of(context)!.clear,
+ )
+ ];
+ }
+
+ @override
+ Widget buildLeading(BuildContext context) {
+ return IconButton(
+ onPressed: () => close(context, null), icon: const BackButtonIcon());
+ }
+
+ @override
+ Widget buildResults(BuildContext context) {
+ final results = _getResults(query);
+ return ListView.builder(
+ itemCount: results.length,
+ itemBuilder: (context, index) => ListTile(
+ title: Text(results[index].name),
+ onTap: () => close(context, results[index])),
+ );
+ }
+
+ @override
+ Widget buildSuggestions(BuildContext context) {
+ final suggestions = _getResults(query);
+ return ListView.builder(
+ itemCount: suggestions.length,
+ itemBuilder: (context, index) => ListTile(
+ title: Text(suggestions[index].name),
+ onTap: () {
+ query = suggestions[index].name;
+ // buildResults(context);
+ showResults(context);
+ },
+ ),
+ );
+ }
+}
+
+enum TaxonomySelectionScreenType {
+ filtering,
+ notifications
+}
+
+extension GetLabels on TaxonomySelectionScreenType {
+ String getScreenTitle(BuildContext context) {
+ final appLocalizations = AppLocalizations.of(context)!;
+ switch (this) {
+ case TaxonomySelectionScreenType.filtering:
+ return appLocalizations.filterByTaxonomy;
+ case TaxonomySelectionScreenType.notifications:
+ return appLocalizations.notifications;
+ }
+ }
+
+ String getGeneraHeader(BuildContext context) {
+ final appLocalizations = AppLocalizations.of(context)!;
+
+ switch (this) {
+ case TaxonomySelectionScreenType.filtering:
+ return appLocalizations.filteringGenera;
+ case TaxonomySelectionScreenType.notifications:
+ return appLocalizations.notifyingGenera;
+ }
+ }
+
+ String getSpeciesHeader(BuildContext context) {
+ final appLocalizations = AppLocalizations.of(context)!;
+
+ switch (this) {
+ case TaxonomySelectionScreenType.filtering:
+ return appLocalizations.filteringSpecies;
+ case TaxonomySelectionScreenType.notifications:
+ return appLocalizations.notifyingSpecies;
+ }
+ }
+}
+
+class TaxonomyFilteringScreen extends StatefulWidget {
+ const TaxonomyFilteringScreen(
+ {this.selectedGenera = const [],
+ this.selectedSpecies = const [],
+ this.onFilteringSaved,
+ // required this.filteringScreenHeader,
+ this.taxonomySelectionScreenType = TaxonomySelectionScreenType.filtering,
+ Key? key})
+ : super(key: key);
+
+ final List selectedGenera;
+ final List selectedSpecies;
+ // final String filteringScreenHeader;
+ final TaxonomySelectionScreenType taxonomySelectionScreenType;
+
+ final Future Function(TaxonomyFilter?)? onFilteringSaved;
+
+ @override
+ _TaxonomyFilteringScreenState createState() =>
+ _TaxonomyFilteringScreenState();
+}
+
+class _TaxonomyFilteringScreenState extends State {
+ late AppLocalizations _appLocalizations;
+ late List _selectedGenera;
+ late List _selectedSpecies;
+
+ late List _genusListEntries;
+ late List _speciesListEntries;
+
+ @override
+ void initState() {
+ // _selectedGenera = List.of(widget.selectedGenera);
+ // _selectedSpecies = List.of(widget.selectedSpecies);
+ _selectedGenera = widget.selectedGenera;
+ _selectedSpecies = widget.selectedSpecies;
+ super.initState();
+
+ _genusListEntries = _selectedGenera.map((e) => Text(e.toString())).toList();
+ _speciesListEntries =
+ _selectedSpecies.map((e) => Text(e.toString())).toList();
+ }
+
+ TaxonomyFilter? _generateFlightFilter() {
+ if (_selectedSpecies.isEmpty && _selectedGenera.isEmpty) return null;
+
+ return TaxonomyFilter(genera: _selectedGenera, species: _selectedSpecies);
+ }
+
+ Future doneFiltering() async {
+ final newFilter = _generateFlightFilter();
+ if (widget.onFilteringSaved != null) {
+ showDialog(
+ context: context,
+ builder: (context) => AlertDialog(
+ title: Text(_appLocalizations.updatingSettings),
+ content: const LinearProgressIndicator(),
+ ),
+ barrierDismissible: false);
+ await widget.onFilteringSaved!(newFilter);
+ }
+ Navigator.of(context).pop(newFilter);
+ if (widget.onFilteringSaved != null) {
+ Navigator.of(context).pop(newFilter);
+ }
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ _appLocalizations = AppLocalizations.of(context)!;
+
+ return Scaffold(
+ appBar: AppBar(
+ title: Text(widget.taxonomySelectionScreenType.getScreenTitle(context)),
+ actions: [
+ IconButton(
+ icon: const Icon(Icons.delete_sweep),
+ tooltip: _appLocalizations.clear,
+ onPressed: () => setState(
+ () {
+ _selectedGenera.clear();
+ _selectedSpecies.clear();
+ },
+ ),
+ ),
+ IconButton(
+ onPressed: doneFiltering,
+ icon: const Icon(Icons.done),
+ tooltip: _appLocalizations.done,
+ )
+ ],
+ ),
+ floatingActionButton: _buildAddFilteringButton(),
+ body: SafeArea(
+ child: ListView(
+ primary: true,
+ padding: const EdgeInsets.all(8.0),
+ children: [
+ // HeaderRow(label: _appLocalizations.filteringGenera),
+ HeaderRow(label: widget.taxonomySelectionScreenType.getGeneraHeader(context)),
+ for (var genus in _selectedGenera)
+ Dismissible(
+ key: ValueKey(genus),
+ child: ListTile(title: Text(genus.toString())),
+ onDismissed: (_) =>
+ setState(() => _selectedGenera.remove(genus)),
+ background: Container(
+ color: Colors.red,
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.end,
+ children: [
+ Text(_appLocalizations.delete),
+ const Icon(Icons.delete)
+ ],
+ ),
+ ),
+ ),
+ // HeaderRow(label: _appLocalizations.filteringSpecies),
+ HeaderRow(label: widget.taxonomySelectionScreenType.getSpeciesHeader(context)),
+ if (_selectedSpecies.isNotEmpty)
+ for (var species in _selectedSpecies)
+ Dismissible(
+ key: ValueKey(species),
+ child: ListTile(title: Text(species.toString())),
+ onDismissed: (_) =>
+ setState(() => _selectedSpecies.remove(species)),
+ background: Container(
+ color: Colors.red,
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.end,
+ children: [
+ Text(_appLocalizations.delete),
+ const Icon(Icons.delete)
+ ],
+ ),
+ ),
+ )
+ ],
+ ),
+ ),
+ );
+ }
+
+ FloatingActionButton _buildAddFilteringButton() {
+ return FloatingActionButton(
+ onPressed: () async {
+ // final newFilter =
+ await Navigator.of(context).push(MaterialPageRoute(
+ builder: (context) => TaxonomyFilteringGeneraScreen(
+ selectedGenera: _selectedGenera,
+ selectedSpecies: _selectedSpecies,
+ )));
+ // if (newFilter != null) {
+ // setState(() {
+ // _selectedGenera = newFilter.genera;
+ // _selectedSpecies = newFilter.species;
+ // });
+ // }
+ setState(() {});
+ },
+ child: const Icon(Icons.add),
+ );
+ }
+}
+
+class TaxonomyFilteringGeneraScreen extends StatelessWidget {
+ TaxonomyFilteringGeneraScreen({
+ Key? key,
+ this.selectedGenera = const [],
+ this.selectedSpecies = const [],
+ }) : super(key: key);
+
+ final List selectedGenera;
+ final List selectedSpecies;
+
+ final _listScrollController = ItemScrollController();
+
+ // final genera = List.unmodifiable(TaxonomyManager.shared.genera);
+ final genera = Genus.getAll();
+
+ @override
+ Widget build(BuildContext context) {
+ final appLocalizations = AppLocalizations.of(context)!;
+
+ return Scaffold(
+ appBar: AppBar(
+ title: Text(appLocalizations.selectGenus),
+ actions: [
+ IconButton(
+ onPressed: () async {
+ final genus = await showSearch(
+ context: context,
+ delegate: NameableSearchDelegate(universe: genera));
+
+ // print("Got genus $genus");
+
+ if (genus == null || genus is! Genus) {
+ return;
+ }
+
+ // final index = genera.indexWhere((element) => element.name == genus);
+ final index = genera.indexOf(genus);
+
+ // print("Item is at index $index");
+ _listScrollController.scrollTo(
+ index: index,
+ duration: const Duration(milliseconds: 750),
+ curve: Curves.easeIn);
+ },
+ icon: const Icon(Icons.search))
+ ],
+ ),
+ body: SafeArea(
+ child: ScrollablePositionedList.separated(
+ itemScrollController: _listScrollController,
+ itemCount: genera.length,
+ itemBuilder: (context, index) => ListTile(
+ title: Text(genera[index].name),
+ trailing: const Icon(Icons.more_horiz),
+ onTap: () {
+ // print(genera[index]);
+ final genus = genera[index];
+ // final genus = Genus.get(genera[index]);
+
+ Navigator.of(context).push(MaterialPageRoute(
+ builder: (context) => TaxonomyFilteringSpeciesScreen(
+ genus: genus,
+ selectedGenera: selectedGenera,
+ selectedSpecies: selectedSpecies,
+ )));
+ }),
+ separatorBuilder: (context, index) => const Divider(),
+ ),
+ ),
+ );
+ }
+}
+
+class TaxonomyFilteringSpeciesScreen extends StatefulWidget {
+ const TaxonomyFilteringSpeciesScreen({
+ Key? key,
+ required this.genus,
+ this.selectedGenera = const [],
+ this.selectedSpecies = const [],
+ }) : super(key: key);
+
+ final Genus genus;
+ final List selectedGenera;
+ final List selectedSpecies;
+
+ @override
+ _TaxonomyFilteringSpeciesScreenState createState() =>
+ _TaxonomyFilteringSpeciesScreenState();
+}
+
+class _TaxonomyFilteringSpeciesScreenState
+ extends State {
+ late final List _species;
+ late final Genus _genus;
+
+ late final List _selectedGenera;
+ late final List _selectedSpecies;
+
+ final _listScrollController = ItemScrollController();
+
+ @override
+ void initState() {
+ _genus = widget.genus;
+ _selectedGenera = widget.selectedGenera;
+ _selectedSpecies = widget.selectedSpecies;
+ _species =
+ _genus.species; //TaxonomyManager.shared.speciesForGenus(_genus.name);
+
+ super.initState();
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ final appLocalizations = AppLocalizations.of(context)!;
+
+ return Scaffold(
+ appBar: AppBar(
+ title: Text(appLocalizations.selectSpecies),
+ actions: [
+ IconButton(
+ onPressed: () async {
+ final foundSpecies = await showSearch(
+ context: context,
+ delegate: NameableSearchDelegate(universe: _species));
+
+ // print("Got species $foundSpecies");
+
+ if (foundSpecies == null || foundSpecies is! Species) {
+ return;
+ }
+
+ final index = _species.indexOf(foundSpecies);
+
+ final adjustedIndex = index + 3;
+
+ // print("Item is at index $index");
+ _listScrollController.scrollTo(
+ index: adjustedIndex,
+ duration: const Duration(milliseconds: 750),
+ curve: Curves.easeIn);
+ },
+ icon: const Icon(Icons.search)),
+ IconButton(
+ onPressed: () => setState(() {
+ _selectedSpecies
+ .removeWhere((element) => element.genus == _genus);
+ if (_selectedGenera.contains(_genus)) {
+ _selectedGenera.remove(_genus);
+ }
+ }),
+ icon: const Icon(Icons.delete_sweep),
+ tooltip: appLocalizations.clear,
+ ),
+ // IconButton(onPressed: (){}, icon: const Icon(Icons.done))
+ ],
+ ),
+ body: SafeArea(
+ child: ScrollablePositionedList.separated(
+ itemScrollController: _listScrollController,
+ padding: const EdgeInsets.all(8.0),
+ itemCount: _species.length + 3,
+ itemBuilder: (context, index) {
+ if (index == 0) {
+ return HeaderRow(label: appLocalizations.entireGenus);
+ } else if (index == 1) {
+ return ListTile(
+ title: Text(_genus.name),
+ onTap: () {
+ if (_selectedGenera.contains(_genus)) {
+ setState(() => _selectedGenera.remove(_genus));
+ } else {
+ setState(() => _selectedGenera.add(_genus));
+ }
+ },
+ trailing: _selectedGenera.contains(_genus)
+ ? const Icon(Icons.check)
+ : null,
+ );
+ } else if (index == 2) {
+ return HeaderRow(
+ label: appLocalizations.species,
+ );
+ } else {
+ final adjustedIndex = index - 3;
+ // final _speciesName =
+ final _rowSpecies = _species[adjustedIndex];
+ var _speciesName = _species[adjustedIndex].name;
+ return ListTile(
+ title: Text(_rowSpecies.toString()),
+ trailing: _selectedSpecies.any((element) =>
+ element.genus == _genus && element.name == _speciesName)
+ ? const Icon(Icons.check)
+ : null,
+ onTap: () {
+ // final relevantSpecies = Species.get(_genus, _speciesName);
+ final relevantSpecies = _species[adjustedIndex];
+ if (_selectedSpecies.contains(relevantSpecies)) {
+ setState(() {
+ _selectedSpecies.remove(relevantSpecies);
+ });
+ } else {
+ setState(() {
+ _selectedSpecies.add(relevantSpecies);
+ });
+ }
+ },
+ );
+ }
+ },
+ separatorBuilder: (context, index) =>
+ index >= 3 ? const Divider() : const SizedBox.shrink(),
+ )),
+ );
+ }
+}
+
+class ImageFilteringRow extends FilteringRow {
+ const ImageFilteringRow({
+ Key? key,
+ ImageFilter? filter,
+ required void Function(ImageFilter?) onFilteringChanged,
+ }) : super(
+ key: key,
+ filter: filter,
+ onFilteringChanged: onFilteringChanged,
+ );
+
+ @override
+ State createState() => _ImageFilteringRowState();
+}
+
+class _ImageFilteringRowState extends _FilteringRowState {
+ bool _hasImages = false;
+ late AppLocalizations _appLocalizations;
+
+ @override
+ Widget buildBody(BuildContext context) {
+ return Column(
+ children: [
+ RadioListTile(
+ groupValue: _hasImages,
+ value: false,
+ onChanged: (value) {
+ setState(() {
+ _hasImages = value!;
+ });
+ widget.onFilteringChanged(createFilter());
+ },
+ title: Text(_appLocalizations.noImages),
+ ),
+ RadioListTile(
+ groupValue: _hasImages,
+ value: true,
+ onChanged: (value) {
+ setState(() {
+ _hasImages = value!;
+ });
+ widget.onFilteringChanged(createFilter());
+ },
+ title: Text(_appLocalizations.hasImages),
+ ),
+ ],
+ );
+ }
+
+ @override
+ ImageFilter? createFilter() => isFiltering ? ImageFilter(_hasImages) : null;
+
+ @override
+ String get filterLabel => _appLocalizations.filterByImages;
+
+ @override
+ void processInitialValue(ImageFilter? filter) {
+ _hasImages = filter?.hasImages ?? false;
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ _appLocalizations = AppLocalizations.of(context)!;
+ return super.build(context);
+ }
+}
+
+class VerificationFilteringRow extends FilteringRow {
+ const VerificationFilteringRow({
+ Key? key,
+ VerificationFilter? filter,
+ required void Function(VerificationFilter?) onFilteringChanged,
+ }) : super(
+ key: key,
+ filter: filter,
+ onFilteringChanged: onFilteringChanged,
+ );
+
+ @override
+ State createState() => _VerificationFilteringRowState();
+}
+
+class _VerificationFilteringRowState
+ extends _FilteringRowState {
+ var _isFilteringUserRole = false;
+ late Role _userRole;
+ var _isFilteringVerification = false;
+ late bool _verified;
+
+ late AppLocalizations _appLocalizations;
+
+ @override
+ Widget buildBody(BuildContext context) {
+ final labelTheme = Theme.of(context).textTheme.subtitle1!;
+ final deactivatedColor = Theme.of(context).disabledColor;
+ final deactivatedLabelTheme = labelTheme.apply(color: deactivatedColor);
+
+ return Column(
+ children: [
+ InkWell(
+ onTap: () {
+ setState(() {
+ _isFilteringUserRole = !_isFilteringUserRole;
+ });
+ widget.onFilteringChanged(createFilter());
+ },
+ child: Row(
+ children: [
+ Checkbox(
+ value: _isFilteringUserRole,
+ onChanged: (value) {
+ setState(() => _isFilteringUserRole = value!);
+ widget.onFilteringChanged(createFilter());
+ },
+ ),
+ Text(
+ _appLocalizations.filteringByUserRole,
+ style:
+ _isFilteringUserRole ? labelTheme : deactivatedLabelTheme,
+ ),
+ const Spacer(),
+ DropdownButton(
+ items: [
+ DropdownMenuItem(
+ value: Role.professional,
+ child: Text(_appLocalizations.professionalUser),
+ ),
+ DropdownMenuItem(
+ value: Role.citizen,
+ child: Text(_appLocalizations.citizenUser),
+ )
+ ],
+ value: _userRole,
+ onChanged: _isFilteringUserRole
+ ? (value) {
+ setState(() {
+ _userRole = value!;
+ });
+ widget.onFilteringChanged(createFilter());
+ }
+ : null,
+ )
+ ],
+ ),
+ ),
+ InkWell(
+ onTap: () {
+ setState(() {
+ _isFilteringVerification = !_isFilteringVerification;
+ });
+ widget.onFilteringChanged(createFilter());
+ },
+ child: Row(
+ children: [
+ Checkbox(
+ value: _isFilteringVerification,
+ onChanged: (value) {
+ setState(() => _isFilteringVerification = value!);
+ widget.onFilteringChanged(createFilter());
+ },
+ ),
+ Text(
+ _appLocalizations.filteringByVerification,
+ style: _isFilteringVerification
+ ? labelTheme
+ : deactivatedLabelTheme,
+ ),
+ const Spacer(),
+ DropdownButton(
+ items: [
+ DropdownMenuItem(
+ value: true,
+ child: Text(_appLocalizations.verified),
+ ),
+ DropdownMenuItem(
+ value: false,
+ child: Text(_appLocalizations.notVerified),
+ )
+ ],
+ value: _verified,
+ onChanged: _isFilteringVerification
+ ? (value) {
+ setState(() {
+ _verified = value!;
+ });
+ widget.onFilteringChanged(createFilter());
+ }
+ : null,
+ )
+ ],
+ ),
+ )
+ ],
+ );
+ }
+
+ @override
+ VerificationFilter? createFilter() {
+ return (isFiltering && (_isFilteringUserRole || _isFilteringVerification))
+ ? VerificationFilter(_isFilteringVerification ? _verified : null,
+ _isFilteringUserRole ? _userRole : null)
+ : null;
+ }
+
+ @override
+ String get filterLabel => _appLocalizations.filterByVerification;
+
+ @override
+ void processInitialValue(VerificationFilter? filter) {
+ _isFilteringUserRole = filter?.userRole != null;
+ _userRole = filter?.userRole ?? Role.professional;
+ _isFilteringVerification = filter?.verified != null;
+ _verified = filter?.verified ?? true;
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ _appLocalizations = AppLocalizations.of(context)!;
+ return super.build(context);
+ }
+}
diff --git a/lib/first_time_screen.dart b/lib/first_time_screen.dart
new file mode 100644
index 0000000..7f0c677
--- /dev/null
+++ b/lib/first_time_screen.dart
@@ -0,0 +1,765 @@
+/*
+ * first_time_screen.dart
+ * Copyright (c) 2020-2022, Abouheif Lab.
+ *
+ * AntNupTracker, mobile app for recording and managing ant nuptial flight data
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published
+ * by the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+import 'package:ant_nup_tracker/common_ui_elements.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_gen/gen_l10n/app_localizations.dart';
+// import 'package:location/location.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+import 'package:permission_handler/permission_handler.dart';
+import 'launch_url.dart';
+import 'url_manager.dart';
+import 'filtering.dart';
+import 'dark_mode_theme_ext.dart';
+
+// Plan for the first login screen
+/*
+ First page: Cartoon ant, welcome, broad overview
+ Second page: Load taxonomy, select filtering (eventually include count for how many flights will be loaded)
+ Third page: Create account or login
+ Last page: big picture about project & useful links
+ */
+
+class FirstTimeScreen extends StatefulWidget {
+ const FirstTimeScreen({Key? key}) : super(key: key);
+
+ @override
+ _FirstTimeScreenState createState() => _FirstTimeScreenState();
+}
+
+class _FirstTimeScreenState extends State {
+ final PageController _pageController = PageController(initialPage: 0);
+
+ final pageCount = 3;
+
+ Future goToPreviousPage() async => await _pageController.previousPage(
+ duration: const Duration(milliseconds: 500),
+ curve: Curves.easeOut,
+ );
+ Future goToNextPage() async => await _pageController.nextPage(
+ duration: const Duration(milliseconds: 500),
+ curve: Curves.easeIn,
+ );
+
+ @override
+ Widget build(BuildContext context) {
+ final appLocalizations = AppLocalizations.of(context)!;
+ return Scaffold(
+ appBar: AppBar(
+ automaticallyImplyLeading: false,
+ title: Text(appLocalizations.welcomeHeader),
+ ),
+ body: SafeArea(
+ child: PageView(
+ physics: const NeverScrollableScrollPhysics(),
+ controller: _pageController,
+ onPageChanged: (_) => setState(() {}),
+ children: [
+ SimpleWelcomeScreen(
+ pageController: _pageController,
+ ),
+ PermissionsScreen(
+ pageController: _pageController,
+ ),
+ InitialSettingsScreen(
+ pageController: _pageController,
+ ),
+ MoreDetailsWelcome(
+ pageController: _pageController,
+ )
+ ],
+ ),
+ ),
+ );
+ }
+}
+
+abstract class PageScreen {
+ PageController get pageController;
+ Duration get duration;
+ Curve get nextCurve;
+ Curve get previousCurve;
+
+ void onNextPage();
+ void onPreviousPage();
+ void onDone();
+}
+
+class SimpleWelcomeScreen extends StatelessWidget implements PageScreen {
+ const SimpleWelcomeScreen({
+ Key? key,
+ required this.pageController,
+ this.duration = const Duration(milliseconds: 50),
+ this.nextCurve = Curves.easeIn,
+ this.previousCurve = Curves.easeOut,
+ }) : super(key: key);
+
+ @override
+ final PageController pageController;
+
+ @override
+ final Duration duration;
+
+ @override
+ final Curve nextCurve;
+
+ @override
+ final Curve previousCurve;
+
+ @override
+ void onNextPage() {
+ pageController.nextPage(duration: duration, curve: nextCurve);
+ }
+
+ @override
+ void onPreviousPage() {}
+
+ @override
+ void onDone() {}
+
+ // final void Function()? onNextButtonPress;
+ // final void Function()? onPreviousButtonPress;
+ //
+ // bool get _shouldShowButtons =>
+ // onPreviousButtonPress != null || onNextButtonPress != null;
+
+ @override
+ Widget build(BuildContext context) {
+ final appLocalizations = AppLocalizations.of(context)!;
+ return ListView(
+ padding: const EdgeInsets.all(16.0),
+ children: [
+ Text(
+ appLocalizations.welcomeHeader,
+ style: Theme.of(context).textTheme.headline5,
+ textAlign: TextAlign.center,
+ ),
+ Image(
+ image: Theme.of(context).isDarkMode ? const AssetImage("assets/cartoon_ant/dark/cartoon_ant.png") : const AssetImage("assets/cartoon_ant/cartoon_ant.png"),
+ height: 200,
+ matchTextDirection: true,
+ ),
+ Padding(
+ padding: const EdgeInsets.all(8.0),
+ child: Row(
+ children: [
+ Padding(
+ padding: const EdgeInsets.all(8.0),
+ child: Image(
+ image: const AssetImage("assets/ant_circles/white_ant.png"),
+ color: Theme.of(context).textTheme.headline6!.color,
+ colorBlendMode: BlendMode.srcATop,
+ ),
+ ),
+ Expanded(
+ child: Text(
+ appLocalizations.welcomeBullet1,
+ style: Theme.of(context).textTheme.headline6,
+ ),
+ ),
+ ],
+ ),
+ ),
+ Padding(
+ padding: const EdgeInsets.all(8.0),
+ child: Row(
+ children: [
+ Padding(
+ padding: const EdgeInsets.all(8.0),
+ child: Image(
+ image: const AssetImage("assets/ant_circles/white_ant.png"),
+ color: Theme.of(context).textTheme.headline6!.color,
+ colorBlendMode: BlendMode.srcATop,
+ ),
+ ),
+ Expanded(
+ child: Text(
+ appLocalizations.welcomeBullet2,
+ style: Theme.of(context).textTheme.headline6,
+ )),
+ ],
+ ),
+ ),
+ Padding(
+ padding: const EdgeInsets.all(8.0),
+ child: Row(
+ children: [
+ Padding(
+ padding: const EdgeInsets.all(8.0),
+ child: Image(
+ image: const AssetImage("assets/ant_circles/white_ant.png"),
+ color: Theme.of(context).textTheme.headline6!.color,
+ colorBlendMode: BlendMode.srcATop,
+ ),
+ ),
+ Expanded(
+ child: Text(
+ appLocalizations.welcomeBullet3,
+ style: Theme.of(context).textTheme.headline6,
+ )),
+ ],
+ ),
+ ),
+ NextPreviousButtonRow(
+ onNextPage: onNextPage,
+ )
+ ],
+ );
+ }
+}
+
+class PermissionsScreen extends StatelessWidget implements PageScreen {
+ const PermissionsScreen({
+ Key? key,
+ required this.pageController,
+ this.duration = const Duration(milliseconds: 50),
+ this.nextCurve = Curves.easeIn,
+ this.previousCurve = Curves.easeOut,
+ }) : super(key: key);
+
+ @override
+ Widget build(BuildContext context) {
+ final appLocalizations = AppLocalizations.of(context)!;
+
+ const textStyle = TextStyle(fontSize: 14);
+
+ // Theme.of(context).textTheme.bodyText2!.copyWith(fontSize: 14);
+ var headingStyle = Theme.of(context).textTheme.headline6;
+ // textStyle.copyWith(fontWeight: FontWeight.bold, fontSize: 18);
+ return ListView(
+ padding: const EdgeInsets.all(16.0),
+ children: [
+ Text(
+ appLocalizations.appPermissionsHeader,
+ style: Theme.of(context).textTheme.headline5,
+ textAlign: TextAlign.center,
+ ),
+ Text(
+ appLocalizations.appPermissionsSubtitle,
+ style: textStyle,
+ ),
+ Padding(
+ padding: const EdgeInsets.all(8.0),
+ child: Row(
+ children: [
+ Padding(
+ padding: const EdgeInsets.all(8.0),
+ child: Icon(
+ Icons.location_pin,
+ color: Theme.of(context).textTheme.headline6!.color,
+ size: 32.0,
+ ),
+ ),
+ Expanded(
+ child: Column(
+ children: [
+ Align(
+ child: Text(
+ appLocalizations.location,
+ style: headingStyle,
+ ),
+ alignment: Alignment.centerLeft,
+ ),
+ Text(
+ appLocalizations.locationPermissionDetails,
+ style: textStyle,
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ ),
+ Padding(
+ padding: const EdgeInsets.all(8.0),
+ child: Row(
+ children: [
+ Padding(
+ padding: const EdgeInsets.all(8.0),
+ child: Icon(
+ Icons.camera_alt,
+ color: Theme.of(context).textTheme.headline6!.color,
+ size: 32.0,
+ ),
+ ),
+ Expanded(
+ child: Column(
+ children: [
+ Align(
+ child: Text(
+ appLocalizations.camera,
+ style: headingStyle,
+ ),
+ alignment: Alignment.centerLeft,
+ ),
+ Align(
+ child: Text(
+ appLocalizations.cameraPermissionDetails,
+ style: textStyle,
+ ),
+ alignment: Alignment.centerLeft,
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ ),
+ Padding(
+ padding: const EdgeInsets.all(8.0),
+ child: Row(
+ children: [
+ Padding(
+ padding: const EdgeInsets.all(8.0),
+ child: Icon(
+ Icons.photo,
+ color: Theme.of(context).textTheme.headline6!.color,
+ size: 32.0,
+ ),
+ ),
+ Expanded(
+ child: Column(
+ children: [
+ Align(
+ child: Text(
+ appLocalizations.gallery,
+ style: headingStyle,
+ ),
+ alignment: Alignment.centerLeft,
+ ),
+ Text(
+ appLocalizations.galleryPermissionDetails,
+ style: textStyle,
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ ),
+ Text(
+ appLocalizations.permissionsScreenBottomNote,
+ style: textStyle,
+ ),
+ NextPreviousButtonRow(
+ onPreviousPage: onPreviousPage,
+ onNextPage: onNextPage,
+ )
+ ],
+ );
+ }
+
+ @override
+ final Curve nextCurve;
+
+ @override
+ final Curve previousCurve;
+
+ @override
+ final Duration duration;
+
+ @override
+ void onDone() {}
+
+ @override
+ Future onNextPage() async {
+ // Request permissions
+ await [Permission.location, Permission.camera, Permission.photos, Permission.storage].request();
+
+ pageController.nextPage(duration: duration, curve: nextCurve);
+ }
+
+ @override
+ void onPreviousPage() {
+ pageController.previousPage(duration: duration, curve: previousCurve);
+ }
+
+ @override
+ final PageController pageController;
+}
+
+class InitialSettingsScreen extends StatefulWidget implements PageScreen {
+ const InitialSettingsScreen({
+ Key? key,
+ required this.pageController,
+ this.duration = const Duration(milliseconds: 250),
+ this.nextCurve = Curves.easeIn,
+ this.previousCurve = Curves.easeOut,
+ }) : super(key: key);
+
+ // final void Function()? onPreviousButtonPress;
+ // final void Function()? onNextButtonPress;
+
+ @override
+ _InitialSettingsScreenState createState() => _InitialSettingsScreenState();
+
+ @override
+ final Duration duration;
+
+ @override
+ final PageController pageController;
+
+ @override
+ final Curve previousCurve;
+
+ @override
+ final Curve nextCurve;
+
+ @override
+ void onDone() {}
+
+ @override
+ void onNextPage() async {
+ await FilteringManager.shared.saveFilters();
+ pageController.nextPage(duration: duration, curve: nextCurve);
+ }
+
+ @override
+ void onPreviousPage() {
+ pageController.previousPage(duration: duration, curve: previousCurve);
+ }
+}
+
+class _InitialSettingsScreenState extends State {
+ // bool get _shouldShowButtons =>
+ // widget.onPreviousButtonPress != null || widget.onNextButtonPress != null;
+
+ @override
+ Widget build(BuildContext context) {
+ final appLocalizations = AppLocalizations.of(context)!;
+ return ListView(
+ padding: const EdgeInsets.all(16.0),
+ children: [
+ HeaderRow(label: appLocalizations.setUpSorting),
+ SortingSection(
+ ordering: FilteringManager.shared.ordering,
+ direction: FilteringManager.shared.direction,
+ locationFilter: FilteringManager.shared.locationFilter,
+ onSortingChanged: (ordering, direction, locationFilter) {
+ FilteringManager.shared.ordering = ordering;
+ FilteringManager.shared.direction = direction;
+ FilteringManager.shared.locationFilter = locationFilter;
+ // print("Now selected location: ${locationFilter?.location ?? "None"}.");
+ },
+ ),
+ HeaderRow(label: appLocalizations.setUpFiltering),
+ TaxonomyFilteringRow(
+ filter: FilteringManager.shared.taxonomyFilter,
+ onFilteringChanged: (taxonomyFilter) =>
+ FilteringManager.shared.taxonomyFilter = taxonomyFilter,
+ ),
+ DateFilteringRow(
+ filter: FilteringManager.shared.dateFilter,
+ onFilteringChanged: (dateFilter) =>
+ FilteringManager.shared.dateFilter = dateFilter,
+ ),
+ ImageFilteringRow(
+ filter: FilteringManager.shared.imageFilter,
+ onFilteringChanged: (imageFilter) =>
+ FilteringManager.shared.imageFilter = imageFilter,
+ ),
+ VerificationFilteringRow(
+ filter: FilteringManager.shared.verificationFilter,
+ onFilteringChanged: (verificationFilter) =>
+ FilteringManager.shared.verificationFilter = verificationFilter,
+ ),
+ NextPreviousButtonRow(
+ onNextPage: widget.onNextPage,
+ onPreviousPage: widget.onPreviousPage,
+ )
+ ],
+ );
+ }
+}
+
+class MoreDetailsWelcome extends StatelessWidget implements PageScreen {
+ const MoreDetailsWelcome({
+ Key? key,
+ required this.pageController,
+ this.duration = const Duration(milliseconds: 250),
+ this.nextCurve = Curves.easeIn,
+ this.previousCurve = Curves.easeOut,
+ }) : super(key: key);
+
+ @override
+ final Duration duration;
+
+ @override
+ final PageController pageController;
+
+ @override
+ final Curve previousCurve;
+
+ @override
+ final Curve nextCurve;
+
+ @override
+ void onDone() async {
+ final prefs = await SharedPreferences.getInstance();
+ prefs.setBool('hasLoadedWelcome', true);
+ }
+
+ @override
+ void onNextPage() async {}
+
+ @override
+ void onPreviousPage() {
+ pageController.previousPage(duration: duration, curve: previousCurve);
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ final appLocalizations = AppLocalizations.of(context)!;
+ return ListView(
+ padding: const EdgeInsets.all(16.0),
+ children: [
+ Image(
+ image: Theme.of(context).isDarkMode ? const AssetImage("assets/cartoon_ant/dark/cartoon_ant.png") : const AssetImage("assets/cartoon_ant/cartoon_ant.png"),
+ height: 200,
+ matchTextDirection: true,
+ ),
+ Padding(
+ padding: const EdgeInsets.all(4.0),
+ child: Text(
+ appLocalizations.welcomeBodyText,
+ style: Theme.of(context).textTheme.headline5,
+ textAlign: TextAlign.center,
+ ),
+ ),
+ const SizedBox(
+ height: 32,
+ ),
+ Padding(
+ padding: const EdgeInsets.all(4.0),
+ child: Text(
+ appLocalizations.welcomeBottomText,
+ style: Theme.of(context).textTheme.headline5,
+ textAlign: TextAlign.center,
+ ),
+ ),
+ // ElevatedButton(
+ // onPressed: () => Navigator.of(context).pop(),
+ // child: Text(appLocalizations.viewFlightList),
+ // ),
+ const SizedBox(height: 32.0),
+ ElevatedButton.icon(
+ onPressed: () async {
+ final urlString = UrlManager.shared.aboutUrl.toString();
+ await launchUrl(urlString);
+ },
+ label: Text(appLocalizations.moreAboutUs),
+ icon: const Icon(Icons.open_in_new),
+ ),
+ ElevatedButton.icon(
+ onPressed: () async {
+ final urlString = UrlManager.shared.privacyUrl.toString();
+ await launchUrl(urlString);
+ },
+ label: Text(appLocalizations.privacyPolicy),
+ icon: const Icon(Icons.open_in_new),
+ ),
+ ElevatedButton(
+ onPressed: () {
+ // Navigator.of(context).push(MaterialPageRoute(
+ // builder: (context) => const PackagesScreen(),
+ // ));
+ showLicensePage(context: context, applicationLegalese: appLocalizations.applicationLegalese, applicationIcon: Image(
+ image: Theme.of(context).isDarkMode ? const AssetImage("assets/cartoon_ant/dark/cartoon_ant.png") : const AssetImage("assets/cartoon_ant/cartoon_ant.png"),
+ height: 80,
+ matchTextDirection: true,
+ ));
+ },
+ child: Text(appLocalizations.packagesInfo),
+ ),
+ NextPreviousButtonRow(
+ onPreviousPage: onPreviousPage,
+ onDone: () {
+ onDone();
+
+ // Pop to show the list
+ Navigator.of(context).pop();
+ },
+ )
+ ],
+ );
+ }
+}
+
+class NextPreviousButtonRow extends StatelessWidget {
+ const NextPreviousButtonRow({
+ Key? key,
+ this.onNextPage,
+ this.onPreviousPage,
+ this.onDone,
+ }) : super(key: key);
+
+ final void Function()? onNextPage;
+
+ final void Function()? onPreviousPage;
+
+ final void Function()? onDone;
+
+ @override
+ Widget build(BuildContext context) {
+ final appLocalizations = AppLocalizations.of(context)!;
+ return Row(
+ crossAxisAlignment: CrossAxisAlignment.center,
+ mainAxisAlignment: MainAxisAlignment.spaceAround,
+ children: [
+ if (onPreviousPage != null)
+ ElevatedButton(
+ onPressed: onPreviousPage,
+ child: Text(appLocalizations.previous)),
+ if (onNextPage != null)
+ ElevatedButton(
+ onPressed: onNextPage, child: Text(appLocalizations.next)),
+ if (onDone != null)
+ ElevatedButton(onPressed: onDone, child: Text(appLocalizations.done))
+ ],
+ );
+ }
+}
+
+// class NextPreviousButtonRow extends StatefulWidget {
+// const NextPreviousButtonRow({
+// Key? key,
+// required this.pageController,
+// required this.pageCount,
+// required this.duration,
+// required this.curve,
+// this.resizeDuration = const Duration(milliseconds: 50),
+// this.onFinished,
+// }) : super(key: key);
+//
+// final int pageCount;
+// final PageController pageController;
+// final Duration duration;
+// final Curve curve;
+// final Duration resizeDuration;
+// final void Function()? onFinished;
+//
+// @override
+// _NextPreviousButtonRowState createState() => _NextPreviousButtonRowState();
+// }
+//
+// class _NextPreviousButtonRowState extends State {
+// bool get isOnFirstPage =>
+// (widget.pageController.page ?? widget.pageController.initialPage)
+// .toInt() ==
+// 0;
+// bool get isOnLastPage =>
+// (widget.pageController.page ?? widget.pageController.initialPage)
+// .toInt() ==
+// widget.pageCount - 1;
+//
+// @override
+// Widget build(BuildContext context) {
+// final appLocalizations = AppLocalizations.of(context)!;
+// return Row(
+// crossAxisAlignment: CrossAxisAlignment.center,
+// mainAxisAlignment: MainAxisAlignment.spaceAround,
+// children: [
+// if (!isOnFirstPage)
+// ElevatedButton(
+// onPressed: () async {
+// widget.pageController
+// .previousPage(
+// duration: widget.duration, curve: widget.curve)
+// .then((value) => setState(() {}));
+// },
+// child: Text(appLocalizations.previous)),
+// // if (!isOnLastPage && !isOnFirstPage)
+// // const SizedBox(
+// // width: 48,
+// // ),
+// if (!isOnLastPage)
+// ElevatedButton(
+// onPressed: () async {
+// widget.pageController
+// .nextPage(duration: widget.duration, curve: widget.curve)
+// .then((value) => setState(() {}));
+// },
+// child: Text(appLocalizations.next)),
+// if (isOnLastPage)
+// ElevatedButton(
+// onPressed: () {
+// if (widget.onFinished != null) {
+// widget.onFinished!();
+// }
+// },
+// child: Text(appLocalizations.done))
+// ],
+// );
+// }
+// }
+
+// class NextPreviousButtonRow extends StatelessWidget {
+// const NextPreviousButtonRow(
+// {Key? key,
+// required this.pageController,
+// required this.pageCount,
+// required this.duration,
+// required this.curve,
+// this.resizeDuration = const Duration(milliseconds: 50),
+// })
+// : super(key: key);
+//
+// final int pageCount;
+// final PageController pageController;
+// final Duration duration;
+// final Curve curve;
+// final Duration resizeDuration;
+//
+// bool get isOnFirstPage => pageController.page == 0;
+// bool get isOnLastPage => pageController.page == pageCount - 1;
+//
+// @override
+// Widget build(BuildContext context) {
+// final appLocalizations = AppLocalizations.of(context)!;
+// return Row(
+// crossAxisAlignment: CrossAxisAlignment.center,
+// mainAxisAlignment: MainAxisAlignment.center,
+// children: [
+// if (!isOnFirstPage)
+// AnimatedContainer(
+// duration: resizeDuration,
+// width: isOnLastPage ? 400 : 250,
+// child: ElevatedButton(
+// onPressed: () =>
+// pageController.previousPage(duration: duration, curve: curve),
+// child: Text(appLocalizations.previous)),
+// ),
+// if (!isOnFirstPage && !isOnLastPage)
+// const SizedBox(
+// width: 48,
+// ),
+// if (!isOnLastPage)
+// AnimatedContainer(
+// duration: resizeDuration,
+// width: isOnFirstPage ? 400 : 250,
+// child: ElevatedButton(
+// onPressed: () =>
+// pageController.nextPage(duration: duration, curve: curve),
+// child: Text(appLocalizations.next)),
+// )
+// ],
+// );
+// }
+// }
diff --git a/lib/flight_database.dart b/lib/flight_database.dart
new file mode 100644
index 0000000..d56821e
--- /dev/null
+++ b/lib/flight_database.dart
@@ -0,0 +1,416 @@
+/*
+ * flight_database.dart
+ * Copyright (c) 2020-2022, Abouheif Lab.
+ *
+ * AntNupTracker, mobile app for recording and managing ant nuptial flight data
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published
+ * by the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+import 'package:ant_nup_tracker/flight_list.dart';
+import 'package:ant_nup_tracker/users.dart';
+import 'package:lat_lng_to_timezone/lat_lng_to_timezone.dart';
+import 'package:sqflite/sqflite.dart';
+import 'package:timezone/timezone.dart';
+import 'package:tuple/tuple.dart';
+import 'flights.dart';
+
+const dbName = "flights.db";
+
+class FlightDatabase {
+ FlightDatabase._();
+
+ static const flightTableName = "flights";
+ static const flightIdColumn = "flightId";
+ static const genusColumn = "genus";
+ static const speciesColumn = "species";
+ static const confidenceColumn = "confidence";
+ static const dateOfFlightColumn = "dateOfFlight";
+ static const sizeColumn = "sizeOfFlight";
+ static const latitudeColumn = "latitude";
+ static const longitudeColumn = "longitude";
+ static const radiusColumn = "radius";
+ static const dateRecordedColumn = "dateRecorded";
+ static const ownerColumn = "owner";
+ static const ownerRoleColumn = "ownerRole";
+ static const hasWeatherColumn = "hasWeather";
+ static const validatedColumn = "validated";
+ static const validatedByColumn = "validatedBy";
+ static const validatedAtColumn = "validatedAt";
+ static const lastUpdatedColumn = "lastUpdated";
+
+ static const createFlightsTable = """
+create table if not exists $flightTableName (
+ $flightIdColumn int primary key,
+ $speciesColumn int not null,
+ $confidenceColumn int not null CHECK($confidenceColumn = 0 OR $confidenceColumn = 1),
+ $dateOfFlightColumn text not null,
+ $sizeColumn int not null CHECK($sizeColumn = 0 OR $sizeColumn = 1),
+ $latitudeColumn real not null,
+ $longitudeColumn real not null,
+ $radiusColumn real not null CHECK($radiusColumn >= 0),
+ $dateRecordedColumn text not null,
+ $ownerColumn text not null,
+ $ownerRoleColumn int not null CHECK($ownerRoleColumn >= -1 AND $ownerRoleColumn <= 1),
+ $hasWeatherColumn int not null CHECK($hasWeatherColumn = 0 OR $hasWeatherColumn = 1),
+ $validatedColumn int not null CHECK($validatedColumn = 0 OR $validatedColumn = 1),
+ $validatedAtColumn text,
+ $validatedByColumn text,
+ $lastUpdatedColumn date not null
+)""";
+
+ static const dropFlightsTable = """
+ drop table $flightTableName
+ """;
+
+ static const genusTableName = "genera";
+ static const genusIdColumn = "id";
+ static const genusNameColumn = "name";
+
+ static const speciesTableName = "species";
+ static const speciesIdColumn = "id";
+ static const speciesGenusColumn = "genus";
+ static const speciesNameColumn = "name";
+
+ static const createGenusTable = """
+create table if not exists $genusTableName (
+ $genusIdColumn int primary key,
+ $genusNameColumn text not null
+)""";
+
+ static const createSpeciesTable = """
+create table if not exists $speciesTableName (
+ $speciesIdColumn int primary key,
+ $speciesNameColumn text not null,
+ $speciesGenusColumn int not null,
+ foreign key($speciesGenusColumn) REFERENCES $genusTableName($genusIdColumn)
+)""";
+
+ static const dropGeneraTable = """
+ drop table $genusTableName
+ """;
+
+ static const dropSpeciesTable = """
+ drop table $speciesTableName
+ """;
+
+ static const enableForeignKey = """
+PRAGMA foreign_keys = ON
+""";
+
+ static final shared = FlightDatabase._();
+
+ Database? _db;
+
+ bool get isInitialized => _db != null;
+
+ Future initializeDatabase({bool clear = false}) async {
+ final dbExists = await databaseExists(dbName);
+
+ if (dbExists && clear) {
+ await deleteDatabase(dbName);
+ }
+
+ _db = await openDatabase(
+ dbName,
+ version: 1,
+ onCreate: (db, version) {
+ db.execute(enableForeignKey);
+ db.execute(createGenusTable);
+ db.execute(createSpeciesTable);
+ db.execute(createFlightsTable);
+ },
+ );
+ //
+ // if (clear){
+ // // _db!.execute(dropFlightsTable);
+ // // _db!.execute(createFlightsTable);
+ // }
+
+ return dbExists;
+ }
+
+ // Future clearDatabase() async {
+ // final dbExists = await databaseExists(dbName);
+ //
+ // if (!dbExists) {
+ // return;
+ // }
+ //
+ // _db = await openDatabase(
+ // dbName,
+ // version: 1,
+ // onOpen: (db) {
+ //
+ // }
+ // );
+ //
+ // _db!.close();
+ // _db = null;
+ // }
+
+ Future