flutter_brand_palettes 0.0.2 flutter_brand_palettes: ^0.0.2 copied to clipboard
Fully unit tested, object-oriented set of small classes that represent the color palettes of popular brands and companies.
Flutter Brand Palettes #
Stop searching the internet for brand colors hex codes!
This is an object-oriented Flutter package of color palettes of popular brands and companies.
Getting Started #
Rather than a constant integer value, each color is represented by a named
constructor of its corresponding "brand" class that implements the property
"color", which leads to a more readable and object-oriented source code. For
instance, Instagram.red().color
retrieves the Instagram's red color
#FD1D1D; Instagram.blue().color
, Instagram's blue #5B51D8;
Google.red().color
, Google's red #DB4437; Google.green().color
,
Googles's green #0F9D58; and so on.
Example: #
import 'package:brand_colors/flutter_brand_colors.dart';
import 'package:flutter/material.dart';
class InstagramIsh extends StatelessWidget {
const InstagramIsh({Key key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Container(
color: Instagram.blue().color,
);
}
}
Hex color values references: #
Implemented Color Palettes (A-Z): #
-
Google
- blue, red, yellow, green.
-
Instagram
- royal blue, blue, purple, dark pink, purple-red, red, dark orange, orange, yellow, light yellow.