Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
GroovinChip committed Jul 5, 2023
1 parent c81c4d3 commit 336006e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -639,18 +639,15 @@ complete a task. [Learn more](https://developer.apple.com/design/human-interface
|--------------------------------------------|--------------------------------------------|
| <img src="https://imgur.com/iWNuPqs.png"/> | <img src="https://imgur.com/QPIHrJt.png"/> |

{% note %}

**Note:** native push buttons can be styled as text-only, text with an icon, or icon-only. Currently, text-only push buttons are supported. To create an icon-only button, use the `MacosIconButton` widget.

{% endnote %}
ℹ️ **Note** ℹ️
Native push buttons can be styled as text-only, text with an icon, or icon-only. Currently, text-only push buttons are supported. To create an icon-only button, use the `MacosIconButton` widget.

Here's an example of how to create a basic push button:

```dart
PushButton(
child: Text('button'),
buttonSize: ButtonSize.large,
controlSize: ControlSize.regular,
onPressed: () {
print('button pressed');
},
Expand Down

0 comments on commit 336006e

Please sign in to comment.