Skip to content

Commit 401a106

Browse files
committed
Update README.md
1 parent d479997 commit 401a106

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

README.md

+16-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
# smart_color
22

3-
A new Flutter package.
3+
[![pub package](https://img.shields.io/pub/v/smart_color.svg)](https://pub.dartlang.org/packages/smart_color)
44

5-
## Getting Started
5+
A smart color package
66

7-
This project is a starting point for a Dart
8-
[package](https://flutter.io/developing-packages/),
9-
a library module containing code that can be shared easily across
10-
multiple Flutter or Dart projects.
7+
## Usage
8+
To use this plugin, add `smart_color` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/).
119

12-
For help getting started with Flutter, view our
13-
[online documentation](https://flutter.io/docs), which offers tutorials,
14-
samples, guidance on mobile development, and a full API reference.
10+
## Example
11+
12+
``` dart
13+
// Import package
14+
import 'package:flutter_icons/flutter_icons.dart';
15+
import 'package:flutter/material.dart';
16+
17+
SmartColor.parse("#ffffff");
18+
SmartColor.parse("white");
19+
SmartColor.parse("rgb(0,0,0)")
20+
SmartColor.parse("rgba(0,0,0,.5)")
21+
```

0 commit comments

Comments
 (0)