Orientação gerada a partir de informações públicas. Apenas para referência.
Um pacote Flutter que oferece uma seleção cuidadosa de paletas de cores elegantes e declarativas para marcas e empresas conhecidas. Projetado para desenvolvedores que precisam de cores consistentes e alinhadas à marca em seus aplicativos, fornece classes fáceis de usar que mapeiam diretamente para as cores oficiais da marca. O pacote suporta múltiplas plataformas e se integra perfeitamente aos projetos Flutter por meio de um simples comando pub add. Ideal para branding, consistência no design da interface e prototipagem rápida com estéticas de marca do mundo real.
Casos de uso
Interfaces de aplicativos temáticas por marca
Esquemas de cores de interface consistentes
Prototipagem rápida com cores da marca
Design de aplicativo corporativo ou de marketing
Referência de paleta de cores em desenvolvimento
Alinhamento de marca multiplataforma
Principais recursos
Classes de cor da marca declarativas
Precisão de cor da marca oficial
Suporte multiplataforma
Integração simples do pub add
Definições de cor extensíveis
API limpa e legível
Indicado para
Designers de UI/UX usando Flutter
Desenvolvedores construindo aplicativos com marca
Startups que precisam de consistência rápida da marca
Implementadores de sistema de design
Equipes de frontend focadas na fidelidade visual
Considerações
Limitado a paletas de marcas pré-definidas
Não destinado à criação de cores personalizadas
Depende das diretrizes da marca externa
Pode exigir atualizações para novas mudanças de marca
Nenhuma opção de personalização de cor em tempo de execução
README original
Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.
Flutter Brand Palettes is a collection of declarative, object-oriented
classes for the color palettes of popular brands and companies.
For example, to retrieve the Instagram colors at once, as a List<Color>
object, simply declare InstagramGrad().colors — the 'Grad' suffix is short for
Gradient.
For a single color, simply select it from the color palette class it belongs to.
For example, the command Instagram.royalBlue() retrieves the royal blue color
from the Instagram color palette; likewise, Instagram.yellow() retrieves the
yellow color; and so on.
In addition, all classes are well-documented and fully unit-tested, passing
through a CI pipeline with rigorous quality ports.
Getting Started
Instead of a constant integer value, a color is represented by a named
constructor of its corresponding brand class. In this way, the source code
becomes more object-oriented, readable and maintainable.
For example, the command Facebook.blue().color returns Facebook's blue color
#4267B2. Similarly, the command Instagram.red().color returns Instagram's
red color #FD1D1D; Google.red().color, Google's red color #DB4437.
Therefore, the command pattern for any brand is: 'Brand.colorName().color'.
Color Palettes in Action
The code bellow builds a container widget whose background color is Facebook
blue.
The code below builds a rectangle filled with the Google logo gradient.
/// Rectangle filled with Google logo color gradient.classGoogleishextendsStatelessWidget{
staticfinal _googleGrad = constGoogleGrad().colors;
@overrideWidgetbuild(BuildContext context) {
returnContainer(
decoration: BoxDecoration(
gradient: LinearGradient(colors: _googleGrad),
),
);
}
}
The result of the previous code in full screen
Demo application
The demo application provides a fully working example, focused on demonstrating
exactly one brand in action: Instagram. You can take the code in this demo and
experiment with it.
To run the demo application:
git clone https://github.com/dartoos-dev/flutter_brand_palettes.git
cd flutter_brand_palettes/example/
flutter run -d chrome
This should launch the demo application on Chrome in debug mode.
I need the 'X' color palette
Do you need a color palette that has not been implemented yet?
It doesn't matter the size and relevance of the company, not even if it's a tech
company.
Just open an
issue and enter
the brand or company name; the color palette will be implemented as soon as
possible.
Contribute
Contributors are welcome!
Open an issue regarding an improvement, a bug you noticed, or ask to be
assigned to an existing one.
If the issue is confirmed, fork the repository, do the changes on a separate
branch and make a Pull Request.
After review and acceptance, the Pull Request is merged and closed.
Make sure the command below passes before making a Pull Request.
flutter analyze && flutter test
List of Color Palettes (A-Z)
For more in-depth details — hex codes, brand colors, etc. —, check the
color-palettes
API documentation.