dynamicutils
Figma, XD 등에서 반응형 디자인을 만들기 위한 Flutter 패키지.....
MohamedAshraf701/dynamic_size open-source repository details.
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
A Flutter package that provides dynamic sizing capabilities, allowing you to adapt your UI elements to different screen sizes.
Add the following line to your pubspec.yaml file:
dependencies:
dynamicutils: <latest_version>
Then run flutter pub get to fetch the package.
Import the package into your Dart file:
import 'package:dynamicutils/dynamicutils.dart';
Initialize the DynamicSize class with the design screen size:
DynamicSize size = DynamicSize(849, 393);
Adjust the height and width of your UI elements:
DynamicSize size = DynamicSize(849, 393);
height = size.height(20);
width = size.width(20);
size.HeightSpace(20);
size.WidthSpace(20);
Create a new dynamic container:
dContainer(
height: 20,
width: 20,
);
For navigation:
pop(context);
newScreen(context, screen());
replaceScreen(context, screen());
For more advanced usage and customization options, refer to the package's API documentation.
You can find more usage examples in the example folder of this repository.
This project is licensed under the MIT License.
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.
If you have any questions, feel free to reach out:
의존성 목록 2 개
{"sdk":"flutter"}{"sdk":"flutter"}사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗