Uma biblioteca de avatares SVG leve e altamente personalizável para aplicativos Flutter. Fornece um widget Customizer, CircleAvatar e outras funções úteis prontas para uso.
Orientação gerada a partir de informações públicas. Apenas para referência.
Fluttermoji é uma biblioteca leve e personalizável de avatares baseada em SVG para Flutter, projetada para simplificar a criação de fotos de perfil e cabeças de bate-papo. Oferece um widget Customizer para geração dinâmica de avatares, uma implementação do CircleAvatar e funções úteis que se integram perfeitamente aos aplicativos. Desenvolvida com escalabilidade em mente, suporta múltiplas plataformas, incluindo Android, iOS, Web, macOS, Windows e Linux. A biblioteca permite que desenvolvedores gerem facilmente avatares únicos usando SVGs com pouquíssimo código, ideal para aplicativos sociais, interfaces de mensagens ou perfis de usuário.
Casos de uso
avatares de perfil do usuário
cabeças de bate-papo do aplicativo de mensagens
UIs de aplicativos de mídia social
Telas de onboarding
painéis multiusuários
Principais recursos
Renderização de avatares baseada em SVG
Widget de Personalização para personalização em tempo real
Integração do CircleAvatar
Suporte multiplataforma
Aparência altamente personalizável
Leve e desempenho rápido
Indicado para
Desenvolvedores construindo aplicativos sociais ou de mensagens
Equipes que precisam de avatares personalizados
Aplicativos que exigem visualizações dinâmicas do perfil do usuário
Projetos focados em desempenho e tamanho mínimo de pacote
Considerações
Requer conhecimentos básicos de SVG
Limitado a casos de uso específicos do avatar
Pode ser necessário estilização adicional para interfaces de usuário complexas
Não adequado para gráficos não-avatar
README original
Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.
fluttermoji
A light-weight and highly customizable SVG graphic set for Flutter, which provides a Customizer Widget, CircleAvatar and other utility functions.
This package provides you three easy-to-use widgets -
Name
Description
Screenshot
FluttermojiCircleAvatar
Use your fluttermoji anywhere in your Flutter app with a simple customizable widget. Supports material dark theme too.
FluttermojiCustomizer
A comprehensize UI to customize the user's fluttermoji. Offers previews of each individual component and whose looks can be tweaked with a FluttermojiThemeData
FluttermojiSaveWidget
Renders a save button by default OR can be used as an [InkWell] wrapper for the [child] widget.
The appearance of the widgets can be tweaked with FluttermojiThemeData. It let's you change things like the customizer's background colours, the box decoration etc.
Use the given utility functions to send and receive Fluttermoji data from your server/DB efficiently.
Depend on it by importing your package in the pubspec.yaml file.
dependencies:fluttermoji:latest_version
Add the following import to your .dart file
import'package:fluttermoji/fluttermoji.dart';
Add the FluttermojiCircleAvatar widget to display your Fluttermoji where needed.
FluttermojiCircleAvatar();
To allow your users to personalize their Fluttermoji, add the following widget and pair it with the above one in your page.
FluttermojiCustomizer();
That's all it takes, simple right ? The two widgets communicate with each other and update in real-time throughout your widget tree.
Usage Guidelines
The package offers a ton of features in the simplest way possible, however there are some points worth noting.
FluttermojiCircleAvatar only renders the local user's avatar. To display the avatar of other users', you'll have to use the SvgPicture.string() method from flutter_svg .
FluttermojiCircleAvatar would render a default avatar until customized and saved by the local user for the first time.
Use the canvaskit renderer when building for web, the default html renderer will not work with SVGs.
The fluttermoji's attributes are saved to local app/browser storage. Clearing app/browser data would mean clearing these attributes as well.
You can create a FluttermojiThemeData instance to configure the look and feel of the widgets to your liking.