v1.0.2
xdialog
다이나믹한 구성, 여러 버튼 지원 및 부드러운 애니메이션을 갖춘 Flutter용으로 매우 사용자 정의 가능한 애니메이션 대화 상자 패키지입니다.
1좋아요 1030일 다운로드145Pub 점수
AndroidiOSWebmacOSWindowsLinux
anwarsafy/xdialog open-source repository details.
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
A feature-rich, highly customizable dialog package for Flutter applications.
Add the dependency in your pubspec.yaml:
dependencies:
xdialog: ^1.0.0
Then, run:
flutter pub get
To display a simple confirmation dialog:
import 'package:flutter/material.dart';
import 'package:xdialog/xdialog.dart';
void showBasicDialog(BuildContext context) {
XDialog.show(
context: context,
title: const Text('Confirmation'),
message: const Text('Are you sure?'),
positiveButtonText: 'Yes',
negativeButtonText: 'No',
);
}
import 'package:flutter/material.dart';
import 'package:xdialog/xdialog.dart';
void showImageDialog(BuildContext context) {
XDialog.show(
context: context,
title: const Text('Image Preview'),
message: const Text('This is an example with an image.'),
image: Image.network('https://via.placeholder.com/150'),
positiveButtonText: 'OK',
);
}
XDialog.show(
context: context,
title: const Text('Custom Size'),
message: const Text('You can control the size.'),
width: 300,
height: 200,
);
XDialog.show(
context: context,
title: const Text('Styled Buttons'),
message: const Text('Different button styles.'),
positiveButtonText: 'Confirm',
negativeButtonText: 'Cancel',
positiveButtonStyle: ElevatedButton.styleFrom(backgroundColor: Colors.green),
negativeButtonStyle: TextButton.styleFrom(foregroundColor: Colors.red),
);
This project is licensed under the MIT License.
Feel free to submit pull requests or open issues for suggestions and improvements.
Happy coding! 🚀
의존성 목록 3 개
{"sdk":"flutter"}{"sdk":"flutter"}^2.0.0사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗