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

outdated

A flutter plugin for [TDLib JSON interface](https://github.com/tdlib/td#using-from-other-programming-languages), 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
0
pub points
0%
popularity

Publisher

unverified uploader

A flutter plugin for [TDLib JSON interface](https://github.com/tdlib/td#using-from-other-programming-languages), ffi binding.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

ffi, flutter, path

More

Packages that depend on libtdjson