messaggera 0.0.4 copy "messaggera: ^0.0.4" to clipboard
messaggera: ^0.0.4 copied to clipboard

Messaggera is an interactive chat widget that facilitates real-time communication with your audience, simplifying connections, assistance and conversions.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:messaggera/messaggera.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await dotenv.load(fileName: ".env");
  String websiteId = dotenv.env["WEBSITE_ID"] ?? '';
  await messaggeraInit(websiteId: websiteId);
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        debugShowCheckedModeBanner: false,
        home: Scaffold(
            appBar: AppBar(
              title: const Text('Home Page'),
            ),
            body: const Center(
              child: Text('Press the button to open chat'),
            ),
            floatingActionButton: Messaggera(
              mainColor: const Color(0xFF3498DB),
            )));
  }
}
1
likes
85
points
93
downloads

Publisher

unverified uploader

Weekly Downloads

Messaggera is an interactive chat widget that facilitates real-time communication with your audience, simplifying connections, assistance and conversions.

Homepage

Documentation

API reference

License

unknown (license)

Dependencies

copy_with_extension, dartz, device_info_plus, emoji_picker_flutter, encrypt, equatable, flutter, flutter_bloc, flutter_dotenv, flutter_file_dialog, flutter_screenutil, flutter_svg, flutter_widget_from_html, get_it, http, http_parser, image_picker, injectable, internet_connection_checker, intl, json_annotation, mime, path_provider, permission_handler, photo_view, shared_preferences, shimmer, socket_io_client

More

Packages that depend on messaggera