shareButton method

ElevatedButton shareButton(
  1. BuildContext context
)

Elevated Share button with text label for using in note views

Implementation

ElevatedButton shareButton(BuildContext context) {
  return ElevatedButton.icon(
    icon: Icon(
      Icons.share,
      color: Colors.white,
    ),
    onPressed: () async {
      // redirect
      navToChildPage(context);
    },
    style: buttonStyleView,
    label: Text(
      'SHARE',
      style: TextStyle(color: Colors.white),
    ),
  );
}