From 142340bb961425ad5cb5b48ca503fb08b98b9811 Mon Sep 17 00:00:00 2001 From: Lucas Alves Date: Fri, 28 Feb 2020 10:54:28 -0300 Subject: [PATCH 1/2] Code indentation and adapting to dart 2 --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e796f6c..881ae64 100644 --- a/README.md +++ b/README.md @@ -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'); + } + ); } } -``` \ No newline at end of file +``` From a28959e3d0d82ffb5c414cdfd82174cff7efe2c1 Mon Sep 17 00:00:00 2001 From: Lucas Alves Date: Fri, 28 Feb 2020 11:17:44 -0300 Subject: [PATCH 2/2] Including pending character --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 881ae64..7de7045 100644 --- a/README.md +++ b/README.md @@ -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