mastodon_flutter 0.2.1 copy "mastodon_flutter: ^0.2.1" to clipboard
mastodon_flutter: ^0.2.1 copied to clipboard

discontinued
outdated

A companion package to mastodon_dart that provides Flutter widgets to assist in developing a Mastodon Flutter client.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:mastodon_dart/mastodon_dart.dart';
import 'package:provider/provider.dart';
import 'package:web_socket_channel/io.dart';

import 'auth/auth_screen.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  final instance = Uri.parse("https://mastodon.technology");

  @override
  Widget build(BuildContext context) {
    return Provider<Mastodon>(
      create: (_) => Mastodon(
        instance,
        websocketFactory: (uri) => IOWebSocketChannel.connect(uri),
      ),
      child: MaterialApp(
        title: 'Flutter Demo',
        theme: ThemeData(
          primarySwatch: Colors.blue,
          cardTheme: CardTheme(elevation: 0.3),
          tabBarTheme: TabBarTheme(
            labelColor: Colors.blue,
          ),
        ),
        home: AuthScreen(),
      ),
    );
  }
}
1
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A companion package to mastodon_dart that provides Flutter widgets to assist in developing a Mastodon Flutter client.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

feather_icons_flutter, flutter, html, mastodon_dart, shared_preferences, timeago, url_launcher

More

Packages that depend on mastodon_flutter