deniscolak / colorize-text-avatar Goto Github PK
View Code? Open in Web Editor NEWFlutter plugin that allows users to create TextAvatar easily!
License: MIT License
Flutter plugin that allows users to create TextAvatar easily!
License: MIT License
backgroundColor
argument is override when _colorBackgroundConfig()
is called.
PD: Please accept my Pull Request. I need use a custom borderRadius
I'm sorry for a lot of issues. I thought the numberLetters
argument shows max amount of letter.
Example: text: "Luis Felipe Murguia Ramos"
and numberLetters: 3
I thought it will show LFM
but only shows L
, but if I put numberLetters: 4
then it shows "LF"
Background color not changing.
fontSize, fontFamily, fontWeight, textColor
arguments for style: TextStyle(fontSize, fontFamily, fontWeight, color)
argument.borderRadius
argument and replace your Shape
enum for Flutter BoxShape
enumI've noticed that the fix for backgroundColors is not in the latest version on pub.dev, can this be updated so we can get the latest changes?
Hi @deniscolak how are you,
I recently had this exception when I attempted to use it with Arabic letters or even numbers, I couldn't figure it out until I removed the Arabic letters and worked just fine.
Code:
class TestApp extends StatelessWidget {
const TestApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('اهلا'),
),
body: Center(
child: TextAvatar(
text: 'مرحبا',
shape: Shape.Circular,
upperCase: true,
),
),
);
}
}
Exception:
════════ Exception caught by widgets library ═══════════════════════════════════
The following _CastError was thrown building TextAvatar(dirty):
Null check operator used on a null value
add ListTile Widget with select effect
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.