flutter_text_drawable 0.1.2 copy "flutter_text_drawable: ^0.1.2" to clipboard
flutter_text_drawable: ^0.1.2 copied to clipboard

outdated

A flutter library that gives you the flexibility to create and customize text user avatars like Gmail and Contacts.

flutter_text_drawable #

Github Language License Tests

A flutter library that gives you the flexibility to create and customize text user avatars like Gmail and Contacts.


Basic Usage #

Simply add the TextDrawable to your widget tree like so:

TextDrawable(
    text: "Name",
)

Example #

import 'package:flutter/material.dart';

import 'package:flutter_text_drawable/flutter_text_drawable.dart';

void main() {
  runApp(MaterialApp(
    title: 'Flutter Text Drawable Demo',
    theme: ThemeData(primaryColor: Colors.green),
    home: MyApp(),
  ));
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        centerTitle: true,
        title: Text('Flutter Text Drawable Demo'),
      ),
      body: ListView.builder(
        itemCount: 3,
        itemBuilder: (context, index) {
          return ListTile(
            leading: TextDrawable(
              text: "$index",
            ),
            title: Text("Item $index"),
          );
        },
      ),
    );
  }
}

License #

This project has been licensed under the MIT License. Check the LICENSE file for the details.

13
likes
0
pub points
68%
popularity

Publisher

verified publisherakora-ingdkb.me

A flutter library that gives you the flexibility to create and customize text user avatars like Gmail and Contacts.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_text_drawable