-
-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
YudizAndroidNaresh edited this page Jan 29, 2025
·
1 revision
Add avatar_plus
to your project by following these simple steps:
Add this line to your pubspec.yaml
file:
dependencies:
avatar_plus: ^1.0.0
Run this command in your terminal:
flutter pub get
Add this import statement to your Dart code:
import 'package:avatar_plus/avatar_plus.dart';
No additional platform configuration is required! Avatar Plus works out of the box on:
- ✅ Android
- ✅ iOS
- ✅ Web
- ✅ Desktop (Windows, macOS, Linux)
To verify the installation, try this simple example:
import 'package:flutter/material.dart';
import 'package:avatar_plus/avatar_plus.dart';
class TestWidget extends StatelessWidget {
const TestWidget({super.key});
@override
Widget build(BuildContext context) {
return AvatarPlus("Test User");
}
}
-
Package Not Found
flutter pub get failed
Solution: Verify your
pubspec.yaml
indentation and spelling -
Version Conflicts Solution: Check your Flutter version compatibility
-
Import Errors Solution: Ensure proper package name and import statement
- Check out Usage Examples to start using the package
- Read the API Reference for detailed documentation
- See Examples for implementation ideas
Need help? Create an issue on GitHub.