WideButton constructor
const
WideButton(
- String text, {
- Key? key,
- dynamic required,
- double padding = 0.0,
- double height = 45,
- required void onPressed(),
- Color backgroundColor = Colors.blue,
- Color foregroundColor = Colors.white,
- double width = double.infinity,
- TextStyle textStyle = const TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
Implementation
const WideButton(
this.text, {
Key? key,
required,
this.padding = 0.0,
this.height = 45,
required this.onPressed,
this.backgroundColor = Colors.blue,
this.foregroundColor = Colors.white,
this.width = double.infinity,
this.textStyle = const TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
}) : super(key: key);