├── .gitignore ├── .metadata ├── LICENSE.md ├── README.md ├── analysis_options.yaml ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── qrcode │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── drawable-v21 │ │ │ └── launch_background.xml │ │ │ ├── drawable │ │ │ └── launch_background.xml │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── values-night │ │ │ └── styles.xml │ │ │ └── values │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── assets ├── icons │ └── vector.png └── user.json ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Podfile ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── IDEWorkspaceChecks.plist │ │ └── WorkspaceSettings.xcsettings └── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-App-1024x1024@1x.png │ │ ├── Icon-App-20x20@1x.png │ │ ├── Icon-App-20x20@2x.png │ │ ├── Icon-App-20x20@3x.png │ │ ├── Icon-App-29x29@1x.png │ │ ├── Icon-App-29x29@2x.png │ │ ├── Icon-App-29x29@3x.png │ │ ├── Icon-App-40x40@1x.png │ │ ├── Icon-App-40x40@2x.png │ │ ├── Icon-App-40x40@3x.png │ │ ├── Icon-App-60x60@2x.png │ │ ├── Icon-App-60x60@3x.png │ │ ├── Icon-App-76x76@1x.png │ │ ├── Icon-App-76x76@2x.png │ │ └── Icon-App-83.5x83.5@2x.png │ └── LaunchImage.imageset │ │ ├── Contents.json │ │ ├── LaunchImage.png │ │ ├── LaunchImage@2x.png │ │ ├── LaunchImage@3x.png │ │ └── README.md │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ └── Runner-Bridging-Header.h ├── lib ├── controllers │ ├── home_controller.dart │ └── login_controller.dart ├── helper │ └── shared_preferences.dart ├── main.dart ├── model │ ├── meta_data.dart │ ├── user.dart │ ├── user_info.dart │ └── user_role.dart ├── screens │ ├── home_screen.dart │ ├── initialization_screen.dart │ ├── login_screen.dart │ └── qr_scanner.dart ├── services │ ├── api.dart │ └── exception.dart ├── styles │ ├── app_colors.dart │ └── app_styletext.dart ├── utils │ └── constants │ │ ├── api_paths.dart │ │ └── size_constants.dart └── widgets │ ├── customDialogs │ ├── signout_dialog.dart │ ├── unverified_dialog.dart │ └── verification_dialog.dart │ ├── custom_button.dart │ ├── k_inputfield.dart │ └── user_tile.dart ├── pubspec.lock ├── pubspec.yaml ├── test └── widget_test.dart └── web ├── favicon.png ├── icons ├── Icon-192.png ├── Icon-512.png ├── Icon-maskable-192.png └── Icon-maskable-512.png ├── index.html └── manifest.json /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | **/ios/Flutter/.last_build_id 26 | .dart_tool/ 27 | .flutter-plugins 28 | .flutter-plugins-dependencies 29 | .packages 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Web related 35 | lib/generated_plugin_registrant.dart 36 | 37 | # Symbolication related 38 | app.*.symbols 39 | 40 | # Obfuscation related 41 | app.*.map.json 42 | 43 | # Android Studio will place build artifacts here 44 | /android/app/debug 45 | /android/app/profile 46 | /android/app/release 47 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 18116933e77adc82f80866c928266a5b4f1ed645 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # qrcode 2 | 3 | A new Flutter QR Scanner Project for Data Entry using GetX state management architecture. 4 | 5 | ## Packages Used 6 | 7 | For QR Scanner Package explore 8 | 9 | -[https://pub.dev/packages/qr_code_scanner](https://pub.dev/packages/qr_code_scanner) 10 | 11 | For GetX 12 | -[https://pub.dev/packages/get](https://pub.dev/packages/get) 13 | 14 | For SharedPreferences 15 | 16 | -[https://pub.dev/packages/shared_preferences](https://pub.dev/packages/shared_preferences) 17 | 18 | 19 | 20 | ![QR Scanner_Home](https://user-images.githubusercontent.com/18269506/152419134-b3e3e893-c4bf-4a44-9c97-a75b9cb72077.png) 21 | 22 | ![QR Scanner_Home-Verified](https://user-images.githubusercontent.com/18269506/152419127-7c93e2ff-57d8-40ad-b64a-d65e04804638.png) 23 | 24 | ![QR Scanner_Home-logout](https://user-images.githubusercontent.com/18269506/152419109-e4e2323d-269c-4a11-8325-ee2cb64ad006.png) 25 | 26 | 27 | ## Getting Started 28 | 29 | This project is a starting point for a Flutter application. 30 | 31 | A few resources to get you started if this is your first Flutter project: 32 | 33 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) 34 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) 35 | 36 | For help getting started with Flutter, view our 37 | [online documentation](https://flutter.dev/docs), which offers tutorials, 38 | samples, guidance on mobile development, and a full API reference. 39 | -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # This file configures the analyzer, which statically analyzes Dart code to 2 | # check for errors, warnings, and lints. 3 | # 4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled 5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be 6 | # invoked from the command line by running `flutter analyze`. 7 | 8 | # The following line activates a set of recommended lints for Flutter apps, 9 | # packages, and plugins designed to encourage good coding practices. 10 | include: package:flutter_lints/flutter.yaml 11 | 12 | linter: 13 | # The lint rules applied to this project can be customized in the 14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml` 15 | # included above or to enable additional rules. A list of all available lints 16 | # and their documentation is published at 17 | # https://dart-lang.github.io/linter/lints/index.html. 18 | # 19 | # Instead of disabling a lint rule for the entire project in the 20 | # section below, it can also be suppressed for a single line of code 21 | # or a specific dart file by using the `// ignore: name_of_lint` and 22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 23 | # producing the lint. 24 | rules: 25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 27 | 28 | # Additional information about this file can be found at 29 | # https://dart.dev/guides/language/analysis-options 30 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | **/*.keystore 13 | **/*.jks 14 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion 30 30 | 31 | compileOptions { 32 | sourceCompatibility JavaVersion.VERSION_1_8 33 | targetCompatibility JavaVersion.VERSION_1_8 34 | } 35 | 36 | kotlinOptions { 37 | jvmTarget = '1.8' 38 | } 39 | 40 | sourceSets { 41 | main.java.srcDirs += 'src/main/kotlin' 42 | } 43 | 44 | defaultConfig { 45 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 46 | applicationId "com.example.qrcode" 47 | minSdkVersion 21 48 | targetSdkVersion 30 49 | versionCode flutterVersionCode.toInteger() 50 | versionName flutterVersionName 51 | } 52 | 53 | buildTypes { 54 | release { 55 | // TODO: Add your own signing config for the release build. 56 | // Signing with the debug keys for now, so `flutter run --release` works. 57 | signingConfig signingConfigs.debug 58 | } 59 | } 60 | } 61 | 62 | flutter { 63 | source '../..' 64 | } 65 | 66 | dependencies { 67 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 68 | } 69 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 19 | 23 | 27 | 32 | 36 | 37 | 38 | 39 | 40 | 41 | 43 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/qrcode/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.qrcode 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chbilalramzan/flutterQRcode/f31c5eb3ad2e4f3037a1dd22c2b79bf4480f6b38/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chbilalramzan/flutterQRcode/f31c5eb3ad2e4f3037a1dd22c2b79bf4480f6b38/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chbilalramzan/flutterQRcode/f31c5eb3ad2e4f3037a1dd22c2b79bf4480f6b38/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chbilalramzan/flutterQRcode/f31c5eb3ad2e4f3037a1dd22c2b79bf4480f6b38/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chbilalramzan/flutterQRcode/f31c5eb3ad2e4f3037a1dd22c2b79bf4480f6b38/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.5.10' 3 | repositories { 4 | google() 5 | mavenCentral() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:4.2.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | mavenCentral() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | project.evaluationDependsOn(':app') 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | android.enableDexingArtifactTransform=false 5 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip 7 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /assets/icons/vector.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chbilalramzan/flutterQRcode/f31c5eb3ad2e4f3037a1dd22c2b79bf4480f6b38/assets/icons/vector.png -------------------------------------------------------------------------------- /assets/user.json: -------------------------------------------------------------------------------- 1 | { 2 | "users": [ 3 | { 4 | "id": 1, 5 | "username": "test1", 6 | "password": "Aa@123456" 7 | }, 8 | { 9 | "id": 2, 10 | "username": "text2", 11 | "password": "Aa@123456" 12 | }, 13 | { 14 | "id": 3, 15 | "username": "text3", 16 | "password":"Aa@123456" 17 | } 18 | ] 19 | } -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 9.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 6 | 7 | project 'Runner', { 8 | 'Debug' => :debug, 9 | 'Profile' => :release, 10 | 'Release' => :release, 11 | } 12 | 13 | def flutter_root 14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) 15 | unless File.exist?(generated_xcode_build_settings_path) 16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" 17 | end 18 | 19 | File.foreach(generated_xcode_build_settings_path) do |line| 20 | matches = line.match(/FLUTTER_ROOT\=(.*)/) 21 | return matches[1].strip if matches 22 | end 23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" 24 | end 25 | 26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) 27 | 28 | flutter_ios_podfile_setup 29 | 30 | target 'Runner' do 31 | use_frameworks! 32 | use_modular_headers! 33 | 34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) 35 | end 36 | 37 | post_install do |installer| 38 | installer.pods_project.targets.each do |target| 39 | flutter_additional_ios_build_settings(target) 40 | end 41 | end 42 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXCopyFilesBuildPhase section */ 19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 20 | isa = PBXCopyFilesBuildPhase; 21 | buildActionMask = 2147483647; 22 | dstPath = ""; 23 | dstSubfolderSpec = 10; 24 | files = ( 25 | ); 26 | name = "Embed Frameworks"; 27 | runOnlyForDeploymentPostprocessing = 0; 28 | }; 29 | /* End PBXCopyFilesBuildPhase section */ 30 | 31 | /* Begin PBXFileReference section */ 32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | /* End PBXFileReference section */ 46 | 47 | /* Begin PBXFrameworksBuildPhase section */ 48 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 49 | isa = PBXFrameworksBuildPhase; 50 | buildActionMask = 2147483647; 51 | files = ( 52 | ); 53 | runOnlyForDeploymentPostprocessing = 0; 54 | }; 55 | /* End PBXFrameworksBuildPhase section */ 56 | 57 | /* Begin PBXGroup section */ 58 | 9740EEB11CF90186004384FC /* Flutter */ = { 59 | isa = PBXGroup; 60 | children = ( 61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 65 | ); 66 | name = Flutter; 67 | sourceTree = ""; 68 | }; 69 | 97C146E51CF9000F007C117D = { 70 | isa = PBXGroup; 71 | children = ( 72 | 9740EEB11CF90186004384FC /* Flutter */, 73 | 97C146F01CF9000F007C117D /* Runner */, 74 | 97C146EF1CF9000F007C117D /* Products */, 75 | ); 76 | sourceTree = ""; 77 | }; 78 | 97C146EF1CF9000F007C117D /* Products */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 97C146EE1CF9000F007C117D /* Runner.app */, 82 | ); 83 | name = Products; 84 | sourceTree = ""; 85 | }; 86 | 97C146F01CF9000F007C117D /* Runner */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 92 | 97C147021CF9000F007C117D /* Info.plist */, 93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 97 | ); 98 | path = Runner; 99 | sourceTree = ""; 100 | }; 101 | /* End PBXGroup section */ 102 | 103 | /* Begin PBXNativeTarget section */ 104 | 97C146ED1CF9000F007C117D /* Runner */ = { 105 | isa = PBXNativeTarget; 106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 107 | buildPhases = ( 108 | 9740EEB61CF901F6004384FC /* Run Script */, 109 | 97C146EA1CF9000F007C117D /* Sources */, 110 | 97C146EB1CF9000F007C117D /* Frameworks */, 111 | 97C146EC1CF9000F007C117D /* Resources */, 112 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 114 | ); 115 | buildRules = ( 116 | ); 117 | dependencies = ( 118 | ); 119 | name = Runner; 120 | productName = Runner; 121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 122 | productType = "com.apple.product-type.application"; 123 | }; 124 | /* End PBXNativeTarget section */ 125 | 126 | /* Begin PBXProject section */ 127 | 97C146E61CF9000F007C117D /* Project object */ = { 128 | isa = PBXProject; 129 | attributes = { 130 | LastUpgradeCheck = 1020; 131 | ORGANIZATIONNAME = ""; 132 | TargetAttributes = { 133 | 97C146ED1CF9000F007C117D = { 134 | CreatedOnToolsVersion = 7.3.1; 135 | LastSwiftMigration = 1100; 136 | }; 137 | }; 138 | }; 139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 140 | compatibilityVersion = "Xcode 9.3"; 141 | developmentRegion = en; 142 | hasScannedForEncodings = 0; 143 | knownRegions = ( 144 | en, 145 | Base, 146 | ); 147 | mainGroup = 97C146E51CF9000F007C117D; 148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 149 | projectDirPath = ""; 150 | projectRoot = ""; 151 | targets = ( 152 | 97C146ED1CF9000F007C117D /* Runner */, 153 | ); 154 | }; 155 | /* End PBXProject section */ 156 | 157 | /* Begin PBXResourcesBuildPhase section */ 158 | 97C146EC1CF9000F007C117D /* Resources */ = { 159 | isa = PBXResourcesBuildPhase; 160 | buildActionMask = 2147483647; 161 | files = ( 162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 166 | ); 167 | runOnlyForDeploymentPostprocessing = 0; 168 | }; 169 | /* End PBXResourcesBuildPhase section */ 170 | 171 | /* Begin PBXShellScriptBuildPhase section */ 172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 173 | isa = PBXShellScriptBuildPhase; 174 | buildActionMask = 2147483647; 175 | files = ( 176 | ); 177 | inputPaths = ( 178 | ); 179 | name = "Thin Binary"; 180 | outputPaths = ( 181 | ); 182 | runOnlyForDeploymentPostprocessing = 0; 183 | shellPath = /bin/sh; 184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 185 | }; 186 | 9740EEB61CF901F6004384FC /* Run Script */ = { 187 | isa = PBXShellScriptBuildPhase; 188 | buildActionMask = 2147483647; 189 | files = ( 190 | ); 191 | inputPaths = ( 192 | ); 193 | name = "Run Script"; 194 | outputPaths = ( 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | shellPath = /bin/sh; 198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 199 | }; 200 | /* End PBXShellScriptBuildPhase section */ 201 | 202 | /* Begin PBXSourcesBuildPhase section */ 203 | 97C146EA1CF9000F007C117D /* Sources */ = { 204 | isa = PBXSourcesBuildPhase; 205 | buildActionMask = 2147483647; 206 | files = ( 207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 209 | ); 210 | runOnlyForDeploymentPostprocessing = 0; 211 | }; 212 | /* End PBXSourcesBuildPhase section */ 213 | 214 | /* Begin PBXVariantGroup section */ 215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 216 | isa = PBXVariantGroup; 217 | children = ( 218 | 97C146FB1CF9000F007C117D /* Base */, 219 | ); 220 | name = Main.storyboard; 221 | sourceTree = ""; 222 | }; 223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 224 | isa = PBXVariantGroup; 225 | children = ( 226 | 97C147001CF9000F007C117D /* Base */, 227 | ); 228 | name = LaunchScreen.storyboard; 229 | sourceTree = ""; 230 | }; 231 | /* End PBXVariantGroup section */ 232 | 233 | /* Begin XCBuildConfiguration section */ 234 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 235 | isa = XCBuildConfiguration; 236 | buildSettings = { 237 | ALWAYS_SEARCH_USER_PATHS = NO; 238 | CLANG_ANALYZER_NONNULL = YES; 239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 240 | CLANG_CXX_LIBRARY = "libc++"; 241 | CLANG_ENABLE_MODULES = YES; 242 | CLANG_ENABLE_OBJC_ARC = YES; 243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 244 | CLANG_WARN_BOOL_CONVERSION = YES; 245 | CLANG_WARN_COMMA = YES; 246 | CLANG_WARN_CONSTANT_CONVERSION = YES; 247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 249 | CLANG_WARN_EMPTY_BODY = YES; 250 | CLANG_WARN_ENUM_CONVERSION = YES; 251 | CLANG_WARN_INFINITE_RECURSION = YES; 252 | CLANG_WARN_INT_CONVERSION = YES; 253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 258 | CLANG_WARN_STRICT_PROTOTYPES = YES; 259 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 260 | CLANG_WARN_UNREACHABLE_CODE = YES; 261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 263 | COPY_PHASE_STRIP = NO; 264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 265 | ENABLE_NS_ASSERTIONS = NO; 266 | ENABLE_STRICT_OBJC_MSGSEND = YES; 267 | GCC_C_LANGUAGE_STANDARD = gnu99; 268 | GCC_NO_COMMON_BLOCKS = YES; 269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 271 | GCC_WARN_UNDECLARED_SELECTOR = YES; 272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 273 | GCC_WARN_UNUSED_FUNCTION = YES; 274 | GCC_WARN_UNUSED_VARIABLE = YES; 275 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 276 | MTL_ENABLE_DEBUG_INFO = NO; 277 | SDKROOT = iphoneos; 278 | SUPPORTED_PLATFORMS = iphoneos; 279 | TARGETED_DEVICE_FAMILY = "1,2"; 280 | VALIDATE_PRODUCT = YES; 281 | }; 282 | name = Profile; 283 | }; 284 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 285 | isa = XCBuildConfiguration; 286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 287 | buildSettings = { 288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 289 | CLANG_ENABLE_MODULES = YES; 290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 291 | ENABLE_BITCODE = NO; 292 | INFOPLIST_FILE = Runner/Info.plist; 293 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 294 | PRODUCT_BUNDLE_IDENTIFIER = com.example.qrcode; 295 | PRODUCT_NAME = "$(TARGET_NAME)"; 296 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 297 | SWIFT_VERSION = 5.0; 298 | VERSIONING_SYSTEM = "apple-generic"; 299 | }; 300 | name = Profile; 301 | }; 302 | 97C147031CF9000F007C117D /* Debug */ = { 303 | isa = XCBuildConfiguration; 304 | buildSettings = { 305 | ALWAYS_SEARCH_USER_PATHS = NO; 306 | CLANG_ANALYZER_NONNULL = YES; 307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 308 | CLANG_CXX_LIBRARY = "libc++"; 309 | CLANG_ENABLE_MODULES = YES; 310 | CLANG_ENABLE_OBJC_ARC = YES; 311 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 312 | CLANG_WARN_BOOL_CONVERSION = YES; 313 | CLANG_WARN_COMMA = YES; 314 | CLANG_WARN_CONSTANT_CONVERSION = YES; 315 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 317 | CLANG_WARN_EMPTY_BODY = YES; 318 | CLANG_WARN_ENUM_CONVERSION = YES; 319 | CLANG_WARN_INFINITE_RECURSION = YES; 320 | CLANG_WARN_INT_CONVERSION = YES; 321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 326 | CLANG_WARN_STRICT_PROTOTYPES = YES; 327 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 328 | CLANG_WARN_UNREACHABLE_CODE = YES; 329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 330 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 331 | COPY_PHASE_STRIP = NO; 332 | DEBUG_INFORMATION_FORMAT = dwarf; 333 | ENABLE_STRICT_OBJC_MSGSEND = YES; 334 | ENABLE_TESTABILITY = YES; 335 | GCC_C_LANGUAGE_STANDARD = gnu99; 336 | GCC_DYNAMIC_NO_PIC = NO; 337 | GCC_NO_COMMON_BLOCKS = YES; 338 | GCC_OPTIMIZATION_LEVEL = 0; 339 | GCC_PREPROCESSOR_DEFINITIONS = ( 340 | "DEBUG=1", 341 | "$(inherited)", 342 | ); 343 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 344 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 345 | GCC_WARN_UNDECLARED_SELECTOR = YES; 346 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 347 | GCC_WARN_UNUSED_FUNCTION = YES; 348 | GCC_WARN_UNUSED_VARIABLE = YES; 349 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 350 | MTL_ENABLE_DEBUG_INFO = YES; 351 | ONLY_ACTIVE_ARCH = YES; 352 | SDKROOT = iphoneos; 353 | TARGETED_DEVICE_FAMILY = "1,2"; 354 | }; 355 | name = Debug; 356 | }; 357 | 97C147041CF9000F007C117D /* Release */ = { 358 | isa = XCBuildConfiguration; 359 | buildSettings = { 360 | ALWAYS_SEARCH_USER_PATHS = NO; 361 | CLANG_ANALYZER_NONNULL = YES; 362 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 363 | CLANG_CXX_LIBRARY = "libc++"; 364 | CLANG_ENABLE_MODULES = YES; 365 | CLANG_ENABLE_OBJC_ARC = YES; 366 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 367 | CLANG_WARN_BOOL_CONVERSION = YES; 368 | CLANG_WARN_COMMA = YES; 369 | CLANG_WARN_CONSTANT_CONVERSION = YES; 370 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 371 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 372 | CLANG_WARN_EMPTY_BODY = YES; 373 | CLANG_WARN_ENUM_CONVERSION = YES; 374 | CLANG_WARN_INFINITE_RECURSION = YES; 375 | CLANG_WARN_INT_CONVERSION = YES; 376 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 377 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 378 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 379 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 380 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 381 | CLANG_WARN_STRICT_PROTOTYPES = YES; 382 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 383 | CLANG_WARN_UNREACHABLE_CODE = YES; 384 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 385 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 386 | COPY_PHASE_STRIP = NO; 387 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 388 | ENABLE_NS_ASSERTIONS = NO; 389 | ENABLE_STRICT_OBJC_MSGSEND = YES; 390 | GCC_C_LANGUAGE_STANDARD = gnu99; 391 | GCC_NO_COMMON_BLOCKS = YES; 392 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 393 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 394 | GCC_WARN_UNDECLARED_SELECTOR = YES; 395 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 396 | GCC_WARN_UNUSED_FUNCTION = YES; 397 | GCC_WARN_UNUSED_VARIABLE = YES; 398 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 399 | MTL_ENABLE_DEBUG_INFO = NO; 400 | SDKROOT = iphoneos; 401 | SUPPORTED_PLATFORMS = iphoneos; 402 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 403 | TARGETED_DEVICE_FAMILY = "1,2"; 404 | VALIDATE_PRODUCT = YES; 405 | }; 406 | name = Release; 407 | }; 408 | 97C147061CF9000F007C117D /* Debug */ = { 409 | isa = XCBuildConfiguration; 410 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 411 | buildSettings = { 412 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 413 | CLANG_ENABLE_MODULES = YES; 414 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 415 | ENABLE_BITCODE = NO; 416 | INFOPLIST_FILE = Runner/Info.plist; 417 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 418 | PRODUCT_BUNDLE_IDENTIFIER = com.example.qrcode; 419 | PRODUCT_NAME = "$(TARGET_NAME)"; 420 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 421 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 422 | SWIFT_VERSION = 5.0; 423 | VERSIONING_SYSTEM = "apple-generic"; 424 | }; 425 | name = Debug; 426 | }; 427 | 97C147071CF9000F007C117D /* Release */ = { 428 | isa = XCBuildConfiguration; 429 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 430 | buildSettings = { 431 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 432 | CLANG_ENABLE_MODULES = YES; 433 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 434 | ENABLE_BITCODE = NO; 435 | INFOPLIST_FILE = Runner/Info.plist; 436 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 437 | PRODUCT_BUNDLE_IDENTIFIER = com.example.qrcode; 438 | PRODUCT_NAME = "$(TARGET_NAME)"; 439 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 440 | SWIFT_VERSION = 5.0; 441 | VERSIONING_SYSTEM = "apple-generic"; 442 | }; 443 | name = Release; 444 | }; 445 | /* End XCBuildConfiguration section */ 446 | 447 | /* Begin XCConfigurationList section */ 448 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 449 | isa = XCConfigurationList; 450 | buildConfigurations = ( 451 | 97C147031CF9000F007C117D /* Debug */, 452 | 97C147041CF9000F007C117D /* Release */, 453 | 249021D3217E4FDB00AE95B9 /* Profile */, 454 | ); 455 | defaultConfigurationIsVisible = 0; 456 | defaultConfigurationName = Release; 457 | }; 458 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 459 | isa = XCConfigurationList; 460 | buildConfigurations = ( 461 | 97C147061CF9000F007C117D /* Debug */, 462 | 97C147071CF9000F007C117D /* Release */, 463 | 249021D4217E4FDB00AE95B9 /* Profile */, 464 | ); 465 | defaultConfigurationIsVisible = 0; 466 | defaultConfigurationName = Release; 467 | }; 468 | /* End XCConfigurationList section */ 469 | }; 470 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 471 | } 472 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chbilalramzan/flutterQRcode/f31c5eb3ad2e4f3037a1dd22c2b79bf4480f6b38/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chbilalramzan/flutterQRcode/f31c5eb3ad2e4f3037a1dd22c2b79bf4480f6b38/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chbilalramzan/flutterQRcode/f31c5eb3ad2e4f3037a1dd22c2b79bf4480f6b38/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chbilalramzan/flutterQRcode/f31c5eb3ad2e4f3037a1dd22c2b79bf4480f6b38/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chbilalramzan/flutterQRcode/f31c5eb3ad2e4f3037a1dd22c2b79bf4480f6b38/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chbilalramzan/flutterQRcode/f31c5eb3ad2e4f3037a1dd22c2b79bf4480f6b38/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chbilalramzan/flutterQRcode/f31c5eb3ad2e4f3037a1dd22c2b79bf4480f6b38/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chbilalramzan/flutterQRcode/f31c5eb3ad2e4f3037a1dd22c2b79bf4480f6b38/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chbilalramzan/flutterQRcode/f31c5eb3ad2e4f3037a1dd22c2b79bf4480f6b38/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chbilalramzan/flutterQRcode/f31c5eb3ad2e4f3037a1dd22c2b79bf4480f6b38/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chbilalramzan/flutterQRcode/f31c5eb3ad2e4f3037a1dd22c2b79bf4480f6b38/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chbilalramzan/flutterQRcode/f31c5eb3ad2e4f3037a1dd22c2b79bf4480f6b38/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chbilalramzan/flutterQRcode/f31c5eb3ad2e4f3037a1dd22c2b79bf4480f6b38/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chbilalramzan/flutterQRcode/f31c5eb3ad2e4f3037a1dd22c2b79bf4480f6b38/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chbilalramzan/flutterQRcode/f31c5eb3ad2e4f3037a1dd22c2b79bf4480f6b38/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chbilalramzan/flutterQRcode/f31c5eb3ad2e4f3037a1dd22c2b79bf4480f6b38/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chbilalramzan/flutterQRcode/f31c5eb3ad2e4f3037a1dd22c2b79bf4480f6b38/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chbilalramzan/flutterQRcode/f31c5eb3ad2e4f3037a1dd22c2b79bf4480f6b38/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | 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. -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | qrcode 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /lib/controllers/home_controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:qr_code_scanner/qr_code_scanner.dart'; 4 | import 'package:qrcode/model/user_info.dart'; 5 | import 'package:qrcode/services/api.dart'; 6 | import 'package:qrcode/styles/app_colors.dart'; 7 | import 'package:qrcode/widgets/customDialogs/signout_dialog.dart'; 8 | import 'package:qrcode/widgets/customDialogs/unverified_dialog.dart'; 9 | import 'package:qrcode/widgets/customDialogs/verification_dialog.dart'; 10 | import 'package:intl/intl.dart'; 11 | 12 | class HomeController extends GetxController { 13 | dynamic username; 14 | RxBool scanning = false.obs; 15 | QRViewController? qrViewController; 16 | RxList user = RxList(); 17 | RxBool isIdDefiend = true.obs; 18 | List formattedDate = []; 19 | List urls = ['loopexpo', 'vexpo']; 20 | 21 | void setQRUrl(Barcode? qrCodeResult, double height, double width) { 22 | var url = qrCodeResult!.code; 23 | if (url!.contains('loopexpo')) { 24 | Uri.parse(url).queryParameters.forEach((k, v) { 25 | if (k == "id") { 26 | Api().sendVerificationRequest(v).then((value) => { 27 | scanning.value = false, 28 | formattedDate.add( 29 | DateFormat('kk:mm:ss | EEE d MMM').format(DateTime.now())), 30 | user.add(value), 31 | verifiedDialog(height, width, value) 32 | }); 33 | } 34 | }); 35 | } else { 36 | rerset(); 37 | } 38 | 39 | update(); 40 | } 41 | 42 | void setQRViewController(QRViewController? controller) { 43 | qrViewController = controller; 44 | update(); 45 | } 46 | 47 | void setScanning(dynamic value) { 48 | scanning.value = value; 49 | } 50 | 51 | void resetUserList() { 52 | user.clear(); 53 | } 54 | 55 | Future signOutDialog(double height, double width) async { 56 | await Get.dialog(SignOutDialog(height: height, width: width)); 57 | } 58 | 59 | Future unVerifiedDialog(double height, double width) async { 60 | await Get.dialog( 61 | UnverifiedDialog(height: height, width: width), 62 | barrierDismissible: false, 63 | ); 64 | } 65 | 66 | Future verifiedDialog( 67 | double height, double width, UserInfo user) async { 68 | await Get.dialog( 69 | VerificationDialog(height: height, width: width, user: user), barrierDismissible: false); 70 | } 71 | 72 | void ineternetFailedToast(BuildContext context) { 73 | Get.snackbar('Disconnected', "Internet disconnected", 74 | snackPosition: SnackPosition.BOTTOM, 75 | duration:const Duration(seconds: 5), 76 | backgroundColor: Colors.red, 77 | margin: const EdgeInsets.all(16), 78 | isDismissible: true, 79 | colorText: Colors.white, 80 | maxWidth: MediaQuery.of(context).size.width * 0.4); 81 | } 82 | 83 | void internetSuccessToast(BuildContext context) { 84 | Get.snackbar('Connected', "Intenet connected", 85 | snackPosition: SnackPosition.BOTTOM, 86 | backgroundColor: AppColors.primaryColor, 87 | margin: const EdgeInsets.all(16), 88 | isDismissible: true, 89 | colorText: Colors.white, 90 | maxWidth: MediaQuery.of(context).size.width * 0.35); 91 | } 92 | 93 | 94 | void rerset() { 95 | scanning.value = false; 96 | unVerifiedDialog(860, 1440); 97 | } 98 | 99 | void back() { 100 | Get.back(); 101 | qrViewController?.resumeCamera(); 102 | } 103 | 104 | 105 | 106 | } 107 | -------------------------------------------------------------------------------- /lib/controllers/login_controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:qrcode/helper/shared_preferences.dart'; 4 | import 'package:qrcode/model/user.dart'; 5 | import 'package:qrcode/services/api.dart'; 6 | import 'package:qrcode/styles/app_colors.dart'; 7 | import 'package:connectivity/connectivity.dart'; 8 | 9 | class LogInController extends GetxController { 10 | final TextEditingController usernameControlleer = TextEditingController(); 11 | final TextEditingController passwordController = TextEditingController(); 12 | 13 | String get username => usernameControlleer.text.trim(); 14 | String get password => passwordController.text.trim(); 15 | 16 | final obsecureText = true.obs; 17 | 18 | final Api api = Api(); 19 | late List users; 20 | dynamic result; 21 | 22 | void login(BuildContext context) { 23 | api.login().then((value) => { 24 | users = value, 25 | result = users 26 | .where((user) => 27 | user.username == username && user.password == password) 28 | .isEmpty, 29 | if (result) {authFailed(context)} else {authSuccess(context)} 30 | }); 31 | } 32 | 33 | void authFailed(BuildContext context) { 34 | Get.snackbar('Failed', "Password or Email is wrong", 35 | snackPosition: SnackPosition.BOTTOM, 36 | backgroundColor: Colors.red, 37 | margin: const EdgeInsets.all(16), 38 | isDismissible: true, 39 | colorText: Colors.white, 40 | maxWidth: MediaQuery.of(context).size.width * 0.4); 41 | } 42 | 43 | void authSuccess(BuildContext context) { 44 | SharedPreferenceHelper.saveUserLoggedInSharedPreference(true); 45 | Get.snackbar('Success', "Sign in Sccessfully", 46 | snackPosition: SnackPosition.BOTTOM, 47 | backgroundColor: AppColors.primaryColor, 48 | margin: const EdgeInsets.all(16), 49 | isDismissible: true, 50 | colorText: Colors.white, 51 | maxWidth: MediaQuery.of(context).size.width * 0.35); 52 | Get.offNamed('/home'); 53 | } 54 | 55 | void setObsecureText(bool value) { 56 | obsecureText.value = value; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /lib/helper/shared_preferences.dart: -------------------------------------------------------------------------------- 1 | import 'package:shared_preferences/shared_preferences.dart'; 2 | 3 | class SharedPreferenceHelper { 4 | static String sharedPreferenceUserLoggedInKey = "ISLOGGEDIN"; 5 | 6 | /// saving data to sharedpreference 7 | static Future saveUserLoggedInSharedPreference( 8 | bool isUserLoggedIn) async { 9 | SharedPreferences preferences = await SharedPreferences.getInstance(); 10 | return await preferences.setBool( 11 | sharedPreferenceUserLoggedInKey, isUserLoggedIn); 12 | } 13 | 14 | /// fetching data from sharedpreference 15 | static Future getUserLoggedInSharedPreference() async { 16 | SharedPreferences preferences = await SharedPreferences.getInstance(); 17 | return preferences.getBool(sharedPreferenceUserLoggedInKey); 18 | } 19 | 20 | static Future clearSharedPreferenceOnLogOut() async { 21 | SharedPreferences preferences = await SharedPreferences.getInstance(); 22 | await preferences.clear(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:qrcode/screens/home_screen.dart'; 3 | import 'package:qrcode/screens/initialization_screen.dart'; 4 | import 'package:qrcode/screens/login_screen.dart'; 5 | import 'package:get/get.dart'; 6 | void main() { 7 | runApp(const MyApp()); 8 | } 9 | 10 | class MyApp extends StatelessWidget { 11 | const MyApp({Key? key}) : super(key: key); 12 | 13 | @override 14 | Widget build(BuildContext context) { 15 | return GetMaterialApp( 16 | title: 'VExpo QR', 17 | debugShowCheckedModeBanner: false, 18 | theme: ThemeData( 19 | primarySwatch: Colors.blue, 20 | ), 21 | getPages: [ 22 | GetPage(name: '/init', page: () => InitializationScreen()), 23 | GetPage(name: '/login', page: () => const LogInScreen()), 24 | GetPage(name: '/home', page: () => const HomeScreen()), 25 | ], 26 | initialRoute: '/init', 27 | ); 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /lib/model/meta_data.dart: -------------------------------------------------------------------------------- 1 | class MetaData { 2 | String status; 3 | int responseCode; 4 | int numberOfRecords; 5 | String message; 6 | List errors; 7 | 8 | MetaData({ 9 | required this.status, 10 | required this.responseCode, 11 | required this.numberOfRecords, 12 | required this.message, 13 | required this.errors, 14 | }); 15 | 16 | MetaData copyWith({ 17 | required String status, 18 | required int responseCode, 19 | required int numberOfRecords, 20 | required String message, 21 | required List errors, 22 | }) => 23 | MetaData( 24 | status: this.status, 25 | errors: [], 26 | message: '', 27 | numberOfRecords: this.numberOfRecords, 28 | responseCode: this.responseCode, 29 | ); 30 | 31 | factory MetaData.fromJson(Map json) => MetaData( 32 | status: json['status'], 33 | responseCode: json['response_code'], 34 | numberOfRecords: json['num_of_records'], 35 | message: json['message'], 36 | errors: json['errors']); 37 | 38 | Map toJson() => { 39 | "status": status, 40 | "response_code": responseCode, 41 | "numberOfRecords": numberOfRecords, 42 | "message": message, 43 | "errors": errors 44 | }; 45 | } 46 | -------------------------------------------------------------------------------- /lib/model/user.dart: -------------------------------------------------------------------------------- 1 | 2 | class User { 3 | int id; 4 | String username; 5 | String password; 6 | 7 | User( 8 | {required this.id, 9 | required this.username, 10 | required this.password 11 | }); 12 | 13 | User copyWith( 14 | int id, 15 | String username, 16 | String password, 17 | ) => 18 | User( 19 | id: this.id, 20 | username: '', 21 | password: '', 22 | ); 23 | 24 | factory User.fromJson(Map json) => User( 25 | id: json['id'], 26 | username: json['username'], 27 | password: json['password'], 28 | ); 29 | 30 | Map toJson() => { 31 | 'id': id, 32 | 'username': username, 33 | 'password': password, 34 | }; 35 | } 36 | -------------------------------------------------------------------------------- /lib/model/user_info.dart: -------------------------------------------------------------------------------- 1 | import 'package:qrcode/model/user_role.dart'; 2 | 3 | class UserInfo { 4 | int id; 5 | String fname; 6 | String lname; 7 | String username; 8 | String email; 9 | String image; 10 | int roleId; 11 | UserRole userRole; 12 | 13 | UserInfo( 14 | {required this.id, 15 | required this.fname, 16 | required this.lname, 17 | required this.username, 18 | required this.email, 19 | required this.image, 20 | required this.roleId, 21 | required this.userRole 22 | }); 23 | 24 | UserInfo copyWith( 25 | int id, 26 | String fname, 27 | String lname, 28 | String username, 29 | String email, 30 | String image, 31 | int roleId, 32 | UserRole userRole 33 | ) => 34 | UserInfo( 35 | id: this.id, 36 | fname: '', 37 | lname: '', 38 | username: '', 39 | email: '', 40 | image: '', 41 | roleId: this.roleId, 42 | userRole: this.userRole 43 | ); 44 | 45 | factory UserInfo.fromJson(Map json) => UserInfo( 46 | id: json['id'], 47 | fname: json['fname'], 48 | lname: json['lname'], 49 | username: json['username'], 50 | email: json['email'], 51 | image: json['image'], 52 | roleId: json['role_id'], 53 | userRole: UserRole.fromJson(json['user_roles']) 54 | ); 55 | 56 | Map toJson() => { 57 | 'id': id, 58 | 'fname': fname, 59 | 'lname': lname, 60 | 'username': username, 61 | 'email': email, 62 | 'image': image, 63 | 'role_id': roleId, 64 | 'user_roles': UserRole 65 | }; 66 | } 67 | -------------------------------------------------------------------------------- /lib/model/user_role.dart: -------------------------------------------------------------------------------- 1 | class UserRole { 2 | int id; 3 | String name; 4 | String slug; 5 | int status; 6 | 7 | UserRole( 8 | {required this.id, 9 | required this.name, 10 | required this.slug, 11 | required this.status}); 12 | 13 | UserRole copyWith( 14 | int id, 15 | String name, 16 | String slug, 17 | int status 18 | ) => 19 | UserRole( 20 | id: this.id, 21 | name: '', 22 | slug: '', 23 | status: this.status, 24 | ); 25 | 26 | factory UserRole.fromJson(Map json) => UserRole( 27 | id: json['id'], 28 | name: json['name'], 29 | slug: json['slug'], 30 | status: json['status']); 31 | 32 | Map toJson() => { 33 | 'id': id, 34 | 'name': name, 35 | 'slug': slug, 36 | 'status': status, 37 | }; 38 | } 39 | -------------------------------------------------------------------------------- /lib/screens/home_screen.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:flutter/cupertino.dart'; 4 | import 'package:flutter/material.dart'; 5 | import 'package:flutter/services.dart'; 6 | import 'package:qrcode/controllers/home_controller.dart'; 7 | import 'package:qrcode/screens/qr_scanner.dart'; 8 | import 'package:qrcode/styles/app_colors.dart'; 9 | import 'package:qrcode/styles/app_styletext.dart'; 10 | import 'package:qrcode/utils/constants/size_constants.dart'; 11 | import 'package:qrcode/widgets/custom_button.dart'; 12 | import 'package:qrcode/widgets/user_tile.dart'; 13 | import 'package:get/get.dart'; 14 | import 'package:connectivity/connectivity.dart'; 15 | 16 | class HomeScreen extends StatefulWidget { 17 | const HomeScreen({Key? key}) : super(key: key); 18 | 19 | @override 20 | _HomeScreenState createState() => _HomeScreenState(); 21 | } 22 | 23 | class _HomeScreenState extends State with TickerProviderStateMixin { 24 | final homeControllerPut = Get.put(HomeController()); 25 | String connectionStatus = 'Unknown'; 26 | final Connectivity connectivity = Connectivity(); 27 | late StreamSubscription connectivitySubscription; 28 | 29 | @override 30 | void initState() { 31 | super.initState(); 32 | initConnectivity(); 33 | connectivitySubscription = 34 | connectivity.onConnectivityChanged.listen(_updateConnectionStatus); 35 | } 36 | 37 | @override 38 | Widget build(BuildContext context) { 39 | var width = MediaQuery.of(context).size.width; 40 | var height = MediaQuery.of(context).size.height; 41 | return SafeArea( 42 | child: Stack( 43 | children: [ 44 | Scaffold( 45 | backgroundColor: AppColors.scaffoldBackgroundColor, 46 | body: Row( 47 | children: [ 48 | const QRCodeScanner(), 49 | SizedBox( 50 | height: height, 51 | width: width * 0.7, 52 | child: Column( 53 | children: [ 54 | Padding( 55 | padding: const EdgeInsets.all(Sizes.dimen_24), 56 | child: Row( 57 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 58 | children: [ 59 | Obx(() => homeControllerPut.user.isEmpty 60 | ? const Text( 61 | "No user checked in yet", 62 | style: AppStyleText.infoDetailR16S, 63 | ) 64 | : RichText( 65 | text: TextSpan( 66 | text: "Users recently checked in: ", 67 | style: AppStyleText.infoDetailR16S, 68 | children: [ 69 | TextSpan( 70 | text: 71 | "${homeControllerPut.user.length}", 72 | style: AppStyleText.infoDetailR16D7, 73 | ) 74 | ]))), 75 | CustomRaisedBtn( 76 | borderRadius: Sizes.dimen_12, 77 | onPressed: () { 78 | homeControllerPut.signOutDialog( 79 | height, width); 80 | }, 81 | child: const Padding( 82 | padding: EdgeInsets.symmetric( 83 | horizontal: Sizes.dimen_16), 84 | child: Text( 85 | 'LogOut', 86 | style: AppStyleText.largeTitleM18W, 87 | ), 88 | ), 89 | color: AppColors.buttonColor2, 90 | width: 100, 91 | height: Sizes.dimen_32), 92 | ], 93 | ), 94 | ), 95 | Obx( 96 | () => Expanded( 97 | child: homeControllerPut.user.isEmpty 98 | ? Align( 99 | alignment: Alignment.center, 100 | child: Column( 101 | children: const [ 102 | Icon( 103 | Icons.list_rounded, 104 | color: AppColors.secondaryIconColor, 105 | size: 80, 106 | ), 107 | Text( 108 | 'Start scanning QR to show recent users list...', 109 | style: AppStyleText.largeTitleR28, 110 | ) 111 | ], 112 | ), 113 | ) 114 | : ListView.builder( 115 | itemCount: homeControllerPut.user.length, 116 | scrollDirection: Axis.vertical, 117 | itemBuilder: 118 | (BuildContext context, int index) { 119 | return UserTile( 120 | width: width, 121 | user: homeControllerPut.user[index], 122 | formattedDate: homeControllerPut 123 | .formattedDate[index]); 124 | })), 125 | ) 126 | ], 127 | )), 128 | ], 129 | ), 130 | ), 131 | Obx(() => Center( 132 | child: homeControllerPut.scanning.isTrue 133 | ? Container( 134 | width: width * 0.25, 135 | height: height * 0.25, 136 | alignment: Alignment.center, 137 | decoration: BoxDecoration( 138 | color: AppColors.white, 139 | borderRadius: BorderRadius.circular(Sizes.dimen_16), 140 | boxShadow: [ 141 | BoxShadow( 142 | color: Colors.grey.withOpacity(0.15), 143 | spreadRadius: 5, 144 | blurRadius: 3, 145 | offset: const Offset(0, 3), 146 | ), 147 | ], 148 | ), 149 | child: Column( 150 | mainAxisAlignment: MainAxisAlignment.center, 151 | children: const [ 152 | Text( 153 | 'Scanning!', 154 | style: TextStyle( 155 | fontSize: 24, 156 | color: AppColors.subTitleTextColor, 157 | decoration: TextDecoration.none), 158 | ), 159 | SizedBox(height: 16), 160 | CupertinoActivityIndicator(), 161 | SizedBox( 162 | height: 24, 163 | ), 164 | Text( 165 | 'Please wait', 166 | style: TextStyle( 167 | fontSize: 16, 168 | color: AppColors.subTitleTextColor, 169 | decoration: TextDecoration.none), 170 | ) 171 | ], 172 | ), 173 | ) 174 | : const SizedBox())), 175 | ], 176 | ), 177 | ); 178 | } 179 | 180 | // Platform messages are asynchronous, so we initialize in an async method. 181 | Future initConnectivity() async { 182 | ConnectivityResult result = ConnectivityResult.none; 183 | try { 184 | result = await connectivity.checkConnectivity(); 185 | } on PlatformException catch (e) { 186 | print(e.toString()); 187 | } 188 | if (!mounted) { 189 | return Future.value(null); 190 | } 191 | 192 | return _updateConnectionStatus(result); 193 | } 194 | 195 | Future _updateConnectionStatus(ConnectivityResult result) async { 196 | switch (result) { 197 | case ConnectivityResult.wifi: 198 | homeControllerPut.internetSuccessToast(context); 199 | break; 200 | case ConnectivityResult.mobile: 201 | homeControllerPut.internetSuccessToast(context); 202 | break; 203 | default: 204 | homeControllerPut.ineternetFailedToast(context); 205 | break; 206 | } 207 | } 208 | } 209 | -------------------------------------------------------------------------------- /lib/screens/initialization_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:qrcode/helper/shared_preferences.dart'; 3 | import 'package:get/get.dart'; 4 | import 'package:qrcode/styles/app_colors.dart'; 5 | 6 | class InitializationScreen extends StatefulWidget { 7 | const InitializationScreen({Key? key}) : super(key: key); 8 | 9 | @override 10 | _InitializationScreenState createState() => _InitializationScreenState(); 11 | } 12 | 13 | class _InitializationScreenState extends State { 14 | bool isLoggedIn = false; 15 | 16 | @override 17 | void initState() { 18 | SharedPreferenceHelper.getUserLoggedInSharedPreference() 19 | .then((value) => value == null || value == false 20 | ? Get.offNamed("/login") 21 | : Get.offNamed("/home")); 22 | 23 | super.initState(); 24 | } 25 | 26 | @override 27 | Widget build(BuildContext context) { 28 | return const Scaffold( 29 | backgroundColor: AppColors.scaffoldBackgroundColor, 30 | ); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /lib/screens/login_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:qrcode/controllers/login_controller.dart'; 3 | import 'package:qrcode/styles/app_colors.dart'; 4 | import 'package:qrcode/styles/app_styletext.dart'; 5 | import 'package:qrcode/utils/constants/size_constants.dart'; 6 | import 'package:qrcode/widgets/custom_button.dart'; 7 | import 'package:qrcode/widgets/k_inputfield.dart'; 8 | import 'package:get/get.dart'; 9 | 10 | class LogInScreen extends StatefulWidget { 11 | const LogInScreen({Key? key}) : super(key: key); 12 | 13 | @override 14 | _LogInScreenState createState() => _LogInScreenState(); 15 | } 16 | 17 | class _LogInScreenState extends State { 18 | final loginController = Get.put(LogInController()); 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | var width = MediaQuery.of(context).size.width; 23 | var height = MediaQuery.of(context).size.height; 24 | 25 | return SafeArea( 26 | child: GestureDetector( 27 | onTap: () => FocusScope.of(context).unfocus(), 28 | child: Scaffold( 29 | body: Container( 30 | decoration: const BoxDecoration( 31 | image: DecorationImage( 32 | image: AssetImage("assets/images/qrtabbg.png"), 33 | fit: BoxFit.cover, 34 | )), 35 | child: Center( 36 | child: SingleChildScrollView( 37 | child: Column( 38 | mainAxisAlignment: MainAxisAlignment.center, 39 | crossAxisAlignment: CrossAxisAlignment.center, 40 | children: [ 41 | SizedBox( 42 | height: height * 0.28, 43 | width: width * 0.35, 44 | child: Image.asset( 45 | 'assets/images/logo.png', 46 | fit: BoxFit.fitWidth, 47 | ), 48 | ), 49 | Padding( 50 | padding: const EdgeInsets.only( 51 | top: Sizes.dimen_40, bottom: Sizes.dimen_42), 52 | child: Column( 53 | children: [ 54 | KInputField( 55 | width: width * 0.25, 56 | hintText: "User Name", 57 | prefixIcon: const SizedBox(), 58 | suffixIcon: const SizedBox(), 59 | textInputType: TextInputType.text, 60 | controller: loginController.usernameControlleer, 61 | hintTextStyle: AppStyleText.infoDetailM16S5, 62 | textStyle: AppStyleText.infoDetailM16P5, 63 | suffixText: ''), 64 | const SizedBox(height: 22), 65 | Obx(() => KInputField( 66 | width: width * 0.25, 67 | hintText: "Password", 68 | obscureText: loginController.obsecureText.value, 69 | prefixIcon: const SizedBox(), 70 | suffixIcon: GestureDetector( 71 | onTap: () { 72 | loginController.obsecureText.value 73 | ? loginController.setObsecureText(false) 74 | : loginController.setObsecureText(true); 75 | }, 76 | child: Icon( 77 | loginController.obsecureText.value ? Icons.remove_red_eye : Icons.remove_red_eye_outlined , 78 | size: Sizes.dimen_24, 79 | ), 80 | ), 81 | textInputType: TextInputType.text, 82 | controller: loginController.passwordController, 83 | hintTextStyle: AppStyleText.infoDetailM16S5, 84 | textStyle: AppStyleText.infoDetailM16P5, 85 | suffixText: '')), 86 | ], 87 | ), 88 | ), 89 | Padding( 90 | padding: const EdgeInsets.only( 91 | top: Sizes.dimen_42, bottom: Sizes.dimen_22), 92 | child: CustomRaisedBtn( 93 | onPressed: () { 94 | sigIn(context); 95 | }, 96 | borderRadius: Sizes.dimen_18, 97 | width: width * 0.25, 98 | height: Sizes.dimen_56, 99 | child: const Text( 100 | 'Sign In', 101 | style: AppStyleText.buttonSM20W5, 102 | ), 103 | color: AppColors.butttoColor), 104 | ), 105 | const Text( 106 | 'VEXPO QR Scanner', 107 | style: AppStyleText.buttonSM20S5, 108 | ) 109 | ], 110 | ), 111 | ), 112 | ), 113 | ), 114 | ), 115 | ), 116 | ); 117 | } 118 | 119 | void sigIn(BuildContext context) { 120 | if (loginController.username == "" || loginController.password == "") { 121 | Get.snackbar('Error', "Password or Email is missing", 122 | snackPosition: SnackPosition.BOTTOM, 123 | backgroundColor: AppColors.butttoColor, 124 | margin: const EdgeInsets.all(15), 125 | isDismissible: true, 126 | colorText: Colors.white, 127 | maxWidth: MediaQuery.of(context).size.width * 0.4); 128 | } else { 129 | loginController.login(context); 130 | } 131 | } 132 | } 133 | -------------------------------------------------------------------------------- /lib/screens/qr_scanner.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | import 'package:flutter/foundation.dart'; 4 | import 'package:flutter/material.dart'; 5 | import 'package:qr_code_scanner/qr_code_scanner.dart'; 6 | import 'package:get/get.dart'; 7 | import 'package:qrcode/controllers/home_controller.dart'; 8 | 9 | class QRCodeScanner extends StatefulWidget { 10 | const QRCodeScanner({Key? key}) : super(key: key); 11 | 12 | @override 13 | _QRCodeScannerState createState() => _QRCodeScannerState(); 14 | } 15 | 16 | class _QRCodeScannerState extends State { 17 | final GlobalKey qrKey = GlobalKey(debugLabel: 'QR'); 18 | Barcode? result; 19 | QRViewController? controller; 20 | final homeController = Get.find(); 21 | late final double height, width; 22 | 23 | @override 24 | void initState() { 25 | super.initState(); 26 | } 27 | 28 | @override 29 | void reassemble() { 30 | super.reassemble(); 31 | if (Platform.isAndroid) { 32 | controller!.pauseCamera(); 33 | } 34 | controller!.resumeCamera(); 35 | } 36 | 37 | @override 38 | Widget build(BuildContext context) { 39 | height = MediaQuery.of(context).size.height; 40 | width = MediaQuery.of(context).size.width; 41 | var scanArea = (width < 400 || height < 400) ? 150.0 : 300.0; 42 | return SizedBox( 43 | height: height, 44 | width: width * 0.3, 45 | child: QRView( 46 | key: qrKey, 47 | onQRViewCreated: 48 | homeController.scanning.isTrue ? _doNothing : _onQrCodeReading, 49 | cameraFacing: CameraFacing.back, 50 | overlay: QrScannerOverlayShape( 51 | borderColor: Colors.red, 52 | borderRadius: 10, 53 | borderLength: 30, 54 | borderWidth: 10, 55 | cutOutSize: scanArea), 56 | onPermissionSet: (ctrl, p) => _onPermissionSet(context, ctrl, p), 57 | )); 58 | } 59 | 60 | void _onQrCodeReading(QRViewController controller) { 61 | this.controller = controller; 62 | controller.scannedDataStream.listen((scanData) { 63 | controller.pauseCamera(); 64 | homeController.setQRViewController(controller); 65 | homeController.setScanning(true); 66 | homeController.setQRUrl( 67 | scanData, height, width 68 | ); 69 | }); 70 | } 71 | 72 | void _doNothing(QRViewController controller) { 73 | print('stopped'); 74 | } 75 | 76 | @override 77 | void dispose() { 78 | super.dispose(); 79 | controller?.dispose(); 80 | } 81 | 82 | _onPermissionSet(BuildContext context, QRViewController ctrl, bool p) { 83 | if (!p) { 84 | ScaffoldMessenger.of(context).showSnackBar( 85 | const SnackBar(content: Text('no Permission')), 86 | ); 87 | } 88 | } 89 | } 90 | -------------------------------------------------------------------------------- /lib/services/api.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | import 'package:flutter/services.dart'; 4 | import 'package:get/get.dart'; 5 | import 'package:qrcode/controllers/home_controller.dart'; 6 | import 'package:qrcode/model/user.dart'; 7 | import 'package:http/http.dart' as http; 8 | import 'package:qrcode/model/user_info.dart'; 9 | import 'package:qrcode/services/exception.dart'; 10 | import 'package:qrcode/utils/constants/api_paths.dart'; 11 | 12 | class Api { 13 | final homeController = Get.put(HomeController()); 14 | final httpClient = http.Client(); 15 | 16 | Future> login() async { 17 | final String response = await rootBundle.loadString('assets/user.json'); 18 | final data = await json.decode(response); 19 | return data['users'].map((user) => User.fromJson(user)).toList(); 20 | } 21 | 22 | Future sendVerificationRequest(String userId) async { 23 | final _response = await httpClient.post( 24 | Uri.parse(ApiPath.verifyUser), 25 | headers: {"Content-Type": "application/json"}, 26 | body: jsonEncode({'user_id': userId}), 27 | ); 28 | final _decoded = jsonDecode(_response.body); 29 | if (_response.statusCode == 200) { 30 | if (_decoded["_metadata"]['status'] == "SUCCESS") { 31 | return UserInfo.fromJson(_decoded['records']); 32 | }else{ 33 | homeController.rerset(); 34 | return UserInfo.fromJson(_decoded['records']); 35 | } 36 | } else { 37 | homeController.rerset(); 38 | throw AppException(msg: _decoded['message']); 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /lib/services/exception.dart: -------------------------------------------------------------------------------- 1 | class AppException implements Exception { 2 | final String msg; 3 | 4 | AppException({this.msg = 'Somethings went wrong.'}); 5 | } 6 | -------------------------------------------------------------------------------- /lib/styles/app_colors.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class AppColors { 4 | static const primaryColor = Color(0xff41AF64); 5 | static const primaryText = Color(0xff424242); 6 | static const mainBlue = Color(0xff31384A); 7 | static const mainGrey = Color(0xff677294); 8 | static const textLightGrey = Color(0xff9AA0A9); 9 | static const textLightGreyTransparent = Color(0xffA2A8B2); 10 | static const backgroundColor = Color(0xffF9FAFD); 11 | static const white = Color(0xffFFFFFF); 12 | static const butttoColor = Color(0xffdf9732); 13 | static const buttonColor2 = Color(0xff2f80ed); 14 | 15 | static const titleTextColor = Color(0xff2F334A); 16 | static const bigSubTitleTextColor = Color(0xff2F334A); 17 | static const subTitleTextColor = Color(0xff8C929B); 18 | static const borderColor = Color(0xffECF0FB); 19 | static const iconColor = Color(0xff838EAE); 20 | static const greyColor = Color(0xff333F52); 21 | 22 | static const iconColorDark = Color(0xff445260); 23 | static const backgroundSearch = Color(0xffffffff); 24 | 25 | static const textBtnColor = Color(0xff41AF64); 26 | static const textTileColor = Color(0xffB0B7CC); 27 | static const scaffoldBackgroundColor = Color(0xffF2F2F2); 28 | 29 | static const dialogBoxColor = Color(0xff033142); 30 | static const secondaryTextColor = Color(0xff7E8389); 31 | static const secondaryIconColor = Color(0xff7E8389); 32 | static const darkText = Color(0xff1A1A1A); 33 | } 34 | -------------------------------------------------------------------------------- /lib/styles/app_styletext.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:qrcode/styles/app_colors.dart'; 3 | 4 | class AppStyleText { 5 | static const largeTitleR28 = TextStyle( 6 | fontSize: 28, 7 | fontWeight: FontWeight.w400, 8 | color: AppColors.secondaryTextColor); 9 | 10 | //M18 with different Colors and weight 11 | 12 | static const largeTitleM18W = TextStyle( 13 | fontSize: 18, 14 | fontWeight: FontWeight.w500, 15 | letterSpacing: 0.1, 16 | color: AppColors.white); 17 | 18 | static const largeTitleM18P = TextStyle( 19 | fontSize: 18, 20 | fontWeight: FontWeight.w500, 21 | letterSpacing: 0.1, 22 | color: AppColors.primaryText); 23 | 24 | //R16 with different Colors and weight 25 | 26 | static const infoDetailR16S = TextStyle( 27 | fontSize: 16, 28 | fontWeight: FontWeight.w400, 29 | letterSpacing: 0.3, 30 | color: AppColors.secondaryTextColor); 31 | 32 | static const infoDetailR16D4 = TextStyle( 33 | fontSize: 16, 34 | fontWeight: FontWeight.w400, 35 | letterSpacing: 0.3, 36 | color: AppColors.darkText); 37 | 38 | static const infoDetailR16D7 = TextStyle( 39 | fontSize: 16, 40 | fontWeight: FontWeight.w700, 41 | letterSpacing: 0.3, 42 | color: AppColors.darkText); 43 | 44 | static const infoDetailR16W4 = TextStyle( 45 | fontSize: 16, 46 | fontWeight: FontWeight.w400, 47 | letterSpacing: 0.3, 48 | color: AppColors.white); 49 | 50 | //M16 with different Colors and weight 51 | 52 | static const infoDetailM16S5 = TextStyle( 53 | fontSize: 16, 54 | fontWeight: FontWeight.w500, 55 | letterSpacing: 0.3, 56 | color: AppColors.secondaryTextColor); 57 | 58 | static const infoDetailM16P5 = TextStyle( 59 | fontSize: 16, 60 | fontWeight: FontWeight.w500, 61 | letterSpacing: 0.3, 62 | color: AppColors.primaryText); 63 | 64 | //Buttons with different colors and weight 65 | static const buttonSM20W5 = TextStyle( 66 | fontSize: 20, 67 | fontWeight: FontWeight.w500, 68 | letterSpacing: 0.3, 69 | color: AppColors.white); 70 | 71 | static const buttonSM20S5 = TextStyle( 72 | fontSize: 20, 73 | fontWeight: FontWeight.w500, 74 | letterSpacing: 0.3, 75 | color: AppColors.secondaryTextColor); 76 | } 77 | -------------------------------------------------------------------------------- /lib/utils/constants/api_paths.dart: -------------------------------------------------------------------------------- 1 | class ApiPath{ 2 | static String get verifyUser => '/api/user/checkin/save'; 3 | } 4 | -------------------------------------------------------------------------------- /lib/utils/constants/size_constants.dart: -------------------------------------------------------------------------------- 1 | class Sizes { 2 | Sizes._(); 3 | 4 | static const double dimen_0 = 0; 5 | static const double dimen_1 = 1; 6 | static const double dimen_1_5 = 1.5; 7 | static const double dimen_2 = 2; 8 | static const double dimen_3 = 3; 9 | static const double dimen_4 = 4; 10 | static const double dimen_6 = 6; 11 | static const double dimen_7 = 7; 12 | 13 | static const double dimen_8 = 8; 14 | static const double dimen_10 = 10; 15 | static const double dimen_11 = 11; 16 | 17 | static const double dimen_12 = 12; 18 | static const double dimen_13 = 13; 19 | static const double dimen_14 = 14; 20 | static const double dimen_15 = 15; 21 | 22 | static const double dimen_16 = 16; 23 | static const double dimen_17 = 17; 24 | 25 | static const double dimen_18 = 18; 26 | static const double dimen_20 = 20; 27 | static const double dimen_21 = 21; 28 | 29 | static const double dimen_22 = 22; 30 | 31 | static const double dimen_24 = 24; 32 | static const double dimen_25 = 25; 33 | 34 | static const double dimen_26 = 26; 35 | 36 | static const double dimen_28 = 28; 37 | 38 | static const double dimen_29 = 29; 39 | static const double dimen_32 = 32; 40 | static const double dimen_33 = 33; 41 | static const double dimen_30 = 30; 42 | static const double dimen_35 = 35; 43 | 44 | static const double dimen_40 = 40; 45 | static const double dimen_42 = 42; 46 | static const double dimen_44 = 44; 47 | static const double dimen_48 = 48; 48 | 49 | static const double dimen_50 = 50; 50 | static const double dimen_54 = 54; 51 | static const double dimen_55 = 55; 52 | static const double dimen_56 = 56; 53 | 54 | static const double dimen_60 = 60; 55 | 56 | static const double dimen_80 = 80; 57 | static const double dimen_87 = 87; 58 | 59 | static const double dimen_100 = 100; 60 | static const double dimen_110 = 110; 61 | static const double dimen_120 = 120; 62 | 63 | static const double dimen_125 = 125; 64 | 65 | static const double dimen_140 = 140; 66 | static const double dimen_147 = 147; 67 | 68 | static const double dimen_149 = 149; 69 | 70 | static const double dimen_150 = 150; 71 | static const double dimen_157 = 157; 72 | 73 | static const double dimen_167 = 167; 74 | 75 | static const double dimen_200 = 200; 76 | static const double dimen_214 = 214; 77 | 78 | static const double dimen_230 = 230; 79 | static const double dimen_300 = 300; 80 | } 81 | -------------------------------------------------------------------------------- /lib/widgets/customDialogs/signout_dialog.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:qrcode/helper/shared_preferences.dart'; 3 | import 'package:qrcode/styles/app_colors.dart'; 4 | import 'package:qrcode/styles/app_styletext.dart'; 5 | import 'package:qrcode/utils/constants/size_constants.dart'; 6 | import 'package:qrcode/widgets/custom_button.dart'; 7 | import 'package:get/get.dart'; 8 | 9 | class SignOutDialog extends StatelessWidget { 10 | final double height; 11 | final double width; 12 | const SignOutDialog({Key? key, required this.height, required this.width}) 13 | : super(key: key); 14 | 15 | @override 16 | Widget build(BuildContext context) { 17 | return Dialog( 18 | shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)), 19 | elevation: 0, 20 | backgroundColor: AppColors.dialogBoxColor, 21 | child: SizedBox( 22 | height: height * 0.38, 23 | width: width * 0.42, 24 | child: Column( 25 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 26 | children: [ 27 | const Text( 28 | 'Are you sure you want to logout?', 29 | textAlign: TextAlign.center, 30 | style: TextStyle(fontSize: 36, color: AppColors.white), 31 | ), 32 | Row( 33 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 34 | children: [ 35 | CustomRaisedBtn( 36 | onPressed: () { 37 | Get.back(); 38 | }, 39 | borderRadius: Sizes.dimen_18, 40 | width: width * 0.15, 41 | height: Sizes.dimen_56, 42 | child: const Text( 43 | 'Cancel', 44 | style: AppStyleText.buttonSM20W5, 45 | ), 46 | color: AppColors.butttoColor), 47 | CustomRaisedBtn( 48 | onPressed: () { 49 | SharedPreferenceHelper.clearSharedPreferenceOnLogOut(); 50 | Get.back(); 51 | Get.offNamed('/login'); 52 | }, 53 | borderRadius: Sizes.dimen_18, 54 | width: width * 0.15, 55 | height: Sizes.dimen_56, 56 | child: const Text( 57 | 'Yes', 58 | style: AppStyleText.buttonSM20W5, 59 | ), 60 | color: AppColors.butttoColor), 61 | ], 62 | ) 63 | ], 64 | ), 65 | ), 66 | ); 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /lib/widgets/customDialogs/unverified_dialog.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:qrcode/controllers/home_controller.dart'; 3 | import 'package:qrcode/styles/app_colors.dart'; 4 | import 'package:qrcode/utils/constants/size_constants.dart'; 5 | import 'package:get/get.dart'; 6 | 7 | class UnverifiedDialog extends StatelessWidget { 8 | UnverifiedDialog({ 9 | Key? key, 10 | required this.height, 11 | required this.width, 12 | }) : super(key: key); 13 | 14 | final double height; 15 | final double width; 16 | final homeController = Get.find(); 17 | @override 18 | Widget build(BuildContext context) { 19 | return Dialog( 20 | shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)), 21 | elevation: 0, 22 | backgroundColor: AppColors.dialogBoxColor, 23 | child: SizedBox( 24 | height: height * 0.38, 25 | width: width * 0.31, 26 | child: Column( 27 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 28 | children: [ 29 | Padding( 30 | padding: const EdgeInsets.only(right: 16), 31 | child: Align( 32 | alignment: Alignment.topRight, 33 | child: InkWell( 34 | onTap: () { 35 | homeController.back(); 36 | }, 37 | child: const Icon( 38 | Icons.close_rounded, 39 | color: AppColors.white, 40 | size: Sizes.dimen_24, 41 | )), 42 | ), 43 | ), 44 | Image.asset( 45 | 'assets/icons/vector.png', 46 | height: 80, 47 | width: 80, 48 | ), 49 | const Text( 50 | 'Not a valid QR Code', 51 | textAlign: TextAlign.center, 52 | style: TextStyle(fontSize: 36, color: AppColors.white), 53 | ) 54 | ], 55 | ), 56 | ), 57 | ); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /lib/widgets/customDialogs/verification_dialog.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:qrcode/controllers/home_controller.dart'; 3 | import 'package:qrcode/model/user_info.dart'; 4 | import 'package:qrcode/styles/app_colors.dart'; 5 | import 'package:qrcode/styles/app_styletext.dart'; 6 | import 'package:qrcode/utils/constants/size_constants.dart'; 7 | import 'package:get/get.dart'; 8 | 9 | class VerificationDialog extends StatelessWidget { 10 | VerificationDialog({ 11 | Key? key, 12 | required this.height, 13 | required this.width, 14 | required this.user, 15 | }) : super(key: key); 16 | 17 | final double height; 18 | final double width; 19 | final UserInfo user; 20 | final homeController = Get.find(); 21 | 22 | @override 23 | Widget build(BuildContext context) { 24 | return Dialog( 25 | shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)), 26 | elevation: 0, 27 | backgroundColor: AppColors.dialogBoxColor, 28 | child: SizedBox( 29 | height: height * 0.38, 30 | width: width * 0.31, 31 | child: Column( 32 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 33 | children: [ 34 | Padding( 35 | padding: const EdgeInsets.only(right: 16, top: 16), 36 | child: Align( 37 | alignment: Alignment.topRight, 38 | child: InkWell( 39 | onTap: () { 40 | homeController.back(); 41 | }, 42 | child: const Icon( 43 | Icons.close_rounded, 44 | color: AppColors.white, 45 | size: Sizes.dimen_24, 46 | )), 47 | ), 48 | ), 49 | CircleAvatar( 50 | radius: 40.0, 51 | backgroundImage: NetworkImage(user.image), 52 | backgroundColor: Colors.transparent, 53 | ), 54 | Text( 55 | user.fname + " " + user.lname, 56 | textAlign: TextAlign.center, 57 | style: const TextStyle( 58 | fontSize: 20, 59 | color: AppColors.white, 60 | fontWeight: FontWeight.w500), 61 | ), 62 | Text( 63 | "@"+user.username, 64 | textAlign: TextAlign.center, 65 | style: AppStyleText.infoDetailR16W4, 66 | ), 67 | Text( 68 | user.userRole.name, 69 | textAlign: TextAlign.center, 70 | style: AppStyleText.infoDetailR16W4, 71 | ), 72 | Container( 73 | alignment: Alignment.center, 74 | width: width, 75 | height: height * 0.12, 76 | decoration: const BoxDecoration( 77 | color: AppColors.butttoColor, 78 | borderRadius: BorderRadius.only( 79 | bottomLeft: Radius.circular(10), 80 | bottomRight: Radius.circular(10))), 81 | child: const Text( 82 | 'Verified', 83 | textAlign: TextAlign.center, 84 | style: TextStyle(fontSize: 36, color: AppColors.white), 85 | ), 86 | ) 87 | ], 88 | ), 89 | ), 90 | ); 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /lib/widgets/custom_button.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:qrcode/utils/constants/size_constants.dart'; 3 | 4 | class CustomRaisedBtn extends StatelessWidget { 5 | final VoidCallback onPressed; 6 | final Widget child; 7 | final Color color; 8 | final double elevation; 9 | final double width; 10 | final double height; 11 | final double borderRadius; 12 | 13 | CustomRaisedBtn({ 14 | required this.onPressed, 15 | required this.child, 16 | required this.color, 17 | this.elevation = 0.0, 18 | required this.width, 19 | required this.height, 20 | required this.borderRadius, 21 | }); 22 | 23 | @override 24 | Widget build(BuildContext context) { 25 | return InkWell( 26 | onTap: onPressed, 27 | child: Container( 28 | width: width, 29 | height: height, 30 | alignment: Alignment.center, 31 | decoration: BoxDecoration( 32 | color: color, 33 | borderRadius: BorderRadius.circular(borderRadius), 34 | ), 35 | child: child, 36 | ), 37 | ); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /lib/widgets/k_inputfield.dart: -------------------------------------------------------------------------------- 1 | 2 | import 'package:flutter/cupertino.dart'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:qrcode/styles/app_colors.dart'; 5 | import 'package:qrcode/utils/constants/size_constants.dart'; 6 | 7 | class KInputField extends StatelessWidget { 8 | final String hintText; 9 | final Widget prefixIcon; 10 | final Widget suffixIcon; 11 | final bool obscureText; 12 | final TextInputType textInputType; 13 | final TextEditingController controller; 14 | final TextStyle hintTextStyle; 15 | final TextStyle textStyle; 16 | final bool hasFocus; 17 | final int maxLines; 18 | final String suffixText; 19 | final double width; 20 | 21 | KInputField({ 22 | required this.width, 23 | required this.hintText, 24 | required this.prefixIcon, 25 | required this.suffixIcon, 26 | this.obscureText = false, 27 | required this.textInputType, 28 | required this.controller, 29 | required this.hintTextStyle, 30 | this.hasFocus = false, 31 | required this.textStyle, 32 | this.maxLines = 1, 33 | required this.suffixText, 34 | }); 35 | 36 | @override 37 | Widget build(BuildContext context) { 38 | return Container( 39 | width: width, 40 | height: Sizes.dimen_56, 41 | alignment: Alignment.center, 42 | child: Center( 43 | child: TextField( 44 | maxLines: maxLines, 45 | controller: controller, 46 | keyboardType: textInputType, 47 | obscureText: obscureText, 48 | textAlignVertical: TextAlignVertical.center, 49 | style: textStyle, 50 | decoration: InputDecoration( 51 | contentPadding: prefixIcon == null 52 | ? const EdgeInsets.symmetric(horizontal: 10, vertical: 8) 53 | : EdgeInsets.zero, 54 | hintText: hintText, 55 | hintStyle: hintTextStyle, 56 | suffixIcon: suffixIcon, 57 | prefixIcon: prefixIcon, 58 | suffixText: suffixText, 59 | fillColor: Colors.white, 60 | focusedBorder: OutlineInputBorder( 61 | borderRadius: BorderRadius.circular(Sizes.dimen_20), 62 | borderSide: BorderSide(color: AppColors.primaryColor), 63 | ), 64 | filled: true, 65 | border: OutlineInputBorder( 66 | borderRadius: BorderRadius.circular(Sizes.dimen_20), 67 | borderSide: BorderSide(color: AppColors.borderColor)), 68 | enabledBorder: OutlineInputBorder( 69 | borderRadius: BorderRadius.circular(Sizes.dimen_20), 70 | borderSide: BorderSide(color: AppColors.borderColor))), 71 | ), 72 | ), 73 | ); 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /lib/widgets/user_tile.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:qrcode/model/user_info.dart'; 3 | import 'package:qrcode/styles/app_colors.dart'; 4 | import 'package:qrcode/styles/app_styletext.dart'; 5 | import 'package:qrcode/utils/constants/size_constants.dart'; 6 | import 'package:intl/intl.dart'; 7 | 8 | class UserTile extends StatelessWidget { 9 | const UserTile({ 10 | Key? key, 11 | required this.width, required this.user, required this.formattedDate 12 | }) : super(key: key); 13 | 14 | final double width; 15 | final UserInfo user; 16 | final String formattedDate; 17 | @override 18 | Widget build(BuildContext context) { 19 | return Container( 20 | margin: const EdgeInsets.symmetric(vertical: 4, horizontal: 16), 21 | height: 76, 22 | width: width * 0.65, 23 | decoration: BoxDecoration( 24 | color: AppColors.white, 25 | borderRadius: BorderRadius.circular(Sizes.dimen_12)), 26 | child: Padding( 27 | padding: const EdgeInsets.symmetric(vertical: 8.0, horizontal: 16.0), 28 | child: Row( 29 | children: [ 30 | CircleAvatar( 31 | radius: 30.0, 32 | backgroundImage: NetworkImage(user.image), 33 | backgroundColor: Colors.transparent, 34 | ), 35 | const SizedBox( 36 | width: 8, 37 | ), 38 | Expanded( 39 | child: Row( 40 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 41 | children: [ 42 | Column( 43 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 44 | crossAxisAlignment: CrossAxisAlignment.start, 45 | children: [ 46 | Text( 47 | user.fname + " " + user.lname, 48 | style: AppStyleText.largeTitleM18P, 49 | ), 50 | const Text( 51 | 'Check-in', 52 | style: AppStyleText.infoDetailR16S, 53 | ) 54 | ], 55 | ), 56 | Column( 57 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 58 | crossAxisAlignment: CrossAxisAlignment.end, 59 | children: [ 60 | Text(user.userRole.name, style: AppStyleText.infoDetailR16D7), 61 | 62 | SizedBox(child: Text(formattedDate, style: AppStyleText.infoDetailR16D4),), 63 | ], 64 | ), 65 | 66 | ], 67 | ), 68 | ), 69 | ], 70 | ), 71 | ), 72 | ); 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | async: 5 | dependency: transitive 6 | description: 7 | name: async 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.8.1" 11 | boolean_selector: 12 | dependency: transitive 13 | description: 14 | name: boolean_selector 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "2.1.0" 18 | characters: 19 | dependency: transitive 20 | description: 21 | name: characters 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "1.1.0" 25 | charcode: 26 | dependency: transitive 27 | description: 28 | name: charcode 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.3.1" 32 | clock: 33 | dependency: transitive 34 | description: 35 | name: clock 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.1.0" 39 | collection: 40 | dependency: transitive 41 | description: 42 | name: collection 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.15.0" 46 | connectivity: 47 | dependency: "direct dev" 48 | description: 49 | name: connectivity 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "3.0.6" 53 | connectivity_for_web: 54 | dependency: transitive 55 | description: 56 | name: connectivity_for_web 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "0.4.0+1" 60 | connectivity_macos: 61 | dependency: transitive 62 | description: 63 | name: connectivity_macos 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "0.2.1+2" 67 | connectivity_platform_interface: 68 | dependency: transitive 69 | description: 70 | name: connectivity_platform_interface 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "2.0.1" 74 | cupertino_icons: 75 | dependency: "direct main" 76 | description: 77 | name: cupertino_icons 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "1.0.4" 81 | fake_async: 82 | dependency: transitive 83 | description: 84 | name: fake_async 85 | url: "https://pub.dartlang.org" 86 | source: hosted 87 | version: "1.2.0" 88 | ffi: 89 | dependency: transitive 90 | description: 91 | name: ffi 92 | url: "https://pub.dartlang.org" 93 | source: hosted 94 | version: "1.1.2" 95 | file: 96 | dependency: transitive 97 | description: 98 | name: file 99 | url: "https://pub.dartlang.org" 100 | source: hosted 101 | version: "6.1.2" 102 | flutter: 103 | dependency: "direct main" 104 | description: flutter 105 | source: sdk 106 | version: "0.0.0" 107 | flutter_lints: 108 | dependency: "direct dev" 109 | description: 110 | name: flutter_lints 111 | url: "https://pub.dartlang.org" 112 | source: hosted 113 | version: "1.0.4" 114 | flutter_svg: 115 | dependency: "direct dev" 116 | description: 117 | name: flutter_svg 118 | url: "https://pub.dartlang.org" 119 | source: hosted 120 | version: "1.0.0" 121 | flutter_test: 122 | dependency: "direct dev" 123 | description: flutter 124 | source: sdk 125 | version: "0.0.0" 126 | flutter_web_plugins: 127 | dependency: transitive 128 | description: flutter 129 | source: sdk 130 | version: "0.0.0" 131 | get: 132 | dependency: "direct dev" 133 | description: 134 | name: get 135 | url: "https://pub.dartlang.org" 136 | source: hosted 137 | version: "4.5.1" 138 | http: 139 | dependency: "direct dev" 140 | description: 141 | name: http 142 | url: "https://pub.dartlang.org" 143 | source: hosted 144 | version: "0.13.4" 145 | http_parser: 146 | dependency: transitive 147 | description: 148 | name: http_parser 149 | url: "https://pub.dartlang.org" 150 | source: hosted 151 | version: "4.0.0" 152 | intl: 153 | dependency: "direct dev" 154 | description: 155 | name: intl 156 | url: "https://pub.dartlang.org" 157 | source: hosted 158 | version: "0.17.0" 159 | js: 160 | dependency: transitive 161 | description: 162 | name: js 163 | url: "https://pub.dartlang.org" 164 | source: hosted 165 | version: "0.6.3" 166 | lints: 167 | dependency: transitive 168 | description: 169 | name: lints 170 | url: "https://pub.dartlang.org" 171 | source: hosted 172 | version: "1.0.1" 173 | matcher: 174 | dependency: transitive 175 | description: 176 | name: matcher 177 | url: "https://pub.dartlang.org" 178 | source: hosted 179 | version: "0.12.10" 180 | meta: 181 | dependency: transitive 182 | description: 183 | name: meta 184 | url: "https://pub.dartlang.org" 185 | source: hosted 186 | version: "1.7.0" 187 | path: 188 | dependency: transitive 189 | description: 190 | name: path 191 | url: "https://pub.dartlang.org" 192 | source: hosted 193 | version: "1.8.0" 194 | path_drawing: 195 | dependency: transitive 196 | description: 197 | name: path_drawing 198 | url: "https://pub.dartlang.org" 199 | source: hosted 200 | version: "1.0.0" 201 | path_parsing: 202 | dependency: transitive 203 | description: 204 | name: path_parsing 205 | url: "https://pub.dartlang.org" 206 | source: hosted 207 | version: "1.0.0" 208 | path_provider_linux: 209 | dependency: transitive 210 | description: 211 | name: path_provider_linux 212 | url: "https://pub.dartlang.org" 213 | source: hosted 214 | version: "2.1.2" 215 | path_provider_platform_interface: 216 | dependency: transitive 217 | description: 218 | name: path_provider_platform_interface 219 | url: "https://pub.dartlang.org" 220 | source: hosted 221 | version: "2.0.1" 222 | path_provider_windows: 223 | dependency: transitive 224 | description: 225 | name: path_provider_windows 226 | url: "https://pub.dartlang.org" 227 | source: hosted 228 | version: "2.0.4" 229 | petitparser: 230 | dependency: transitive 231 | description: 232 | name: petitparser 233 | url: "https://pub.dartlang.org" 234 | source: hosted 235 | version: "4.4.0" 236 | platform: 237 | dependency: transitive 238 | description: 239 | name: platform 240 | url: "https://pub.dartlang.org" 241 | source: hosted 242 | version: "3.1.0" 243 | plugin_platform_interface: 244 | dependency: transitive 245 | description: 246 | name: plugin_platform_interface 247 | url: "https://pub.dartlang.org" 248 | source: hosted 249 | version: "2.0.2" 250 | process: 251 | dependency: transitive 252 | description: 253 | name: process 254 | url: "https://pub.dartlang.org" 255 | source: hosted 256 | version: "4.2.4" 257 | qr_code_scanner: 258 | dependency: "direct dev" 259 | description: 260 | name: qr_code_scanner 261 | url: "https://pub.dartlang.org" 262 | source: hosted 263 | version: "0.6.1" 264 | shared_preferences: 265 | dependency: "direct dev" 266 | description: 267 | name: shared_preferences 268 | url: "https://pub.dartlang.org" 269 | source: hosted 270 | version: "2.0.9" 271 | shared_preferences_android: 272 | dependency: transitive 273 | description: 274 | name: shared_preferences_android 275 | url: "https://pub.dartlang.org" 276 | source: hosted 277 | version: "2.0.9" 278 | shared_preferences_ios: 279 | dependency: transitive 280 | description: 281 | name: shared_preferences_ios 282 | url: "https://pub.dartlang.org" 283 | source: hosted 284 | version: "2.0.8" 285 | shared_preferences_linux: 286 | dependency: transitive 287 | description: 288 | name: shared_preferences_linux 289 | url: "https://pub.dartlang.org" 290 | source: hosted 291 | version: "2.0.3" 292 | shared_preferences_macos: 293 | dependency: transitive 294 | description: 295 | name: shared_preferences_macos 296 | url: "https://pub.dartlang.org" 297 | source: hosted 298 | version: "2.0.2" 299 | shared_preferences_platform_interface: 300 | dependency: transitive 301 | description: 302 | name: shared_preferences_platform_interface 303 | url: "https://pub.dartlang.org" 304 | source: hosted 305 | version: "2.0.0" 306 | shared_preferences_web: 307 | dependency: transitive 308 | description: 309 | name: shared_preferences_web 310 | url: "https://pub.dartlang.org" 311 | source: hosted 312 | version: "2.0.2" 313 | shared_preferences_windows: 314 | dependency: transitive 315 | description: 316 | name: shared_preferences_windows 317 | url: "https://pub.dartlang.org" 318 | source: hosted 319 | version: "2.0.3" 320 | sky_engine: 321 | dependency: transitive 322 | description: flutter 323 | source: sdk 324 | version: "0.0.99" 325 | source_span: 326 | dependency: transitive 327 | description: 328 | name: source_span 329 | url: "https://pub.dartlang.org" 330 | source: hosted 331 | version: "1.8.1" 332 | stack_trace: 333 | dependency: transitive 334 | description: 335 | name: stack_trace 336 | url: "https://pub.dartlang.org" 337 | source: hosted 338 | version: "1.10.0" 339 | stream_channel: 340 | dependency: transitive 341 | description: 342 | name: stream_channel 343 | url: "https://pub.dartlang.org" 344 | source: hosted 345 | version: "2.1.0" 346 | string_scanner: 347 | dependency: transitive 348 | description: 349 | name: string_scanner 350 | url: "https://pub.dartlang.org" 351 | source: hosted 352 | version: "1.1.0" 353 | term_glyph: 354 | dependency: transitive 355 | description: 356 | name: term_glyph 357 | url: "https://pub.dartlang.org" 358 | source: hosted 359 | version: "1.2.0" 360 | test_api: 361 | dependency: transitive 362 | description: 363 | name: test_api 364 | url: "https://pub.dartlang.org" 365 | source: hosted 366 | version: "0.4.2" 367 | typed_data: 368 | dependency: transitive 369 | description: 370 | name: typed_data 371 | url: "https://pub.dartlang.org" 372 | source: hosted 373 | version: "1.3.0" 374 | vector_math: 375 | dependency: transitive 376 | description: 377 | name: vector_math 378 | url: "https://pub.dartlang.org" 379 | source: hosted 380 | version: "2.1.0" 381 | win32: 382 | dependency: transitive 383 | description: 384 | name: win32 385 | url: "https://pub.dartlang.org" 386 | source: hosted 387 | version: "2.3.1" 388 | xdg_directories: 389 | dependency: transitive 390 | description: 391 | name: xdg_directories 392 | url: "https://pub.dartlang.org" 393 | source: hosted 394 | version: "0.2.0" 395 | xml: 396 | dependency: transitive 397 | description: 398 | name: xml 399 | url: "https://pub.dartlang.org" 400 | source: hosted 401 | version: "5.3.1" 402 | sdks: 403 | dart: ">=2.14.0 <3.0.0" 404 | flutter: ">=2.5.0" 405 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: qrcode 2 | description: A new Flutter project. 3 | 4 | # The following line prevents the package from being accidentally published to 5 | # pub.dev using `flutter pub publish`. This is preferred for private packages. 6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev 7 | 8 | # The following defines the version and build number for your application. 9 | # A version number is three numbers separated by dots, like 1.2.43 10 | # followed by an optional build number separated by a +. 11 | # Both the version and the builder number may be overridden in flutter 12 | # build by specifying --build-name and --build-number, respectively. 13 | # In Android, build-name is used as versionName while build-number used as versionCode. 14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 16 | # Read more about iOS versioning at 17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 18 | version: 1.0.0+1 19 | 20 | environment: 21 | sdk: ">=2.12.0 <3.0.0" 22 | 23 | # Dependencies specify other packages that your package needs in order to work. 24 | # To automatically upgrade your package dependencies to the latest versions 25 | # consider running `flutter pub upgrade --major-versions`. Alternatively, 26 | # dependencies can be manually updated by changing the version numbers below to 27 | # the latest version available on pub.dev. To see which dependencies have newer 28 | # versions available, run `flutter pub outdated`. 29 | dependencies: 30 | flutter: 31 | sdk: flutter 32 | 33 | 34 | # The following adds the Cupertino Icons font to your application. 35 | # Use with the CupertinoIcons class for iOS style icons. 36 | cupertino_icons: ^1.0.2 37 | 38 | dev_dependencies: 39 | flutter_test: 40 | sdk: flutter 41 | 42 | # The "flutter_lints" package below contains a set of recommended lints to 43 | # encourage good coding practices. The lint set provided by the package is 44 | # activated in the `analysis_options.yaml` file located at the root of your 45 | # package. See that file for information about deactivating specific lint 46 | # rules and activating additional ones. 47 | flutter_lints: ^1.0.0 48 | flutter_svg: ^1.0.0 49 | qr_code_scanner: ^0.6.1 50 | get: ^4.5.1 51 | http: ^0.13.4 52 | intl: ^0.17.0 53 | connectivity: ^3.0.6 54 | shared_preferences: ^2.0.9 55 | 56 | # For information on the generic Dart part of this file, see the 57 | # following page: https://dart.dev/tools/pub/pubspec 58 | 59 | # The following section is specific to Flutter. 60 | flutter: 61 | 62 | uses-material-design: true 63 | 64 | assets: 65 | - assets/user.json 66 | - assets/images/ 67 | - assets/icons/ 68 | - assets/svgs/ 69 | # - images/a_dot_ham.jpeg 70 | 71 | # An image asset can refer to one or more resolution-specific "variants", see 72 | # https://flutter.dev/assets-and-images/#resolution-aware. 73 | 74 | # For details regarding adding assets from package dependencies, see 75 | # https://flutter.dev/assets-and-images/#from-packages 76 | 77 | # To add custom fonts to your application, add a fonts section here, 78 | # in this "flutter" section. Each entry in this list should have a 79 | # "family" key with the font family name, and a "fonts" key with a 80 | # list giving the asset and other descriptors for the font. For 81 | # example: 82 | # fonts: 83 | # - family: Schyler 84 | # fonts: 85 | # - asset: fonts/Schyler-Regular.ttf 86 | # - asset: fonts/Schyler-Italic.ttf 87 | # style: italic 88 | # - family: Trajan Pro 89 | # fonts: 90 | # - asset: fonts/TrajanPro.ttf 91 | # - asset: fonts/TrajanPro_Bold.ttf 92 | # weight: 700 93 | # 94 | # For details regarding fonts from package dependencies, 95 | # see https://flutter.dev/custom-fonts/#from-packages 96 | -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:qrcode/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(const MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | -------------------------------------------------------------------------------- /web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chbilalramzan/flutterQRcode/f31c5eb3ad2e4f3037a1dd22c2b79bf4480f6b38/web/favicon.png -------------------------------------------------------------------------------- /web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chbilalramzan/flutterQRcode/f31c5eb3ad2e4f3037a1dd22c2b79bf4480f6b38/web/icons/Icon-192.png -------------------------------------------------------------------------------- /web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chbilalramzan/flutterQRcode/f31c5eb3ad2e4f3037a1dd22c2b79bf4480f6b38/web/icons/Icon-512.png -------------------------------------------------------------------------------- /web/icons/Icon-maskable-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chbilalramzan/flutterQRcode/f31c5eb3ad2e4f3037a1dd22c2b79bf4480f6b38/web/icons/Icon-maskable-192.png -------------------------------------------------------------------------------- /web/icons/Icon-maskable-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chbilalramzan/flutterQRcode/f31c5eb3ad2e4f3037a1dd22c2b79bf4480f6b38/web/icons/Icon-maskable-512.png -------------------------------------------------------------------------------- /web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | qrcode 30 | 31 | 32 | 33 | 36 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "qrcode", 3 | "short_name": "qrcode", 4 | "start_url": ".", 5 | "display": "standalone", 6 | "background_color": "#0175C2", 7 | "theme_color": "#0175C2", 8 | "description": "A new Flutter project.", 9 | "orientation": "portrait-primary", 10 | "prefer_related_applications": false, 11 | "icons": [ 12 | { 13 | "src": "icons/Icon-192.png", 14 | "sizes": "192x192", 15 | "type": "image/png" 16 | }, 17 | { 18 | "src": "icons/Icon-512.png", 19 | "sizes": "512x512", 20 | "type": "image/png" 21 | }, 22 | { 23 | "src": "icons/Icon-maskable-192.png", 24 | "sizes": "192x192", 25 | "type": "image/png", 26 | "purpose": "maskable" 27 | }, 28 | { 29 | "src": "icons/Icon-maskable-512.png", 30 | "sizes": "512x512", 31 | "type": "image/png", 32 | "purpose": "maskable" 33 | } 34 | ] 35 | } 36 | --------------------------------------------------------------------------------