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

A customizable Flutter avatar profile picker widget with built-in avatar images and bottom sheet selection.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      debugShowCheckedModeBanner: false,
      home: AvatarExamplePage(),
    );
  }
}

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

  @override
  State<AvatarExamplePage> createState() => _AvatarExamplePageState();
}

class _AvatarExamplePageState extends State<AvatarExamplePage> {
  String? selectedAvatar;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('Avatar Profile Example')),
      body: Center(
        child: AvatarProfile(
          displayUrl: selectedAvatar,
          onAvatarSelected: (url) {
            setState(() {
              selectedAvatar = url;
            });
          },
        ),
      ),
    );
  }
}
2
likes
140
points
39
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A customizable Flutter avatar profile picker widget with built-in avatar images and bottom sheet selection.

Homepage
Repository

License

unknown (license)

Dependencies

flutter

More

Packages that depend on avatar_profile