File tree 1 file changed +16
-9
lines changed
1 file changed +16
-9
lines changed Original file line number Diff line number Diff line change 1
1
# smart_color
2
2
3
- A new Flutter package.
3
+ [ ![ pub package] ( https://img.shields.io/pub/v/smart_color.svg )] ( https://pub.dartlang.org/packages/smart_color )
4
4
5
- ## Getting Started
5
+ A smart color package
6
6
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/ ) .
11
9
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
+ ```
You can’t perform that action at this time.
0 commit comments