https://github.com/bynicodevelop/flutter_profile_avatar
https://github.com/bynicodevelop/flutter_profile_avatar
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bynicodevelop/flutter_profile_avatar
- Owner: bynicodevelop
- License: other
- Created: 2020-12-15T06:00:00.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-02T16:15:51.000Z (over 5 years ago)
- Last Synced: 2024-05-28T23:38:29.508Z (about 2 years ago)
- Language: Dart
- Size: 79.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# flutter_profile_avatar
Allows you to create an avatar simply...
This plugin includes the [flutter_mobile_camera](https://pub.dev/packages/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 {
@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,
),
),
),
);
}
}
```