ui_avatar 0.0.2 copy "ui_avatar: ^0.0.2" to clipboard
ui_avatar: ^0.0.2 copied to clipboard

A simple and customizable Flutter widget to generate beautiful text-based avatars using initials, No API needed

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:ui_avatar_example/home_screen.dart';

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

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  ThemeMode _themeMode = ThemeMode.system;

  void changeThemeMode(ThemeMode mode) {
    setState(() {
      _themeMode = mode;
    });
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Ui Avatar Playground',
      themeMode: _themeMode,
      darkTheme: ThemeData.dark(),
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
      ),
      home: HomeScreen(onChangeThemeMode: changeThemeMode),
    );
  }
}
1
likes
160
points
39
downloads

Publisher

verified publisher0xharkirat.com

Weekly Downloads

A simple and customizable Flutter widget to generate beautiful text-based avatars using initials, No API needed

Repository (GitHub)

Topics

#avatar #initials #flutter #ui #profile

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on ui_avatar