Skip to content

Commit

Permalink
Merge pull request #8 from lucalves/patch-1
Browse files Browse the repository at this point in the history
Code indentation and adapting to dart 2
  • Loading branch information
ripsware authored Jun 24, 2020
2 parents 4374efe + a28959e commit af5293e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ A [community material design icon](https://materialdesignicons.com) as set of Fl
In the `dependencies:` section of your `pubspec.yaml`, add the following line:

```yaml
community_material_icon: 3.7.95
community_material_icon: ^3.7.95
```
## Usage
Expand All @@ -17,10 +17,12 @@ import 'package:community_material_icon/community_material_icon.dart';

class MyWidget extends StatelessWidget {
Widget build(BuildContext context) {
return new IconButton(
icon: new Icon(CommunityMaterialIcons.alarm),
onPressed: () { print("Pressed"); }
);
return IconButton(
icon: Icon(CommunityMaterialIcons.alarm),
onPressed: () {
print('Pressed');
}
);
}
}
```
```

0 comments on commit af5293e

Please sign in to comment.