dialogButton method

  1. @override
Widget dialogButton(
  1. AppModel app,
  2. BuildContext context, {
  3. VoidCallback? onPressed,
  4. required String label,
  5. String? tooltip,
  6. 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);
  }
}