user_avatar_generator 0.0.1 copy "user_avatar_generator: ^0.0.1" to clipboard
user_avatar_generator: ^0.0.1 copied to clipboard

package that allows you to generate text-based avatars using various methods like initials, symbolic text, and more. This makes it ideal for apps needing personalized and unique user representations, [...]

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:user_avatar_generator/user_avatar_generator.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'User Avatar Generator',
      home: HomePage(),
    );
  }
}

class HomePage extends StatelessWidget {
  const HomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: const Color(0xFFC8A8E9),
        title: const Text(
          'User Avatar Generator 🎨',
          style: TextStyle(
            color: Colors.black,
            fontSize: 26,
          ),
        ),
      ),
      body: const Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          Center(
            child: UserAvatarGenerator(
              text: 'Free Palestine',
              shortcutGenerationType: ShortcutGenerationType.initials,
              isUpperCase: true,
              avatarSize: 100,
              avatarBackgroundGradient: AvatarBackgroundGradient.sunsetPastels,
              fontStyle: AvatarFontStyles.concertOne,
              textStyle: TextStyle(
                fontSize: 60,
                fontWeight: FontWeight.bold,
              ),
            ),
          ),
        ],
      ),
    );
  }
}
21
likes
0
points
8
downloads

Publisher

unverified uploader

Weekly Downloads

package that allows you to generate text-based avatars using various methods like initials, symbolic text, and more. This makes it ideal for apps needing personalized and unique user representations, offering easy integration and rich customization options.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_svg, google_fonts

More

Packages that depend on user_avatar_generator