singgih_counter_widget

A Flutter package providing a customizable counter widget and a live chat widget powered by WebView.

Features

  • CounterPage — counter widget with increment button and Material Design support
  • LiveChatWidget — full-screen transparent overlay live chat widget backed by a WebView
  • LiveChatOverlayButton — floating draggable button that opens live chat as a bottom sheet; drag to any horizontal edge to hide, swipe restore tab to bring it back
  • LivechatModel — configuration model for the live chat URL

Getting Started

Add to your pubspec.yaml:

dependencies:
  singgih_counter_widget: ^1.0.6

Then run:

flutter pub get

Usage

CounterPage

import 'package:singgih_counter_widget/singgih_counter_widget.dart';

MaterialApp(
  home: CounterPage(title: 'My Counter'),
)

LiveChatWidget

import 'package:singgih_counter_widget/singgih_counter_widget.dart';

Stack(
  children: [
    // your app content
    LiveChatWidget(
      config: LivechatModel(id: 'your-livechat-id'),
    ),
  ],
)

LiveChatOverlayButton

A draggable floating button that stays on top of all content via Overlay. Tap to open chat, drag to any horizontal edge to hide, swipe restore tab to show again.

import 'package:singgih_counter_widget/singgih_counter_widget.dart';

Stack(
  children: [
    YourPage(),
    LiveChatOverlayButton(
      config: LivechatModel(id: 'your-livechat-id'),
    ),
  ],
)

Additional Information

For issues and feature requests, please file them on the issue tracker.

Contributions are welcome — open a pull request on GitHub.

Libraries

singgih_counter_widget
A Flutter package providing a customizable counter widget.