{"id":15066384,"url":"https://github.com/jinosh05/sizer_pro","last_synced_at":"2025-10-05T03:30:47.487Z","repository":{"id":176315492,"uuid":"655324764","full_name":"jinosh05/sizer_pro","owner":"jinosh05","description":"A flutter plugin for Easily make Flutter apps responsive. Automatically adapt UI to different screen sizes. Responsiveness made simple.","archived":false,"fork":true,"pushed_at":"2023-09-30T18:24:11.000Z","size":2878,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-11-20T06:12:22.768Z","etag":null,"topics":["dart","flutter","flutter-apps","flutter-plugin","flutter-plugins","sizer"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/sizer_pro","language":"Dart","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"TechnoPrashant/Sizer","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jinosh05.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-06-18T15:00:20.000Z","updated_at":"2024-08-15T06:49:32.000Z","dependencies_parsed_at":"2023-09-27T23:14:36.192Z","dependency_job_id":null,"html_url":"https://github.com/jinosh05/sizer_pro","commit_stats":null,"previous_names":["jinosh05/sizer2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinosh05%2Fsizer_pro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinosh05%2Fsizer_pro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinosh05%2Fsizer_pro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinosh05%2Fsizer_pro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jinosh05","download_url":"https://codeload.github.com/jinosh05/sizer_pro/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235356202,"owners_count":18976819,"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","flutter","flutter-apps","flutter-plugin","flutter-plugins","sizer"],"created_at":"2024-09-25T01:06:57.625Z","updated_at":"2025-10-05T03:30:47.013Z","avatar_url":"https://github.com/jinosh05.png","language":"Dart","readme":"# sizer_pro\n\n\n[![Pub](https://img.shields.io/pub/v/sizer_pro.svg)](https://pub.dartlang.org/packages/sizer_pro) \n[![License](https://img.shields.io/badge/licence-MIT-orange.svg)](https://github.com/jinosh05/sizer_pro/blob/master/LICENSE)\n[![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/jinosh05/sizer_pro.svg)](https://github.com/jinosh05/sizer_pro)\n[![GitHub stars](https://img.shields.io/github/stars/jinosh05/sizer_pro.svg?style=social)](https://github.com/jinosh05/sizer_pro)\n\n\n\u003cp align=\"center\" \u003e\n  \u003cstrong\u003esizer_pro is helps you to create responsive UI easily.\u003c/strong\u003e\n  \u003cbr /\u003e\n  \u003cbr /\u003e\n\u003ca href=\"https://www.buymeacoffee.com/jinosh\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" alt=\"Buy Me A Coffee\" style=\"height: 60px !important;width: 217px !important;\" \u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\nA flutter plugin for Easily make Flutter apps responsive. Automatically adapt UI to different screen sizes. Responsiveness made simple.\n\n![Alt Text](https://github.com/jinosh05/sizer_pro/blob/master/example/images/img_ss_with_lib.png)\n\n![Alt Text](https://github.com/jinosh05/sizer_pro/blob/master/example/images/img_ss_without_lib.png)\n\n# Content\n\n- [For Existing User](#existing-user)\n- [Installation](#installation)\n- [Parameters](#parameters)\n- [Suggestion](#suggestion)\n- [Note](#note)\n\u003cbr\u003e\n\n\u003cbr\u003e\n\n# Existing User\n## Dart 3.0 Users\n Hello Existing users, I have updated the package for supporting Flutter 3.10.0 in alpha versions and Kindly Update your repo to latest SDK for Support.\n\u003cbr\u003e\n\n## Dart 2.0 Users\nWe still provide Support for Lower version compatibilities and You can continue using the Stable versions without any lag.\n\u003cbr\u003e\n\n\n# Installation ⬇️\nAdd to pubspec.yaml.\n```dart\ndependencies:\n  ...\n  sizer_pro: ^2.1.2\n```\n\n# Parameters ⚙️ \n\n* `.h` - Returns a calculated height based on the device\n* `.w` - Returns a calculated width based on the device\n* `.sp` - Returns a calculated sp based on the device\n* `.f` - Returns a calculated font based on the device\n* `SizerUtil.orientation` - for screen orientation portrait or landscape\n* `SizerUtil.deviceType` - for device type mobile or tablet\n\n# Usage 💻\n\n## Add the following imports to your Dart code: \n```dart\nimport 'package:sizer_pro/sizer.dart';\n```\n\n## Wrap MaterialApp with Sizer widget\n```dart\nSizer(\n      builder: (context, orientation, deviceType) {\n        return MaterialApp();\n      }\n )\n```\n\nWhenever you use height and width first import sizer package.\n```dart\nimport 'package:sizer_pro/sizer.dart';\n```\n\n## Widget Size 🕓\n```dart\n    Container(\n      width: 20.w,    //It will take a 20% of screen width\n      height:30.h     //It will take a 30% of screen height\n    )\n```\n\n## Padding ⏹\n```dart\n    Padding(\n      padding: EdgeInsets.symmetric(vertical: 5.h, horizontal: 3.h),\n      child: Container(),\n    );\n```\n\n## Font size 🆎\n```dart\n    Text(\n      'Sizer',style: TextStyle(fontSize: 15.f),\n    );\n```\n\n\n## Icon size 💡\n```dart\n    Icon(\n     Icons.home,size: 12.f,\n    );\n```\n\n\n## Square Widget 🟩\n\nIf you want to make square size widget then give height or width in both height and width.\n```dart\n    Container(\n            width: 30.h,      //It will take a 30% of screen height\n            height: 30.h,     //It will take a 30% of screen height\n    );\n```\n\n## Orientation 🔄\n\nIf you want to support both portrait and landscape orientations\n```dart\nDevice.orientation == Orientation.portrait\n  ? Container(   // Widget for Portrait\n      width: 100.w,\n      height: 20.5.h,\n   )\n  : Container(   // Widget for Landscape\n      width: 100.w,\n      height: 12.5.h,\n   )\n```\n\n## DeviceType 📱\n\nIf you want the same layout to look different in tablet and mobile, use the ``SizerUtil.deviceType`` method:\n\n```dart\nSizerUtil.deviceType == DeviceType.mobile\n  ? Container(   // Widget for Mobile\n      width: 100.w,\n      height: 20.5.h,\n   )\n  : Container(   // Widget for Tablet\n      width: 100.w,\n      height: 12.5.h,\n   )\n```\n\n# Suggestion\n**Orientation**\n\nIf you want to give support for both portrait and landscape then make separate widget for both like orientation example.\n\n**DeviceType**\n\nIf you want to give support for both mobile and tablet then make separate widget for both like deviceType example.  \n\n# Note\n\nYou need to import `sizer` package in order to access `number.h`, `number.w`,`number.f`, and `number.sp`\n\n**Auto import in VSCode and Android Studio doesn't work for dart extension methods.** Typing `10.h` would not bring up auto import suggestion for this package\n\nOne workaround is to type `Device` so that the auto import suggestion would show up:\n```dart\nimport 'package:sizer_pro/sizer.dart';\n```\n\n## Issue and feedback 💭 \n\nIf you have any suggestion for including a feature or if something doesn't work, feel free to open a Github [issue](https://github.com/jinosh05/sizer_pro/issues) for us to have a discussion on it.\n\n\n## Contributing\n\nContributions are welcome, please submit a PR :)\n","funding_links":["https://www.buymeacoffee.com/jinosh"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjinosh05%2Fsizer_pro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjinosh05%2Fsizer_pro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjinosh05%2Fsizer_pro/lists"}