Skip to content

Commit f5ae449

Browse files
committed
doc(readme): add code quality badge and TOC
1 parent 5a789d5 commit f5ae449

File tree

4 files changed

+50
-28
lines changed

4 files changed

+50
-28
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
# building, and deploying using Github Actions.
33
name: Flutter CI
44

5-
# Controls when the action will run.
5+
# Controls when the action will run.
66
on:
77
# Triggers the workflow on push or pull request events but only for the main branch
88
push:
9-
branches: [ master ]
9+
branches: [master]
1010
pull_request:
11-
branches: [ master ]
11+
branches: [master]
1212

1313
# Allows you to run this workflow manually from the Actions tab
1414
workflow_dispatch:
@@ -32,19 +32,14 @@ jobs:
3232
- uses: subosito/flutter-action@v1
3333
with:
3434
channel: 'stable'
35-
3635
# Get flutter dependencies.
3736
- run: flutter pub get
38-
3937
# Check for any formatting issues in the code.
4038
- run: flutter format --set-exit-if-changed lib/ test/ example/
41-
4239
# Statically analyze the Dart code for any errors.
4340
- run: flutter analyze --no-current-package lib/ test/ example/
44-
4541
# Run widget tests for our flutter project.
4642
- run: flutter test --no-pub --coverage
47-
4843
- name: Upload coverage to Codecov
4944
uses: codecov/codecov-action@v1
5045
with:

.rultor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ architect:
66
assets:
77
credentials.json: rafamizes/secret#assets/publishing/flutter/credentials.json
88
merge:
9-
squash: true
10-
rebase: true
9+
# squash: true
10+
# rebase: true
1111
script: |
1212
flutter clean
1313
flutter pub get

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- add code quality badge and TOC to README
13+
1014
## [0.3.4] - 2021-06-19
1115

1216
### Changed

README.md

Lines changed: 41 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,42 @@
1-
## flutter_brand_palettes
1+
# flutter_brand_palettes
22

33
<img
44
src="https://user-images.githubusercontent.com/24878574/119202536-61caa380-ba67-11eb-8f29-1bfa92f28143.png"
5-
alt="EO-Color logo" width="207" height="96"/>
5+
alt="EO-Color logo" width="176" height="82"/>
66

7-
[![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)
8-
[![DevOps By Rultor.com](https://www.rultor.com/b/dartoos-dev/flutter_brand_palettes)](https://www.rultor.com/p/dartoos-dev/flutter_brand_palettes)
7+
[![EO principles respected
8+
here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)
9+
[![DevOps By
10+
Rultor.com](https://www.rultor.com/b/dartoos-dev/flutter_brand_palettes)](https://www.rultor.com/p/dartoos-dev/flutter_brand_palettes)
911

1012
[![pub](https://img.shields.io/pub/v/flutter_brand_palettes)](https://pub.dev/packages/flutter_brand_palettes)
1113
[![license](https://img.shields.io/badge/license-mit-green.svg)](https://github.com/dartoos-dev/flutter_brand_palettes/blob/master/LICENSE)
12-
[![style: lint](https://img.shields.io/badge/style-lint-4BC0F5.svg)](https://pub.dev/packages/lint)
13-
[![PDD status](https://www.0pdd.com/svg?name=dartoos-dev/flutter_brand_palettes)](https://www.0pdd.com/p?name=dartoos-dev/flutter_brand_palettes)
14+
[![style:
15+
lint](https://img.shields.io/badge/style-lint-4BC0F5.svg)](https://pub.dev/packages/lint)
16+
[![PDD
17+
status](https://www.0pdd.com/svg?name=dartoos-dev/flutter_brand_palettes)](https://www.0pdd.com/p?name=dartoos-dev/flutter_brand_palettes)
1418
[![build](https://github.com/dartoos-dev/flutter_brand_palettes/actions/workflows/build.yml/badge.svg)](https://github.com/dartoos-dev/flutter_brand_palettes/actions/)
1519
[![codecov](https://codecov.io/gh/dartoos-dev/flutter_brand_palettes/branch/master/graph/badge.svg?token=Hvpu48mfx1)](https://codecov.io/gh/dartoos-dev/flutter_brand_palettes)
20+
[![code quality](https://www.codefactor.io/repository/github/dartoos-dev/flutter_brand_palettes/badge)](https://www.codefactor.io/repository/github/dartoos-dev/flutter_brand_palettes?style=flat-square)
1621
[![Hits-of-Code](https://hitsofcode.com/github/dartoos-dev/flutter_brand_palettes?branch=master)](https://hitsofcode.com/github/dartoos-dev/flutter_brand_palettes/view?branch=master)
1722

18-
### Stop searching the internet for color hex codes!
23+
## Overview
1924

2025
**Flutter Brand Palettes** is a collection of declarative and object-oriented
21-
classes for the color palettes and official logos of popular brands and
22-
companies.
26+
classes for the color palettes of popular brands and companies.
27+
28+
In addition, this package is fully tested — 100% code coverage —, well
29+
documented, and goes through a CI pipeline with rigorous quality gates.
30+
31+
## Contents
32+
33+
- [Overview](#overview)
34+
- [Getting Started](#getting-started)
35+
- [Color Palettes in action](#color-palettes-in-action)
36+
- [Demo application](#demo-application)
37+
- [I need the 'X' color palettes](#i-need-the-‘x’-brand-color-palette)
38+
- [List of Color Palettes](<#list-of-color-palettes-(a-z)>)
39+
- [References](#hex-color-values-references)
2340

2441
## Getting Started
2542

@@ -30,7 +47,7 @@ command `Instagram.red().color` retrieves the Instagram's red color _#FD1D1D_;
3047
`Google.red().color`, Google's red _#DB4437_; `Facebook.blue().color`,
3148
Facebook's blue _#4267B2_; and so on.
3249

33-
## Color Palettes in action
50+
## Color Palettes in Action
3451

3552
```dart
3653
import 'package:brand_colors/flutter_brand_colors.dart';
@@ -47,10 +64,10 @@ class FacebookIsh extends StatelessWidget {
4764
}
4865
```
4966

50-
### Demo application
67+
## Demo application
5168

5269
The demo application provides a fully working example, focused on demonstrating
53-
exactly one brand in action - Instagram. You can take the code in this demo and
70+
exactly one brand in action Instagram. You can take the code in this demo and
5471
experiment with it.
5572

5673
To run the demo application:
@@ -66,13 +83,19 @@ This should launch the demo application on Chrome in debug mode.
6683

6784
![Demo-App](https://user-images.githubusercontent.com/24878574/122657224-de6ca280-d137-11eb-9eb1-fc5169872d64.png)
6885

69-
### Do you need any brand that has not yet been implemented?
86+
## I need the 'X' brand color palette
87+
88+
Do you need any brand that has not yet been implemented?
89+
90+
- Just open an
91+
[issue](https://github.com/dartoos-dev/flutter_brand_palettes/issues), enter
92+
the brand or company name, and it will be implemented as soon as possible.
7093

71-
Just open an
72-
[issue](https://github.com/dartoos-dev/flutter_brand_palettes/issues) and enter
73-
the brand or company name.
94+
## List of Color Palettes (A-Z)
7495

75-
### Brand Palettes Classes (A-Z)
96+
For more in-depth details — the colors hex codes, classes, etc. —, check the
97+
[color-palettes](https://pub.dev/documentation/flutter_brand_palettes/latest/palettes/palettes-library.html)
98+
API documentation.
7699

77100
- **Amazon**
78101
- black, orange.
@@ -161,7 +184,7 @@ the brand or company name.
161184
- **Youtube**
162185
- almost black, red, white.
163186

164-
#### Hex color values references
187+
## Hex color values references
165188

166189
- [us brand colors](https://usbrandcolors.com/)
167190
- [brand palettes](https://brandpalettes.com/)

0 commit comments

Comments
 (0)