profile_avatar_ts 0.0.2 copy "profile_avatar_ts: ^0.0.2" to clipboard
profile_avatar_ts: ^0.0.2 copied to clipboard

Generate fully customizable avatar based on shape, color, size and style.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:profile_avatar_ts/profile_avatar.dart';


void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
          appBar: AppBar(
            title: const Text('Avatar Plugin'),
          ),
          body: Padding(
            padding: const EdgeInsets.all(20.0),
            child: Column(
              children: [
                avatar(borderRadius: 50, avatarSize:80,borderColor: Colors.green, borderWidth: 5,name: "Techsuzu", ),
                const SizedBox(
                  height: 20,
                ),
                avatar(borderRadius: 80, avatarSize:80,borderColor: Colors.blue, borderWidth: 5,)
              ],
            ),
          )),
    );
  }
}
3
likes
150
points
25
downloads

Publisher

unverified uploader

Weekly Downloads

Generate fully customizable avatar based on shape, color, size and style.

Repository (GitHub)

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface

More

Packages that depend on profile_avatar_ts