Forget Android Toast! BalloonPopup displays a round or squared popup and attaches it to a View, like a callout. Uses the Builder pattern for maximum ease. The popup can automatically hide and can persist when the value is updated.
This library allows you to create editable tables and spreadsheets with ease, either by providing initial row and column count to display an empty table or use it with predefined rows and column data sets.
A Flutter plugin for handling Connectivity and REAL Connection state in the mobile, web and desktop platforms. Supports iOS, Android, Web, Windows, Linux and macOS.
//Simple to use, no global configurationshowToast("hello styled toast",context:context);
//Customize toast content widget, no global configurationshowToastWidget(Text('hello styled toast'),context:context);
StyledToast(
locale:constLocale('en', 'US'), //You have to set this parameters to your locale
textStyle:TextStyle(fontSize:16.0, color:Colors.white), //Default text style of toast
backgroundColor:Color(0x99000000), //Background color of toast
borderRadius:BorderRadius.circular(5.0), //Border radius of toast
textPadding:EdgeInsets.symmetric(horizontal:17.0, vertical:10.0),//The padding of toast text
toastPositions:StyledToastPosition.bottom, //The position of toast
toastAnimation:StyledToastAnimation.fade, //The animation type of toast
reverseAnimation:StyledToastAnimation.fade, //The reverse animation of toast (display When dismiss toast)
curve:Curves.fastOutSlowIn, //The curve of animation
reverseCurve:Curves.fastLinearToSlowEaseIn, //The curve of reverse animation
duration:Duration(seconds:4), //The duration of toast showing, when set [duration] to Duration.zero, toast won't dismiss automatically.
animDuration:Duration(seconds:1), //The duration of animation(including reverse) of toast
dismissOtherOnShow:true, //When we show a toast and other toast is showing, dismiss any other showing toast before.
movingOnWindowChange:true, //When the window configuration changes, move the toast.
fullWidth:false, //Whether the toast is full screen (subtract the horizontal margin)
isHideKeyboard:false, //Is hide keyboard when toast show
isIgnoring:true, //Is the input ignored for the toast
animationBuilder: (BuildContext context,AnimationController controller,Duration duration,Widget child,){ // Builder method for custom animationreturnSlideTransition(
position:getAnimation<Offset>(Offset(0.0, 3.0),Offset(0,0), controller,curve:Curves.bounceInOut),
child: child,
);
},
reverseAnimBuilder: (BuildContext context,AnimationController controller,Duration duration,Widget child,){ // Builder method for custom reverse animationreturnSlideTransition(
position:getAnimation<Offset>(Offset(0.0, 0.0),Offset(-3.0,0), controller,curve:Curves.bounceInOut),
child: child,
);
},
child:MaterialApp(
title: appTitle,
showPerformanceOverlay: showPerformance,
home:LayoutBuilder(
builder: (BuildContext context, BoxConstraints constraints) {
returnMyHomePage(
title: appTitle,
onSetting: onSettingCallback,
);
},
),
),
);
```dart
```dart
//After global configuration, use in a single line.showToast("hello styled toast");
//After global configuration, Customize toast content widgetshowToastWidget(Text('hello styled toast'));
🚀 Roadmap
DefaultToastWidget
FadeAnim
SlideFromTopAnim
SlideFromBottomAnim
SlideFromLeftAnim
SlideFromRightAnim
ScaleAnim
FadeScaleAnim
RotateAnim
FadeRotateAnim
ScaleRotateAnim
OnDismiss
CustomToastWidget
CustomFailToastWidget
CustomSuccessToastWidget
StyledToast param
property
description
locale
Locale (Not Null)(required You have to set this parameters to your locale)
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].