flutter_profile_avatar 0.0.2+3 copy "flutter_profile_avatar: ^0.0.2+3" to clipboard
flutter_profile_avatar: ^0.0.2+3 copied to clipboard

Allows you to create an avatar simply...

example/lib/main.dart

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

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

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Container(
            child: ProfileAvatar(
              // Set username (create initial in avatar)
              username: 'John Doe',
              // Set image profile
              avatarURL: 'https://picsum.photos/200',
              // Set size of avatar
              size: 70,
              // Allows to change the photo if the onUpdate method is defined.
              onUpdated: (value) => print(value),
            ),
          ),
        ),
      ),
    );
  }
}
0
likes
20
pub points
2%
popularity

Publisher

unverified uploader

Allows you to create an avatar simply...

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, flutter_mobile_camera

More

Packages that depend on flutter_profile_avatar