BottomSheetBuilder class abstract

BottomSheetBuilder defines the blueprint that will be used to build our bottom sheets

example

 CoversBottomSheet extends BottomSheetBuilder{
  CoversBottomSheet()
     : super(
         primaryColor: Colors.amber,
         textColor: Colors.amberAccent,
         backgroundColor: Colors.black,
         action: () => true,
         message: 'test message',
        # define all arguments you may need here.
       );

  @override
  Widget build(BuildContext context){
    # here you define how you want your bottom sheet to look like. It can be a simple or as complex as you desire
    return Container();
}
}

After defining the bottom sheet, use the bottomSheet function to call it

example

bottomSheet(context: context, builder: CoversBottomSheet())

Constructors

BottomSheetBuilder({Function? action, Color? backgroundColor, Color? textColor, Color? primaryColor, bool? isError, String? message, bool? showPrimaryButton, bool? showSecondaryButton, bool? showTertiaryButton, Color? buttonColor, Color? borderColor, EdgeInsets? customPadding, Function? callback, Function? primaryButtonCallback, Function? secondaryActionCallback, String? secondaryButtonText, String? primaryActionText, Function? primaryActionCallback, String? primaryButtonText, Function? tertiaryActionCallback, Function? secondaryButtonCallback, String? secondaryActionText, String? tertiaryActionText})

Properties

action → Function?
final
backgroundColor → Color?
final
borderColor ↔ Color?
getter/setter pair
buttonColor ↔ Color?
getter/setter pair
callback ↔ Function?
getter/setter pair
customPadding ↔ EdgeInsets?
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
isError → bool?
final
message → String?
final
primaryActionCallback ↔ Function?
getter/setter pair
primaryActionText ↔ String?
getter/setter pair
primaryButtonCallback ↔ Function?
getter/setter pair
primaryButtonText ↔ String?
getter/setter pair
primaryColor → Color?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secondaryActionCallback ↔ Function?
getter/setter pair
secondaryActionText ↔ String?
getter/setter pair
secondaryButtonCallback ↔ Function?
getter/setter pair
secondaryButtonText ↔ String?
getter/setter pair
showPrimaryButton ↔ bool?
getter/setter pair
showSecondaryButton ↔ bool?
getter/setter pair
showTertiaryButton ↔ bool?
getter/setter pair
tertiaryActionCallback ↔ Function?
getter/setter pair
tertiaryActionText ↔ String?
getter/setter pair
textColor → Color?
final

Methods

build(BuildContext context) → Widget
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited