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

A customizable avatar widget for Flutter that supports displaying images, initials, or icons within a circular container.

example/lib/main.dart

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

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: MyHomePage(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SafeArea(
        child: Center(
          child: Column(
            children: [
              // Example of CustomAvatar
              CustomAvatar(
                imageUrl: 'https://avatars.githubusercontent.com/u/583231?v=4',
                size: 100,
                isNetworkImage: true,
                backgroundColor: Colors.blue,
                initials: "A",
                onTap: () {},
              ),
              const SizedBox(height: 20),
            ],
          ),
        ),
      ),
    );
  }
}
0
likes
140
points
30
downloads

Publisher

unverified uploader

Weekly Downloads

A customizable avatar widget for Flutter that supports displaying images, initials, or icons within a circular container.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on apptomate_custom_avatar