flutter_profile_avatar 0.0.2+2 flutter_profile_avatar: ^0.0.2+2 copied to clipboard
Allows you to create an avatar simply...
flutter_profile_avatar #
Allows you to create an avatar simply...
This plugin includes the flutter_mobile_camera plugin.
Please follow the configuration of this plugin to integrate flutter_profile_avatar.
Getting Started #
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: 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: 30,
),
),
),
);
}
}