dialogButton method
Widget
dialogButton(
- AppModel app,
- BuildContext context, {
- VoidCallback? onPressed,
- required String label,
- String? tooltip,
- bool? selected,
override
Implementation
@override
Widget dialogButton(AppModel app, BuildContext context,
{VoidCallback? onPressed,
required String label,
String? tooltip,
bool? selected}) {
var returnMe = OutlinedButton(
onPressed: onPressed,
style: TextButton.styleFrom(
foregroundColor: Colors.pink,
),
child: selected == null || selected == false
? _style.frontEndStyle().textStyle().text(app, context, label)
: _style.frontEndStyle().textStyle().highLight1(app, context, label),
);
if (tooltip == null) {
return returnMe;
} else {
return Tooltip(message: tooltip, child: returnMe);
}
}