v3.3.9flutter_popup
flutter_popup 패키지는 Flutter 앱에서 사용자 정의 가능한 팝업을 생성하는 데 사용되는 유용한 도구입니다. 강조 기능은 특정 영역에 사용자의 주의를 효과적으로 집중시킵니다
flutter_popup 패키지는 Flutter 애플리케이션 내에서 간단하고 사용자 정의 가능한 팝업을 표시할 수 있는 편리한 도구입니다
{"sdk":"flutter"}{"path":"example"}^1.0.0{"sdk":"flutter"}아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
The flutter_popup package is a convenient tool that enables you to display a straightforward and customizable popup within your Flutter application. It offers a highlight feature that can be utilized to direct the user's attention to a specific area as needed.
dependencies:
flutter_popup: ^latest_version
import 'package:flutter_popup/flutter_popup.dart';
// easy to use
CustomPopup(
content: Text('George says everything looks fine'),
child: Icon(Icons.help),
),
CustomPopup(
arrowColor: Colors.orange,
barrierColor: Colors.green.withOpacity(0.1),
backgroundColor: Colors.white,
content: Text('George says everything looks fine'),
child: Icon(Icons.help),
),
CustomPopup(
content: _Slider(),
position: PopupPosition.top,
child:Text('slider'),
)
CustomPopup(
content: Column(
mainAxisSize: MainAxisSize.min,
children: List.generate(5, (index) => Text('menu$index')),
),
child: const Icon(Icons.add_circle_outline),
)
Container(
decoration: BoxDecoration(color: Colors.white),
padding: EdgeInsets.symmetric(vertical: 10),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
CustomPopup(
showArrow: false,
contentPadding:EdgeInsets.symmetric(horizontal: 30, vertical: 10),
barrierColor: Colors.transparent,
contentDecoration: BoxDecoration(color: Colors.white),
content: SizedBox(
width: double.infinity,
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: List.generate(4,(index) => Text('item$index'),),),),
child: Text('filter1'),
),
Text('filter2'),
Text('filter3'),
],
),
)
// Show the popup programmatically
final popupKey = GlobalKey<CustomPopupState>();
// ...
CustomPopup(
key: popupKey,
content: Text('George says everything looks fine'),
child: Icon(Icons.help),
);
// ...
popupKey.currentState?.show();
Our full-stack freelance team is opening to new projects
If you have any questions about Flutter, or if you need me to customize a Flutter application for you, please feel free to contact me: QQ: 965471570 Gmail: herowws90@gmail.com
如果您有任何关于Flutter的问题,或者需要我为您定制一个Flutter应用程序,请联系我: QQ:965471570 Gmail:herowws90@gmail.com