social_links_generator

A simple Dart package to generate social media profile and contact links.

Currently, supports generating WhatsApp chat links with pre-filled messages.
Designed to be lightweight, easy to use, and extensible for more platforms.


Features

  • Generate WhatsApp chat links
  • Automatically URL-encodes messages
  • Works with Dart & Flutter
  • Clean and simple API

Installation

Add this to your pubspec.yaml:

dependencies:
  social_links_generator: ^0.0.1

Usage

import 'package:social_links_generator/social_links_generator.dart';

void main() {
  final link = generateWhatsAppLink(
    phone: '966501234567',
    body: 'Hello! I am interested in your service.',
  );

  print(link);
}

output

https://wa.me/966501234567?text=Hello%20I%20am%20interested%20in%20your%20service.