{"id":15008688,"url":"https://github.com/birjuvachhani/flutter_screwdriver","last_synced_at":"2025-04-09T16:22:28.582Z","repository":{"id":56374593,"uuid":"291732441","full_name":"BirjuVachhani/flutter_screwdriver","owner":"BirjuVachhani","description":"A flutter package aiming to provide useful extensions and helper functions to ease and speed up development.","archived":false,"fork":false,"pushed_at":"2024-03-12T11:18:27.000Z","size":4437,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T16:22:24.473Z","etag":null,"topics":["dart","dartlang","extensions","flutter","flutter-extensions","flutter-package","flutter-packages","pubdev"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BirjuVachhani.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-08-31T14:08:18.000Z","updated_at":"2024-04-29T03:56:32.000Z","dependencies_parsed_at":"2024-03-12T12:27:31.182Z","dependency_job_id":"f46b5b97-fc3f-4e51-bb12-a59836e7f247","html_url":"https://github.com/BirjuVachhani/flutter_screwdriver","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BirjuVachhani%2Fflutter_screwdriver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BirjuVachhani%2Fflutter_screwdriver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BirjuVachhani%2Fflutter_screwdriver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BirjuVachhani%2Fflutter_screwdriver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BirjuVachhani","download_url":"https://codeload.github.com/BirjuVachhani/flutter_screwdriver/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065567,"owners_count":21041919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","dartlang","extensions","flutter","flutter-extensions","flutter-package","flutter-packages","pubdev"],"created_at":"2024-09-24T19:20:01.178Z","updated_at":"2025-04-09T16:22:28.547Z","avatar_url":"https://github.com/BirjuVachhani.png","language":"Dart","funding_links":["https://www.buymeacoffee.com/birjuvachhani"],"categories":[],"sub_categories":[],"readme":"![Banner](https://raw.githubusercontent.com/BirjuVachhani/flutter_screwdriver/main/.github/banner.png?raw=true)\n\n\n# Flutter Screwdriver\n\nA flutter package aiming to provide useful extensions and helper functions to ease and speed up development.\n\n[![Tests](https://github.com/BirjuVachhani/screwdriver/workflows/Tests/badge.svg?branch=master)](https://github.com/BirjuVachhani/screwdriver/actions) [![Code Quality](https://github.com/BirjuVachhani/flutter_screwdriver/workflows/Code%20Quality/badge.svg?branch=master)](https://github.com/BirjuVachhani/flutter_screwdriver/actions)\n\n\n\n- 📋  Well Documented\n- 🧪  Well Tested\n- 👌  Follows Code Quality Guidelines\n- 🦾  Production Ready\n- 🛹  Easy to Use\n- 🛡  Sound Null Safety ️\n\n\n\nTo checkout all the available extensions, helper functions \u0026 classes, see [documentation][docs].\n\n## Stats\n\n\u003c!---stats_start--\u003e\n```yaml  \nExtensions:                    44\nHelper Classes:                13\nHelper Functions \u0026 Getters:    2\nTypedefs:                      4\nMixins:                        3\n```\n\n\u003e *Last Updated: Tue, Mar 12, 2024 - 11:10 AM*\n\n\u003c!---stats_end--\u003e\n\n*Stats auto generated using [Github Workflow](https://github.com/BirjuVachhani/screwdriver/blob/main/.github/workflows/stats.yaml).\n\n## Installation\n\n1. Add as a dependency in your project's `pub spec.yaml`\n\n```yaml\ndependencies:\n  flutter_screwdriver: \u003clatest_version\u003e\n```\n\n2. Import library into your code.\n\n```dart\nimport 'package:flutter_screwdriver/flutter_screwdriver.dart';\n```\n\n\n\nA Glimpse of **Flutter Screwdriver**\n\n```dart\n'#FF4433'.toColor(); // returns Color object\ncontext.theme; // short for Theme.of(context)\nmyConfirmationView.showAsDialog(context);\nhomeRoute.push(context); // short for Navigation.of(context).push(homeRoute);\ncloseApp(); // closes the app\n\nColors.red.hexString; // converts to hex string\nColor(0xFF4433).toMaterialColor(); // converts given color to material color with standard shades\nColor(0xFF4433).shade(300); // creates white based shades of given color\nColors.red.tweenTo(Colors.blue); // creates ColorTween\n```\n\n\n\n#### State and Context Extensions\n\nAccess common inherited widgets directly from state.\n\n```dart\ntheme; // Short for Theme.of(context)\nmediaQuery; // Short for MediaQuery.of(context)\nfocusScope; // Short for FocusScope.of(context)\nnavigator; // Short for Navigator.of(context)\nhideKeyboard(); // hides soft input keyboard\n\ncontext.theme;\ncontext.mediaQuery;\ncontext.focusScope;\ncontext.navigator;\ncontext.hideKeyboard();\n```\n\n\n\n#### TextEditingController\n\n```dart\nemailController.trimmed;\nemailController.isBlank;\nemailController.onChanged((value) =\u003e print(value));\nemailController.onSelectionChanged((selection) =\u003e print(selection));\nemailController.textChanges(); // Returns a Stream\u003cString\u003e\nemailController.selectionChanges(); // Returns a Stream\u003cTextSelection\u003e\n```\n\n\n\n#### Routes\n\n```dart\nFadeScalePageRoute();\nFadeThroughPageRoute();\nSharedAxisPageRoute();\n```\n\n\n\n##### Hiding keyboard when clicked outside tap-able views\n\n```dart\nimport 'package:flutter_screwdriver/flutter_screwdriver.dart';\n\n\nHideKeyboard(\n  MaterialApp(\n    theme: ThemeData.light(),\n    debugShowCheckedModeBanner: false,\n    home: Scaffold(\n      body: MyWidget(),\n    ),\n  ),\n);\n\n```\n\n\n\n##### Clearing focus when navigation happens (mainly to close keyboard if visible)\n\n```dart\nimport 'package:flutter_screwdriver/flutter_screwdriver.dart';\n\nMaterialApp(\n  theme: ThemeData.light(),\n  debugShowCheckedModeBanner: false,\n  navigatorObservers: [\n    ClearFocusNavigatorObserver(),\n  ],\n  home: Scaffold(\n    body: MyWidget(),\n  ),\n);\n```\n\n\n\nCheckout [documentation][docs]\n\n\n\n## Features and bugs\n\nPlease file feature requests and bugs at the [issue tracker][tracker].\n\n[tracker]: https://github.com/BirjuVachhani/flutter_screwdriver/issues\n[docs]: https://pub.dev/documentation/flutter_screwdriver/latest/\n\n\n\n#### Liked Flutter Screwdriver?\n\nShow some love and support by starring the [repository](https://github.com/birjuvachhani/flutter_screwdriver).\n\nOr You can\n\n\u003ca href=\"https://www.buymeacoffee.com/birjuvachhani\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-blue.png\" alt=\"Buy Me A Coffee\" style=\"height: 51px !important;width: 217px !important;\" \u003e\u003c/a\u003e\n\n\n\n\n## License\n\n```\nCopyright (c) 2020, Birju Vachhani\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this\n   list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice,\n   this list of conditions and the following disclaimer in the documentation\n   and/or other materials provided with the distribution.\n\n3. Neither the name of the copyright holder nor the names of its\n   contributors may be used to endorse or promote products derived from\n   this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbirjuvachhani%2Fflutter_screwdriver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbirjuvachhani%2Fflutter_screwdriver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbirjuvachhani%2Fflutter_screwdriver/lists"}