Giter VIP home page Giter VIP logo

colorize-text-avatar's People

Contributors

christianguevara avatar deniscolak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

colorize-text-avatar's Issues

backgroundColor argument doesn't work

backgroundColor argument is override when _colorBackgroundConfig() is called.

PD: Please accept my Pull Request. I need use a custom borderRadius

numberLetters argument works weird

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"

Arguments improves

  • Replace fontSize, fontFamily, fontWeight, textColor arguments for style: TextStyle(fontSize, fontFamily, fontWeight, color) argument.
  • Add a borderRadius argument and replace your Shape enum for Flutter BoxShape enum

Throws a 'Null check operator used on a null value' exception when the text is an Arabic letters or numbers

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.

Here's a sample:

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.