tribally_sdk 0.1.0 copy "tribally_sdk: ^0.1.0" to clipboard
tribally_sdk: ^0.1.0 copied to clipboard

PlatformiOS

Tribally SDKs enable your users to create communities and bring in more people to talk about the things they love.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
          appBar: AppBar(
            title: const Text('Plugin example app'),
          ),
          body: TriballyView(
            primary: Colors.green,
            onSurface: Colors.orangeAccent.withOpacity(0.8),
            text: Colors.blueGrey,
            background: Colors.white12,
            onTriballyCreated: (controller) {
              //add push notifications for your forum view
              controller.setPushToken('pushToken');
              controller.setConfiguration(
                uid: 'YOUR_USER_TOKEN',
                displayName: 'YOUR_USERNAME',
                apiProject: ApiProject(
                  api: 'YOUR_APIKEY',
                  id: 'YOUR_PROJECT_ID',
                ),
                //optional
                avatar: 'YOUR_USER_AVATAR_URL',
              );
            },
          )),
    );
  }
}
6
likes
130
points
22
downloads

Publisher

unverified uploader

Weekly Downloads

Tribally SDKs enable your users to create communities and bring in more people to talk about the things they love.

Homepage

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on tribally_sdk