twilio_programmable_chat 0.1.0+4 copy "twilio_programmable_chat: ^0.1.0+4" to clipboard
twilio_programmable_chat: ^0.1.0+4 copied to clipboard

outdated

Integrate the Twilio Chat SDK with your Flutter app using this Twilio Programmable Chat Flutter plugin.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:provider/provider.dart';
import 'package:twilio_programmable_chat_example/debug.dart';
import 'package:twilio_programmable_chat_example/join/join_page.dart';
import 'package:twilio_programmable_chat_example/shared/services/backend_service.dart';

void main() {
  Debug.enabled = true;
  WidgetsFlutterBinding.ensureInitialized();
  SystemChrome.setPreferredOrientations(<DeviceOrientation>[
    DeviceOrientation.landscapeRight,
    DeviceOrientation.landscapeLeft,
    DeviceOrientation.portraitUp,
    DeviceOrientation.portraitDown,
  ]);
  runApp(TwilioProgrammableChatExample());
}

class TwilioProgrammableChatExample extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Provider<BackendService>(
      create: (_) => FirebaseFunctions.instance,
      child: MaterialApp(
        title: 'Twilio Programmable Chat',
        theme: ThemeData(
          primarySwatch: Colors.blue,
          appBarTheme: AppBarTheme(
            color: Colors.blue,
            textTheme: TextTheme(
              headline6: TextStyle(
                fontSize: 20,
                fontWeight: FontWeight.w500,
                color: Colors.white,
              ),
            ),
          ),
        ),
        home: JoinPage(),
      ),
    );
  }
}
35
likes
0
pub points
52%
popularity

Publisher

verified publisherwolfenra.in

Integrate the Twilio Chat SDK with your Flutter app using this Twilio Programmable Chat Flutter plugin.

Repository (GitLab)
View/report issues

License

unknown (license)

Dependencies

enum_to_string, flutter

More

Packages that depend on twilio_programmable_chat