libtdjson 0.2.0 copy "libtdjson: ^0.2.0" to clipboard
libtdjson: ^0.2.0 copied to clipboard

A flutter plugin for TDLib JSON interface, ffi binding.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:get_it/get_it.dart' show GetIt;
import 'package:global_configuration/global_configuration.dart';

import './service/mod.dart' show registerAll, NavigationService;

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await GlobalConfiguration().loadFromAsset("app");
  registerAll();
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      navigatorKey: GetIt.I<NavigationService>().navigatorKey,
      title: 'Flutter Demo',
      theme: ThemeData.dark(),
      onGenerateRoute: NavigationService.onGenerateRoute,
    );
  }
}
4
likes
140
points
26
downloads

Publisher

unverified uploader

Weekly Downloads

A flutter plugin for TDLib JSON interface, ffi binding.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

ffi, flutter, path

More

Packages that depend on libtdjson