Skip to content

Instantly share code, notes, and snippets.

@GeekyGeeky
Last active January 12, 2022 09:32
Show Gist options
  • Save GeekyGeeky/89f7ad64b08564445e356c358145ffd4 to your computer and use it in GitHub Desktop.
Save GeekyGeeky/89f7ad64b08564445e356c358145ffd4 to your computer and use it in GitHub Desktop.
Theme(
// use themedata to alter the styling of the child widgets
data: ThemeData(primarySwatch: Colors.purple),
child: Builder(builder: (c) {
return FlatProgressButton(
onPressed: () async {
_paystackDialog(c);
},
label: "Pay with Card",
isBusy: false,
color: Colors.transparent,
textColor: DirechargeColor.primaryColor,
border: BorderSide(
color: DirechargeColor.primaryColor, width: 2.0),
);
}),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment