Blurry class
Inheritance
Available Extensions
Constructors
Blurry ({Key ? key , required String title , required String description , required Color ? themeColor , required String confirmButtonText , required Function ? onConfirmButtonPressed , required IconData ? icon , String cancelButtonText = 'Cancel' , Function ? onCancelButtonPressed , TextStyle ? titleTextStyle , TextStyle ? buttonTextStyle , TextStyle ? descriptionTextStyle , bool displayCancelButton = true , bool dismissable = true , Color ? barrierColor , LayoutType layoutType = LayoutType.ltr , String ? inputLabel , TextEditingController ? inputTextController })
default constructor
to generate customized blurry dialog
Blurry.error ({Key ? key , required String title , required String description , required String confirmButtonText , required Function ? onConfirmButtonPressed , Function ? onCancelButtonPressed , String cancelButtonText = 'Cancel' , TextStyle ? titleTextStyle , TextStyle ? buttonTextStyle , TextStyle ? descriptionTextStyle , bool displayCancelButton = true , bool dismissable = true , Color ? barrierColor , LayoutType layoutType = LayoutType.ltr , String ? inputLabel , TextEditingController ? inputTextController })
render error style dialog
Blurry.info ({Key ? key , required String title , required String description , required String confirmButtonText , required Function ? onConfirmButtonPressed , Function ? onCancelButtonPressed , String cancelButtonText = 'Cancel' , TextStyle ? titleTextStyle , TextStyle ? buttonTextStyle , TextStyle ? descriptionTextStyle , bool displayCancelButton = true , bool dismissable = true , Color ? barrierColor , LayoutType layoutType = LayoutType.ltr , String ? inputLabel , TextEditingController ? inputTextController })
info constructor to render info style dialog
Blurry.input ({Key ? key , required String title , required String description , required String confirmButtonText , required Function ? onConfirmButtonPressed , required String ? inputLabel , required TextEditingController ? inputTextController , TextInputType textInputType = TextInputType.text , Color ? themeColor , DefaultThemes ? defaultTheme , IconData ? icon , TextStyle inputLabelStyle = const TextStyle(color: Colors.black) , TextStyle inputTextStyle = const TextStyle(color: Colors.black) , Function ? onCancelButtonPressed , String cancelButtonText = 'Cancel' , TextStyle ? titleTextStyle , TextStyle ? buttonTextStyle , TextStyle ? descriptionTextStyle , bool displayCancelButton = true , bool dismissable = true , Color ? barrierColor , LayoutType layoutType = LayoutType.ltr })
to create input blurry popup provide the required values
provide either themeColor or type
when providing themeColor you should provide icon value
Blurry.password ({Key ? key , required String title , required String description , required String confirmButtonText , required Function ? onConfirmButtonPressed , required String ? inputLabel , required TextEditingController ? inputTextController , TextInputType textInputType = TextInputType.text , Color ? themeColor , DefaultThemes ? defaultTheme , IconData ? icon , TextStyle inputLabelStyle = const TextStyle(color: Colors.black) , TextStyle inputTextStyle = const TextStyle(color: Colors.black) , Function ? onCancelButtonPressed , String cancelButtonText = 'Cancel' , TextStyle ? titleTextStyle , TextStyle ? buttonTextStyle , TextStyle ? descriptionTextStyle , bool displayCancelButton = true , bool dismissable = true , Color ? barrierColor , LayoutType layoutType = LayoutType.ltr , bool withVisibilityEye = true })
to create input blurry popup provide the required values
provide either themeColor or type
when providing themeColor you should provide icon value
Blurry.singleChoiceSelector ({Key ? key , required String title , required String description , required List <Widget > ? items , dynamic onItemSelected (int )?, TextInputType textInputType = TextInputType.text , Color ? themeColor , DefaultThemes ? defaultTheme , IconData ? icon , TextStyle ? titleTextStyle , TextStyle ? buttonTextStyle , TextStyle ? descriptionTextStyle , bool dismissable = true , Color ? barrierColor , LayoutType layoutType = LayoutType.ltr })
to create input blurry popup provide the required values
provide either themeColor or type
when providing themeColor you should provide icon value
Blurry.success ({Key ? key , required String title , required String description , required String confirmButtonText , required Function ? onConfirmButtonPressed , Function ? onCancelButtonPressed , String cancelButtonText = 'Cancel' , TextStyle ? titleTextStyle , TextStyle ? buttonTextStyle , TextStyle ? descriptionTextStyle , bool displayCancelButton = true , bool dismissable = true , Color ? barrierColor , LayoutType layoutType = LayoutType.ltr , String ? inputLabel , TextEditingController ? inputTextController })
render success style dialog
Blurry.warning ({Key ? key , required String title , required String description , required String confirmButtonText , required Function ? onConfirmButtonPressed , Function ? onCancelButtonPressed , String cancelButtonText = 'Cancel' , TextStyle ? titleTextStyle , TextStyle ? buttonTextStyle , TextStyle ? descriptionTextStyle , bool displayCancelButton = true , bool dismissable = true , Color ? barrierColor , LayoutType layoutType = LayoutType.ltr })
render warning style dialog
Properties
barrierColor
→ Color ?
the color of the barrier of the burry dialog
if it's null the barrier color will be the default color Colors.black54
final
buttonTextStyle
→ TextStyle ?
button text style, by default it's null
final
cancelButtonText
↔ String
the cancel button text, by default it's 'Cancel'
getter/setter pair
confirmButtonText
↔ String
the confirm button (primary button) text string
getter/setter pair
defaultTheme
↔ DefaultThemes ?
the design type of the popup, available when using input constructor
availabele options
getter/setter pair
description
→ String
the dialog description text
required in all blurry class constructors
final
descriptionTextStyle
→ TextStyle ?
description text style, by default it's null
final
dismissable
→ bool
indicates whether the popup dialog is dismissable or not
by default dismissable = true
final
displayCancelButton
↔ bool
indicate whether the cancel button will be rendered or not
by default the cancel button is displayed
getter/setter pair
hashCode
→ int
The hash code for this object.
no setter inherited
icon
↔ IconData ?
the icon that will be rendered in the dialog
required only when using the default constructor
getter/setter pair
inputLabel
↔ String ?
the input label string, required when using the input constructor
getter/setter pair
inputLabelStyle
↔ TextStyle
the input label style by default it's just black text
getter/setter pair
inputTextController
↔ TextEditingController ?
the input text field text controller
required when using the input constructor
getter/setter pair
inputTextStyle
↔ TextStyle
the input text style by default it's just black text
getter/setter pair
isPasswordField
↔ bool
getter/setter pair
items
↔ List <Widget > ?
list items that will be rendered in the single selector blurry popup type
available only when using singleChoiceSelector
constructor (should be not null and not empty)
getter/setter pair
key
→ Key ?
Controls how one widget replaces another widget in the tree.
final inherited
layoutType
→ LayoutType
the layout rendering type, LTR, RTL or center
possible values
final
onCancelButtonPressed
↔ Function ?
the callback that will be invoked when pressing on cancel button
getter/setter pair
onConfirmButtonPressed
↔ Function ?
function invoked when the primary button is pressed
required in all constructors
getter/setter pair
onItemSelected
↔ (dynamic Function(int ) ?)
invoked when pressing on item from the list
available only when using singleChoiceSelector
by default pressing an element from the list will close the popup
getter/setter pair
the blurry dialog popup height
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
textInputType
↔ TextInputType
text input type applied on input field
available only when using the input constructor
getter/setter pair
themeColor
↔ Color ?
the dialog theme color
will be applied on buttons and icon
not available in default types constructors (info, error, warning, success)
getter/setter pair
title
→ String
the dialog popup title, required in all blurry class constructors
final
titleTextStyle
→ TextStyle ?
title text style, by default it's null
final
withVisibilityEye
↔ bool
indicate whether display visibility eye icon on password fields
available only when using Blurry.password
constructor
by default it's 'true'
getter/setter pair