Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mohamedashraf701/dynamic_size
https://github.com/mohamedashraf701/dynamic_size
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mohamedashraf701/dynamic_size
- Owner: MohamedAshraf701
- License: mit
- Created: 2022-08-31T09:45:34.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-09T16:13:28.000Z (over 1 year ago)
- Last Synced: 2024-04-24T07:33:41.141Z (8 months ago)
- Language: C++
- Size: 390 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Dynamic Utils
[![Pub Version](https://img.shields.io/pub/v/dynamicutils.svg)](https://pub.dev/packages/dynamicutils)
![Flutter Platform](https://img.shields.io/badge/platform-flutter-yellow)A Flutter package that provides dynamic sizing capabilities, allowing you to adapt your UI elements to different screen sizes.
## Features
- Dynamically adjust the height and width of UI elements based on the screen size.
- Easily create responsive UIs that work well on different devices and orientations.
- Convenient methods for adding spacing between elements.## Installation
Add the following line to your `pubspec.yaml` file:
```yaml
dependencies:
dynamicutils:
```Then run `flutter pub get` to fetch the package.
## Usage
Import the package into your Dart file:
```dart
import 'package:dynamicutils/dynamicutils.dart';
```Initialize the `DynamicSize` class with the design screen size:
```dart
DynamicSize size = DynamicSize(849, 393);
```Adjust the height and width of your UI elements:
```dart
DynamicSize size = DynamicSize(849, 393);
height = size.height(20);
width = size.width(20);
size.HeightSpace(20);
size.WidthSpace(20);
```Create a new dynamic container:
```dart
dContainer(
height: 20,
width: 20,
);
```For navigation:
```dart
pop(context);
newScreen(context, screen());
replaceScreen(context, screen());
```For more advanced usage and customization options, refer to the package's [API documentation](https://pub.dev/documentation/dynamicutils/latest/dynamicutils/DynamicSize-class.html).
## Examples
You can find more usage examples in the [example](example) folder of this repository.
## License
This project is licensed under the [MIT License](https://zaid.digital).
## Contributing
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.
## Get in touch
If you have any questions, feel free to reach out:
- Email: [email protected]
- GitHub: [@MohamedAshraf701](https://github.com/MohamedAshraf701)