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

A simple and customizable Flutter widget to display an online status indicator, perfect for chat apps or social profiles. Easily adjust size, colors, borders, and integrate seamlessly into your UI.

example/main.dart

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

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


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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Online Indicator Example',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const OnlineIndicatorDemo(),
    );
  }
}

class OnlineIndicatorDemo extends StatelessWidget {
  const OnlineIndicatorDemo({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Online Indicator Demo'),
      ),
      body: Center(
        child: Stack(
          alignment: Alignment.center,
          children: [
            const CircleAvatar(
              radius: 50,
              backgroundImage: NetworkImage('https://i.pravatar.cc/300'),
            ),
            const OnlineIndicator(
              isOnline: true,
              radius: 15,
              bgColor: Colors.green,
              borderColor: Colors.white,
              borderWide: 2,
            ),
          ],
        ),
      ),
    );
  }
}
0
likes
130
points
102
downloads

Publisher

unverified uploader

Weekly Downloads

A simple and customizable Flutter widget to display an online status indicator, perfect for chat apps or social profiles. Easily adjust size, colors, borders, and integrate seamlessly into your UI.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on online_indicator