mainButtonBuilder property

Widget Function(Widget defaultCta, dynamic callback(), bool submitting, GBUiKitLocalizations localizations, bool isDisabled)? mainButtonBuilder
final

Provides a way to customize the way the main button is rendered defaultCta provides you access to the default widget (useful if you just want to wrap or place other widgets aside the default) callback provides a callback to be used on your custom button 'onTap' implementation, this way the widget can trigger onLogin callback properly submitting bool to indicate if the widget is busy localizations provides you access to default localizations isDisabled bool to indicate if the button should be disabled (when fields are empty)

Implementation

final Widget Function(
        Widget defaultCta, Function() callback, bool submitting, GBUiKitLocalizations localizations, bool isDisabled)?
    mainButtonBuilder;