profile_avatar_plus 1.0.0 copy "profile_avatar_plus: ^1.0.0" to clipboard
profile_avatar_plus: ^1.0.0 copied to clipboard

A simple flutter package for show user profile picture

example/lib/main.dart

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


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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Profile Avatar',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.blue),
        useMaterial3: true,
      ),
      home: const MyHomePage(),
    );
  }
}

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

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: Text("Profile Avatar"),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            ProfileAvatar(
              firstName: "John",
              lastName: "Doe",
              radius: 100,
            ),
          ],
        ),
      ), // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}
3
likes
150
points
3
downloads

Publisher

verified publisherkavindu.cloud

Weekly Downloads

A simple flutter package for show user profile picture

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

cached_network_image, flutter

More

Packages that depend on profile_avatar_plus